LLM Wiki MCP
概览
作者提供的说明(英文原文)
MCP server for Karpathy-style LLM wikis: persistent markdown your agent grows over time.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 70/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 文档、表格与办公
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
- PyPI已安装 Python 的 uv(用于 uvx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"llm-wiki": {
"command": "uvx",
"args": [
"llm-wiki-mcp",
"--wiki-root",
"your-value"
]
}
}
}在终端中运行这条命令
claude mcp add llm-wiki -- uvx llm-wiki-mcp --wiki-root your-value这个服务器需要在启动命令中填入值,请复制设置后自行填写。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"llm-wiki": {
"command": "uvx",
"args": [
"llm-wiki-mcp",
"--wiki-root",
"your-value"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器需要在启动命令中填入值,请复制设置后自行填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"llm-wiki": {
"type": "stdio",
"command": "uvx",
"args": [
"llm-wiki-mcp",
"--wiki-root",
"your-value"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 flsteven87 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“文档、表格与办公”中的其他服务器比较i
- 星标数多于此分类中其他 3586 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3586 个服务器的 6% 更新
- 基础检查结果等于或优于此分类中其他 3586 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
LLM Wiki MCP 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.1.1)于7个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Excel MCP Server
Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.
MCP Server for Excel
Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
llm-wiki-mcp
Persistent markdown wiki for your AI agent, built on Karpathy's LLM wiki gist. Four MCP tools (wiki_read, wiki_write_page, wiki_log_append, wiki_inventory) plus four Claude Code skills (wiki-init, wiki-ingest, wiki-query, wiki-lint). stdio transport, local filesystem.
The server handles the boring layer LLMs keep getting wrong: atomic writes, etag conflict checks, append-only log integrity, path containment. The skills give the agent a workflow to follow. The wiki schema lives in your own wiki/CLAUDE.md and grows with your domain. There is no Layer 3 schema validation in the server.
Status: alpha (v0.1.1). Local backend only. MIT licensed.
Quick start
Requires Python 3.11+ and uv.
Pick an absolute path for the wiki folder. The server creates pages/ and log.md under it on first run if they don't exist:
uvx llm-wiki-mcp --wiki-root /absolute/path/to/wiki
Wire it into your MCP client.
Claude Code:
claude mcp add llm-wiki -- uvx llm-wiki-mcp --wiki-root /absolute/path/to/wiki
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS) or Cursor (~/.cursor/mcp.json):
{
"mcpServers": { "llm-wiki": { "command": "uvx", "args": ["llm-wiki-mcp", "--wiki-root", "/absolute/path/to/wiki"] } } }
Restart the client. Four tools should appear: wiki_read, wiki_write_page, wiki_log_append, wiki_inventory.
Claude Code skills
Claude Code users can install the bundled workflow skills as a plugin:
claude plugin marketplace add https://github.com/flsteven87/llm-wiki-mcp
claude plugin install llm-wiki-skills@llm-wiki-mcp
Each skill reads wiki/CLAUDE.md for the active schema on every run, so you can evolve the schema without re-installing anything. Ask the agent things like:
| Skill | What to ask | Needs MCP server? |
|---|---|---|
wiki-init | "Create an LLM wiki for AI safety research at ~/wikis/ai-safety." | No |
wiki-ingest | "Ingest https://arxiv.org/abs/2310.12345 into the wiki." | Yes |
wiki-query | "What does the wiki say about steering vectors?" | Yes |
wiki-lint | "Run a wiki health check." | Yes |
wiki-init is a one-shot scaffolder; the other three are Karpathy's three operations.
Other MCP clients (Claude Desktop, Cursor) get the four tools but not the skills. The agent has to derive the workflow from tool descriptions alone, which works for one-off reads and writes but tends to skip the bookkeeping (log entries, backlink audits) the skills make explicit.
The four tools
| Tool | Annotations | Purpose | |
|---|---|---|---|
wiki_read | read-only, idempotent | Read one page. Returns body, parsed frontmatter, outgoing links, etag. | |
wiki_write_page | destructive, idempotent | Atomic create or update with etag CAS. Pass etag=null to create, the read etag to update. | |
wiki_log_append | not idempotent | Append one entry to log.md in Karpathy's `## [YYYY-MM-DD] op \ | Title` format. |
wiki_inventory | read-only, idempotent | Snapshot the whole graph: pages, frontmatter, link edges, log entries, plus an optional plain-text mention scan for backlink audits. |
index.md and raw/ are intentionally not exposed as tools. The index is LLM-curated content edited via the host's Read/Write. The raw layer is immutable from the server's perspective.
Wiki layout
wiki-init scaffolds a project that looks like this:
your-project/
├── raw/ Immutable source files (papers, articles, transcripts) │ └── ... └── wiki/ ← --wiki-root points here ├── pages/ Markdown pages, one per topic ├── log.md Append-only session log ├── index.md LLM-curated browse page └── CLAUDE.md Schema doc the LLM reads on every operation
--wiki-root points at the curated wiki/ folder, not the parent project folder containing raw/. Easy to get wrong on first install; the troubleshooting section below covers the error you'll see.
Design boundary
The server enforces mechanics, not content shape:
- Atomic writes.
tmp-file + fsync + renamefor pages.O_APPENDsingle-write for log entries. - Optimistic concurrency. Every page has an etag (
sha256(body) || mtime_ns). Updates supply the etag they read; a mismatch raisesWikiConflictError, and the agent re-reads, merges, and retries. - Path containment. Slugs are regex-validated. Resolved paths are checked against the realpath of the root, blocking the CVE-2025-53109 symlink-escape class.
- Format-locked log line.
## [YYYY-MM-DD] operation | Title. Operation names are free strings; only characters that would break the line shape are rejected.
The server does not validate frontmatter shape, page categories, or link targets. That layer lives in your wiki/CLAUDE.md schema doc and grows with the LLM. Karpathy's gist is deliberately silent on content shape; baking a schema into the server would defeat the point.
Python API
If you want to wrap the MCP server with your own storage backend (SQLite, Notion, GDrive, a test fake), implement the WikiStorage Protocol and pass an instance to build_server:
from llm_wiki_mcp import WikiStorage, PageRead, LogEntry
from llm_wiki_mcp.server import build_server
class MyStorage: # satisfies the WikiStorage Protocol async def read_page(self, slug: str) -> PageRead: ... async def write_page(self, slug, body, expected_etag=None) -> str: ... async def list_pages(self) -> list[str]: ... async def append_log(self, entry: LogEntry) -> None: ... async def read_log(self) -> str: ... async def write_raw_file(self, name, data) -> None: ... # usually raises
server = build_server(storage=MyStorage()) server.run()
build_server is the composition root. The CLI main() is a thin caller that constructs LocalFilesystemStorage from --wiki-root and hands it in.
The bundled Claude Code skills ship as package data under llm_wiki_mcp/skills/ and load via importlib.resources if you want to wire them into a non-Claude-Code agent. Typed domain errors (WikiConflictError, WikiNotFoundError, WikiPermissionError, WikiPathError, WikiSchemaViolationError) are importable from the package root for catching at your own boundary.
Troubleshooting
`llm-wiki-mcp: command not found` after uv tool install. uv puts the binary in ~/.local/bin (or %USERPROFILE%\.local\bin on Windows). Add it to PATH, or use uvx llm-wiki-mcp ... to invoke without a persistent shim.
**wiki_* tools don't appear after editing the client config.** Restart the MCP client. Claude Desktop, Claude Code, and Cursor only re-read mcpServers at startup.
`WikiPathError: path escapes wiki root`. You pointed --wiki-root at the project folder containing raw/ instead of the curated wiki/ folder inside it. /Users/me/wikis/ai-safety/wiki is correct; /Users/me/wikis/ai-safety is not.
Skills not loading in Claude Code. Run claude plugin list. If llm-wiki-skills is missing, rerun the marketplace commands in the Claude Code skills section.
Development
git clone https://github.com/flsteven87/llm-wiki-mcp
cd llm-wiki-mcp uv sync --extra dev uv run pytest uv run ruff check . uv run pyright src/llm_wiki_mcp
License
MIT. See LICENSE.