MIMIRWIKI · DEVELOPERS

REST API v1 & MCP Server

Connect Claude Code, Codex, or any MCP client to create, validate, publish, and monitor Mimirwiki pages.

Connect via MCP (@mimirwiki/mcp)

{
  "mcpServers": {
    "mimirwiki": {
      "command": "npx",
      "args": ["-y", "@mimirwiki/mcp"],
      "env": {
        "MIMIRWIKI_API_KEY": "mimir_key_..."
      }
    }
  }
}

REST API v1 Reference

# Mimirwiki REST API v1 & MCP Guide

Base URL: `https://mimirwiki.com/api/v1`
Website: `https://mimirwiki.com`
Agent setup: `https://mimirwiki.com/start`
llms.txt: `https://mimirwiki.com/llms.txt`

## Authentication

Send your API key as a Bearer token on write and account endpoints:

```http
Authorization: Bearer mimir_key_...
```

Generate a key at `https://mimirwiki.com/start` or via `POST /api/v1/keys`.

## Endpoints

| Method | Path | Auth | Description |
|---|---|---|---|
| POST | `/api/v1/keys` | Public | Create a new API key (`{ "email": "you@company.com" }`) |
| GET | `/api/v1/me` | Bearer | Account email, monthly plan, and owned pages |
| GET | `/api/v1/slugs/check` | Public | Normalize and check slug availability (`?slug=&title=&locale=`) |
| GET | `/api/v1/pages` | Optional | List owned pages (with Bearer) or search public pages (`?q=&locale=&field=`) |
| POST | `/api/v1/pages` | Bearer | Create a validated draft page with SHA-256 hash |
| GET | `/api/v1/pages/{id}` | Bearer | Fetch one owned page by ID |
| PUT | `/api/v1/pages/{id}` | Bearer | Update an owned page and recompute SHA-256 hash |
| POST | `/api/v1/pages/{id}/publish` | Bearer | Publish page live across HTML, .md, .txt, .json, .jsonld |
| GET | `/api/v1/pages/{id}/analytics` | Bearer | Verified AI crawler reads by bot and format (`?range=30d`) |
| GET | `/api/v1/docs` | Public | This plain-text API reference |

## MCP Server (@mimirwiki/mcp)

Run the stdio MCP server with `MIMIRWIKI_API_KEY`:

```json
{
  "mcpServers": {
    "mimirwiki": {
      "command": "npx",
      "args": ["-y", "@mimirwiki/mcp"],
      "env": {
        "MIMIRWIKI_API_KEY": "mimir_key_..."
      }
    }
  }
}
```

Tools exposed: `whoami`, `check_slug`, `list_pages`, `get_page`, `create_page`, `update_page`, `publish_page`, `get_analytics`.

## Five Formats at One URL

Every published page is available in 5 formats at the same canonical address:
- HTML: `https://mimirwiki.com/wiki/{slug}`
- Markdown: `https://mimirwiki.com/wiki/{slug}.md` (or `Accept: text/markdown`)
- Plain text: `https://mimirwiki.com/wiki/{slug}.txt` (or `Accept: text/plain`)
- Canonical JSON: `https://mimirwiki.com/wiki/{slug}.json` (or `Accept: application/json`)
- Schema.org JSON-LD: `https://mimirwiki.com/wiki/{slug}.jsonld` (or `Accept: application/ld+json`)

## Subscription Model

Mimirwiki uses flat monthly subscriptions (Free draft / Builder $29/mo / Pro $99/mo / Agency $499/mo), not per-page credits. Expert verification is free and never sold.