autopedia
Enables AI tools to maintain a personal knowledge wiki via MCP, allowing users to add sources and ask questions grounded in their research.
README
autopedia
Personal knowledge wiki maintained by your AI tool via MCP.
Your AI tool (Claude Code, Cursor, etc.) maintains a Karpathy-style wiki through MCP. No separate LLM client. No API keys. Your existing AI tool IS the brain.
Requires Node.js 20+
Get started
1. Install
npm install -g autopedia
2. Initialize
autopedia init
Creates ~/.autopedia/ with:
wiki/ ← synthesized knowledge (AI-maintained)
sources/ ← raw inputs (URLs, text notes, files)
ops/ ← audit trail (log, metrics, queue)
schema/ ← your profile and rules
3. Connect to your AI tool
Add to your AI tool's MCP config (one-time setup):
Claude Code (~/.claude.json):
{
"mcpServers": {
"autopedia": {
"command": "autopedia",
"args": ["serve"]
}
}
}
Cursor (.cursor/mcp.json):
{
"mcpServers": {
"autopedia": {
"command": "autopedia",
"args": ["serve"]
}
}
}
4. Verify
autopedia status
# Should show: Wiki pages: 1, Queued: 0
5. Start using it
Start a new Claude Code or Cursor session. On first connection, autopedia interviews you (~30 seconds) to personalize your wiki. After that, it's silent until you need it.
Add stuff anytime (from any terminal):
autopedia add "GPU prices dropped 20% this quarter"
autopedia add https://example.com/article
autopedia add ~/research/notes.md
Process when ready (tell your AI tool):
You: "sync my wiki"
AI: Processing 1/3: gpu-pricing-note → created gpu-pricing.md
Processing 2/3: example.com/article → updated market-trends.md
Processing 3/3: notes.md → created research-notes.md
Done. Created 2 pages, updated 1.
Ask questions anytime:
You: "What do I know about GPU pricing?"
AI: → answers from YOUR research, not training data
autopedia never hijacks your conversation. It's a quiet knowledge layer — there when you need it, invisible when you don't.
CLI Commands
| Command | What it does |
|---|---|
autopedia init |
Create ~/.autopedia/ directory structure |
autopedia add <source> |
Queue a URL, text note, file, folder, or repo |
autopedia add --repo <path> |
Scan a codebase and create an architectural bundle |
autopedia lint |
Check wiki health: orphans, stale pages, broken links |
autopedia remove <name> |
Remove a wiki page (or source with -s) |
autopedia scan |
Detect files added outside autopedia (Obsidian, IDE) and queue them |
autopedia status |
Show wiki stats and unprocessed sources |
autopedia search <query> |
Search wiki pages from the terminal |
autopedia view |
Browse your wiki in a local dashboard |
autopedia export |
Export wiki as a single markdown file |
autopedia serve |
Start MCP server (used by AI tools, not run manually) |
Braindump from anywhere
autopedia add "GPU prices dropped 20% this quarter" # text note
autopedia add https://example.com/article # URL
autopedia add ~/research/gpu-report.pdf # file
autopedia add ~/research/ # whole folder
autopedia add ~/code/my-project/ # auto-detect repo (.git/)
autopedia add --repo ~/code/my-project/ # explicit repo mode
Everything is saved instantly. Tell your AI tool "sync" to process.
Dashboard
Run autopedia view to open a local dashboard.
- Wiki index with rendered markdown and clickable [[wikilinks]]
- Knowledge graph — force-directed visualization of page connections
- Backlinks — each page shows what links to it
- Source browser with content-derived titles
- Status — page count, queue, untracked files
- Light/dark theme with Newsreader + DM Sans typography
Obsidian integration
Open ~/.autopedia/ as an Obsidian vault. Wikilinks, graph view, and backlinks work out of the box.
Drag-and-drop workflow: Drop files into the vault via Obsidian, then run autopedia scan to queue them. Tell your AI tool "sync" to process.
How it works
Implements Karpathy's three wiki operations:
- INGEST — Fetch URLs, save notes, synthesize into wiki pages
- QUERY — Search and read, answer grounded in your research
- LINT — Find orphans, stale content, contradictions, fix them
MCP Tools (9)
| Tool | Operation | Purpose |
|---|---|---|
add_source |
INGEST | Fetch URL or save text (queue or ingest mode) |
apply_wiki_ops |
INGEST | Create/update wiki pages |
read_source |
QUERY | Read a saved source |
search |
QUERY | Search wiki pages |
read_page |
QUERY | Read a specific page |
get_status |
STATUS | Page count, queue, untracked files |
lint |
LINT | Orphans, stale pages, broken links, low crossrefs |
question_assumptions |
LINT | Challenge high-confidence claims |
complete_onboarding |
ONBOARDING | Write identity + interests |
MCP Resources (3)
| Resource | What |
|---|---|
autopedia://prompt |
System prompt (auto-updates on upgrade) |
autopedia://identity |
Your profile |
autopedia://interests |
What you care about |
Security
- Sacred boundary: Server writes only to
wiki/,ops/,sources/agent/. User content is never modified. - Path traversal:
path.resolve()+startsWith()+ symlink chain validation - SSRF protection: Blocks localhost, private IPs, IPv6, metadata endpoints, redirect bypasses
- XSS prevention: All rendered content HTML-escaped, link text escaped, graph JSON escaped
- No API keys: Server makes zero LLM calls — your AI tool does all the thinking
Architecture
src/wiki.ts — File I/O, boundary enforcement, wikilink graph, lint, scan
src/mcp.ts — 9 MCP tools + 3 resources
src/cli.ts — CLI: init, add, lint, scan, serve, status, view, search, export, remove
Repo scanner: smart file discovery, role scoring, bundle formatting
src/dashboard.ts — Server-rendered HTML dashboard (graph, backlinks, source titles)
schema/prompt.md — System prompt (served via MCP, auto-updates on upgrade)
7 runtime dependencies. No LLM SDK. No database. No Express.
Development
git clone https://github.com/devp1/autopedia
cd autopedia
npm install
npm run build
npm test # 259 tests
npm run typecheck
npm run lint
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。