@wiki0/mcp
v0.2.0
Published
MCP server for wiki0 local-first Markdown memory
Readme
@wiki0/mcp
MCP server for wiki0: search a project's docs and get the right
section with a path:start-end citation.
Install
pnpm add -g @wiki0/mcpThe package exposes the wiki0-mcp binary.
Tools
| Tool | Purpose |
| ---------------- | -------------------------------------------------------------- |
| search_docs | One cited section per document, authoritative docs first |
| show_section | Text of a citation, path:line, path#heading, path or title |
| get_context | Search plus the top sections as cited Markdown |
| index_docs | Index the project docs |
| index_status | Index path and staleness |
| lint_docs | Broken links and anchors with path:line |
| check_docs | After editing docs: problems in the changed files |
| link_graph | Documents and links |
| list_documents | Outline, status, type and link counts per document |
| backlinks | Documents linking to a document |
| wiki0_info | Version and safety settings |
Tools return JSON as both text and structured content; failures return
isError: true.
To show the user this project's docs, run npx @wiki0/cli ui; it
prints the URL and returns, and a second run reuses the open server.
Roots and safety
Each tool takes an optional root. The server only allows roots under
its working directory unless WIKI0_ALLOWED_ROOTS lists others
(comma-separated). WIKI0_READ_ONLY=true blocks index_docs and
check_docs, the only tools that write (to the index, never to your
files).
The index lives in ~/.cache/wiki0/<project>/index.db. Set
WIKI0_INDEX so the CLI and the server use the same file if their
environments differ.
