vault-knowledge — Claude Code MCP server: install and use
This MCP server reads an Obsidian knowledge graph to search concepts, retrieve articles, and surface contradictions between notes.
claude mcp add vault-knowledge -- npx -y @swins/vault-knowledge-mcpWhat vault-knowledge does
vault-knowledge gives MCP clients read-only access to an Obsidian vault’s knowledge graph. Its tools search for concepts and connections, find active contradictions, and return an article with its frontmatter, body, and resolved wikilinks. Use it to check what your notes say before relying on them in an agent workflow.
The server requires Node 22.5 or later. The first concept search downloads the nomic-embed-text-v1.5 model. Access is limited to files under knowledge/{concepts,connections,qa} and set in the configuration rather than passed in a client request. That boundary matters: a request cannot grant the server access to other vault folders.
What it helps with
- search an Obsidian knowledge base for concepts and connections
- spot active contradictions in the reasoning graph
- retrieve an article with its metadata and linked notes
Example prompts for the agent
- Search my knowledge base for concepts related to API design.
- Find active contradictions in the vault.
- Fetch the article with slug
slug, including its links.
How to install vault-knowledge
Platform CLI
claude mcp add vault-knowledge -- npx -y @swins/vault-knowledge-mcpPlatform CLI
codex mcp add vault-knowledge -- npx -y @swins/vault-knowledge-mcpConfig file
{
"mcpServers": {
"vault-knowledge": {
"command": "npx",
"args": [
"-y",
"@swins/vault-knowledge-mcp"
]
}
}
}Config file
{
"servers": {
"vault-knowledge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@swins/vault-knowledge-mcp"
]
}
}
}Platform CLI
gemini mcp add vault-knowledge npx -y @swins/vault-knowledge-mcpStep 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 vault-knowledge
How do I install vault-knowledge in Claude Code?
Run claude mcp add vault-knowledge -- npx -y @swins/vault-knowledge-mcp. The server requires Node 22.5 or later.
What does vault-knowledge do?
It lets an MCP client search concepts, inspect active contradictions in the reasoning graph, and retrieve articles from an Obsidian knowledge base.
What is required for concept search?
Node 22.5 or later. On its first concept search, the server downloads the nomic-embed-text-v1.5 model.