MIMIRWIKI · 개발자 문서
REST API v1 & MCP 서버
외부 AI 에이전트(Claude Code, Codex, MCP 클라이언트)가 미미르위키 문서를 생성·검증·발행하고 AI 열람 실측을 조회할 수 있습니다.
MCP 서버 연결 (@mimirwiki/mcp)
{
"mcpServers": {
"mimirwiki": {
"command": "npx",
"args": ["-y", "@mimirwiki/mcp"],
"env": {
"MIMIRWIKI_API_KEY": "mimir_key_..."
}
}
}
}전체 REST API 명세
# 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.