zettelkasten-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
zettelkasten-mcp

Status: Alpha. Core ingest / search / status functionality implemented and tested. See CHANGELOG.md.
MCP server for semantic search over markdown vaults with YAML frontmatter. Local RAG pipeline using Ollama for embeddings and ChromaDB for vector storage. 100% FOSS, local-first, works offline.
What this is
A Model Context Protocol server that exposes a markdown vault (Obsidian, Zettelkasten, plain folder of .md files) as a semantic search resource for any MCP client (Claude Code, Claude Desktop, Cursor, etc.).
Designed for markdown files with YAML frontmatter, but usable with any .md content.
Related MCP server: Mnē-MCP
MCP Tools
Tool | Purpose |
| Semantic search with metadata filters |
| Incremental or full reindex |
| Index health, counts by type/tag, coverage gaps |
| Liveness probe returning version string |
See docs/API.md for full tool contracts.
CLI
zettelkasten-mcp version # Print installed version
zettelkasten-mcp serve # Start MCP server (stdio)
zettelkasten-mcp ingest # Incremental ingest
zettelkasten-mcp ingest --full # Full reindex
zettelkasten-mcp status # Print index stats as JSON
zettelkasten-mcp ingest --vault PATH # Override vault path for this runQuick start
# 1. Install Ollama and pull the embedding model
brew install ollama # or see https://ollama.com/download
ollama pull nomic-embed-text
# 2. Install zettelkasten-mcp
pipx install zettelkasten-mcp # or: poetry add zettelkasten-mcp
# 3. Point it at your vault
export ZETTELKASTEN_VAULT_PATH="$HOME/vault"
zettelkasten-mcp ingest --full
zettelkasten-mcp statusFull local-RAG setup walkthrough: docs/RAG-SETUP.md.
MCP client wiring (Claude Desktop, Claude Code, Cursor): docs/MCP-CLIENTS.md.
Configuration
All variables prefix with ZETTELKASTEN_. See .env.example for the full list.
Variable | Default | Purpose |
| (required) | Root of the markdown vault |
|
| Persisted vector DB location |
|
| Ollama HTTP endpoint |
|
| Embedding model name |
|
| Vault subdirs to index (CSV) |
|
| Subdirs to skip (CSV) |
Frontmatter contract
Each indexed markdown file must carry YAML frontmatter matching this shape:
---
id: kebab-case-id # required; must match filename without .md
type: permanent # required; one of: permanent | literature | project | index
tags: [zettelkasten, rag] # required; non-empty list
created: 2026-04-17 # required; ISO-8601 date
source: internal # required; journal path, project number, or URL
updated: 2026-04-17 # optional; used for ``since`` filter
related: [other-id] # optional; list of related note ids
---Full schema lives in tests/fixtures/sample_vault/.rag/schema.yaml; the sample vault itself (7 real notes + 5 edge cases) is a ready-to-use seed.
Architecture
Five modules with narrow responsibilities — see docs/ARCHITECTURE.md:
config.py— PydanticSettings(env +.env)models.py—Note,SearchResult,IngestReport,StatusReportindexer.py— frontmatter parse, markdown strip, vault walk, Ollama embedstore.py— ChromaDB upsert / query / statsserver.py— FastMCP tools +run_ingestpipelinecli.py— Typer subcommands
Development
poetry install
poetry run pytest
poetry run black src tests
poetry run mypy srcContribution guide: CONTRIBUTING.md. Security policy: SECURITY.md. Agent / LLM contributors should read AGENTS.md first — it is the public SSOT for this project's rules.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.
Search, read, and safely update Markdown notes in your connected Phasoric knowledge vaults.
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables semantic search over local markdown note collections using vector embeddings, with real-time file watching and zero-config setup.4MIT
- FlicenseAqualityDmaintenanceEnables retrieval-augmented question answering over Obsidian vaults and document folders, with local embeddings, vector search, and cited source paths.7-
- AlicenseAqualityBmaintenanceEnables semantic and keyword search over Obsidian-style Markdown knowledge bases by registering any folder as a vault, with support for incremental indexing, raw source reads, and cache-backed embeddings over MCP stdio.125Apache 2.0
- AlicenseBqualityBmaintenanceEnables local hybrid search over Obsidian and Markdown vaults via MCP, combining vector retrieval, full-text search, reranking, graph navigation, and safe CRUD while keeping data local.431MIT