obsidian-wiki — Claude Code MCP server: managing agent memory
obsidian-wiki is a Claude Code MCP server that connects your agent to a local markdown vault. It indexes previous discussions and retrieves context using linked notes.
MIT ★ 3,811 updated 2026-10-21
claude mcp add --env OBSIDIAN_VAULT_PATH=<OBSIDIAN_VAULT_PATH> --transport stdio obsidian-wiki -- uvx obsidian-wikiWhat obsidian-wiki does
The server connects an assistant to a local folder of markdown documents. Rather than repeating identical inquiries or reindexing conversation histories, the agent extracts findings into interconnected wiki pages. It catalogs workflow solutions, merges duplicate topics, identifies missing links, and traces cross-references across the collection.
An optional local web interface runs on port 3114 to inspect the graph, review citations, and drop incoming files. Notes remain on the local disk, and the full graph exports to JSON, GraphML, Neo4j Cypher, or Postgres SQL. Running over stdio requires the OBSIDIAN_VAULT_PATH environment variable set to your vault directory.
What it helps with
- managing agent memory
- compile session context into local markdown notes
- query knowledge with linked wikilink citations
- clean orphan notes and merge duplicate pages
Example prompts for the agent
- Save the findings from this conversation to my wiki
- /wiki-query what did we decide about rate limiting?
- /wiki-dedup merge duplicate topics in the vault
How to install obsidian-wiki
1Platform CLI
claude mcp add --env OBSIDIAN_VAULT_PATH=<OBSIDIAN_VAULT_PATH> --transport stdio obsidian-wiki -- uvx obsidian-wikiReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from obsidian-wiki <command>
2Platform CLI: remote server
claude mcp add --transport http obsidian-wiki https://{host}/mcp/1Platform CLI
codex mcp add obsidian-wiki --env OBSIDIAN_VAULT_PATH=<OBSIDIAN_VAULT_PATH> -- uvx obsidian-wikiReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from obsidian-wiki <command>
2Platform CLI: remote server
codex mcp add obsidian-wiki --url https://{host}/mcp/1Config file
{
"mcpServers": {
"obsidian-wiki": {
"command": "uvx",
"args": [
"obsidian-wiki"
],
"env": {
"OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from obsidian-wiki <command>
2Config file
{
"mcpServers": {
"obsidian-wiki": {
"url": "https://{host}/mcp/"
}
}
}1Config file
{
"servers": {
"obsidian-wiki": {
"type": "stdio",
"command": "uvx",
"args": [
"obsidian-wiki"
],
"env": {
"OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from obsidian-wiki <command>
2Config file
{
"servers": {
"obsidian-wiki": {
"type": "http",
"url": "https://{host}/mcp/"
}
}
}1Platform CLI
gemini mcp add -e OBSIDIAN_VAULT_PATH=<OBSIDIAN_VAULT_PATH> obsidian-wiki uvx obsidian-wikiReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from obsidian-wiki <command>
2Platform CLI: remote server
gemini mcp add -t http obsidian-wiki https://{host}/mcp/Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about obsidian-wiki
How do I install obsidian-wiki in Claude Code?
Run claude mcp add --env OBSIDIAN_VAULT_PATH=<OBSIDIAN_VAULT_PATH> --transport stdio obsidian-wiki -- uvx obsidian-wiki. For HTTP mode, run claude mcp add --transport http obsidian-wiki https://{host}/mcp/.
What does obsidian-wiki do?
It provides your agent with persistent memory stored in a local markdown directory. The tool saves conversation insights, queries existing pages with citations, and manages document links.
What is required to run obsidian-wiki?
You need a local directory specified via OBSIDIAN_VAULT_PATH and the uv package runner for uvx. The web viewer requires Python 3.10 or newer.