Zettelkasten MCP Server
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 Server
Dieses Repository implementiert einen Model Context Protocol (MCP) Server, der als Brücke zwischen Claude Desktop / Claude Code und deinem Zettelkasten (basierend auf tools4zettelkasten) fungiert.
Warum dieser MCP Server?
Die Bibliothek tools4zettelkasten bietet mächtige Python-Werkzeuge zur Verwaltung eines Zettelkastens (Dateinamen-Logik, Strukturen, Links). Dieser MCP Server macht diese Werkzeuge für KI-Assistenten wie Claude zugänglich.
Der Nutzen:
Direkter Zugriff: Claude kann deinen Zettelkasten nicht nur "sehen" (als Dateien), sondern versteht die Struktur (Verwandte Zettel, Hierarchien).
Sichere Manipulation: Statt dass die KI versucht, Dateien 'blind' umzubenennen, nutzt sie die getestete Logik der Bibliothek, um konsistente Dateinamen und IDs zu erzeugen.
Komplexe Analysen: Claude kann Fragen beantworten wie "Welche Themen hängen damit zusammen?", indem es die Graphen-Analyse der Bibliothek nutzt.
Architektur
┌─────────────────────────────────────────────────────────────┐
│ Claude Desktop / Claude Code │
└─────────────────────┬───────────────────────────────────────┘
│ stdio (JSON-RPC)
▼
┌─────────────────────────────────────────────────────────────┐
│ zettelkasten_mcp/server.py │
│ ┌───────────────────────────────────────────────────────┐ │
│ │ MCP Protocol Handler (FastMCP) │ │
│ └───────────────────────────────────────────────────────┘ │
│ │ │
│ ┌───────────────────────▼───────────────────────────────┐ │
│ │ 12 Tools │ │
│ │ • list_input_files • search_zettel │ │
│ │ • stage_file • get_zettel │ │
│ │ • preview_staging • list_zettel │ │
│ │ • get_statistics • get_links │ │
│ │ • find_related • analyze_structure │ │
│ │ • preview_reorganize • execute_reorganize │ │
│ └───────────────────────────────────────────────────────┘ │
│ │ │
│ ┌───────────────────────▼───────────────────────────────┐ │
│ │ tools4zettelkasten (importlib) │ │
│ │ • persistency.PersistencyManager │ │
│ │ • handle_filenames │ │
│ │ • reorganize │ │
│ │ • analyse │ │
│ └───────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ ~/Dropbox/zettelkasten/ │
│ ├── mycelium/ (567 Zettel) │
│ └── input/ (neue Notizen) │
└─────────────────────────────────────┘Related MCP server: pando
Projektstruktur
~/Dropbox/zettelkasten_mcp/
├── README.md # Diese Datei
├── venv/ # Python 3.11 Virtual Environment
│ └── bin/python # Python-Interpreter für MCP
└── zettelkasten_mcp/
├── __init__.py
├── __main__.py # Entry point: python -m zettelkasten_mcp
└── server.py # MCP Server mit allen ToolsAbhängigkeiten
Python-Version: 3.11+ (MCP erfordert >= 3.10)
Installierte Packages im venv:
mcp[cli]- MCP Protocol Libraryflask,flask-wtf,flask-pagedown- Flask-Abhängigkeiten von tools4zettelkastengraphviz,pyfiglet,inquirerpy,colorama,markdown- Weitere Abhängigkeiten
Externe Abhängigkeit (tools4zettelkasten):
Repository: rreben/tools4zettelkasten
Beschreibung: Python-Tools für das "Folgezettel"-Prinzip, Verwaltung alphanumerischer Sortierungen und Strukturanalyse.
Integration: Dieses Projekt importiert die Bibliothek direkt (via
PYTHONPATH), um deren Logik für Parsing und Dateisystem-Operationen zu nutzen.
Konfiguration
Claude Desktop / Claude Code
Datei: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"zettelkasten": {
"command": "/Users/rupertrebentisch/Dropbox/zettelkasten_mcp/venv/bin/python",
"args": ["-m", "zettelkasten_mcp"],
"env": {
"PYTHONPATH": "/Users/rupertrebentisch/Library/CloudStorage/Dropbox/tools4zettelkasten",
"TOOLS4ZETTELKASTEN_PATH": "/Users/rupertrebentisch/Library/CloudStorage/Dropbox/tools4zettelkasten",
"ZETTELKASTEN": "/Users/rupertrebentisch/Dropbox/zettelkasten/mycelium",
"ZETTELKASTEN_INPUT": "/Users/rupertrebentisch/Dropbox/zettelkasten/input"
},
"cwd": "/Users/rupertrebentisch/Dropbox/zettelkasten_mcp"
}
}
}Umgebungsvariablen
Variable | Beschreibung | Standard |
| Pfad zum Hauptordner des Zettelkastens |
|
| Pfad zum Input-Ordner für neue Notizen |
|
| Pfad zum tools4zettelkasten-Repository |
|
| Muss tools4zettelkasten enthalten | (wie TOOLS4ZETTELKASTEN_PATH) |
Tools-Übersicht
Input-Management
Tool | Parameter | Beschreibung |
| - | Zeigt alle Dateien im Input-Ordner |
| - | Vorschau der geplanten Umbenennungen |
|
| Benennt eine Datei nach Titel um |
Zettelkasten-Abfragen
Tool | Parameter | Beschreibung |
|
| Liest einen einzelnen Zettel |
|
| Volltextsuche |
|
| Listet Zettel (optional nach Topic) |
| - | Statistiken über den Zettelkasten |
Struktur & Analyse
Tool | Parameter | Beschreibung |
|
| Ein-/ausgehende Links eines Zettels |
|
| Verwandte Zettel (Links + Hierarchie) |
|
| Strukturanalyse (Tree + Links) |
Reorganisation
Tool | Parameter | Beschreibung |
| - | Zeigt geplante Änderungen |
|
| Führt Reorganisation durch |
Technische Hinweise
Import-Workaround
tools4zettelkasten hat in seiner __init__.py ein from .cli import *, das Click-Commands exportiert und dabei Modulnamen wie reorganize überschreibt. Der MCP-Server umgeht dies durch direkten Import via importlib:
import importlib
ro = importlib.import_module("tools4zettelkasten.reorganize")Manuelles Testen
cd ~/Dropbox/zettelkasten_mcp
# Server-Import testen
PYTHONPATH="$HOME/Library/CloudStorage/Dropbox/tools4zettelkasten" \
ZETTELKASTEN="$HOME/Dropbox/zettelkasten/mycelium" \
ZETTELKASTEN_INPUT="$HOME/Dropbox/zettelkasten/input" \
./venv/bin/python -c "from zettelkasten_mcp.server import mcp; print('OK')"
# Tools testen
PYTHONPATH="$HOME/Library/CloudStorage/Dropbox/tools4zettelkasten" \
ZETTELKASTEN="$HOME/Dropbox/zettelkasten/mycelium" \
ZETTELKASTEN_INPUT="$HOME/Dropbox/zettelkasten/input" \
./venv/bin/python -c "
from zettelkasten_mcp.server import get_statistics
print(get_statistics())
"MCP-Status in Claude Code prüfen
claude mcp listOder im Chat: /mcp
Deployment-Checkliste
Python 3.11+ installiert? (
python3.11 --version)venv erstellt? (
python3.11 -m venv venv)Dependencies installiert?
./venv/bin/pip install "mcp[cli]" flask flask-wtf flask-pagedown \ graphviz pyfiglet inquirerpy colorama markdown mistuneclaude_desktop_config.json konfiguriert?
Pfade korrekt? (Dropbox-Symlinks beachten!)
Claude Desktop/Code neu gestartet?
Beispiel-Nutzung
Du: "Was liegt im Input-Ordner?"
Claude: [ruft list_input_files auf]
Du: "Zeige mir den Zettel über Kreativität"
Claude: [ruft search_zettel(query="Kreativität") auf]
Du: "Welche Zettel sind mit 01_001 verwandt?"
Claude: [ruft find_related(identifier="01_001") auf]
Du: "Gib mir Statistiken"
Claude: [ruft get_statistics auf]Erstellt am: 27. Januar 2026
This server cannot be deployed
Maintenance
Related MCP Connectors
Notes, tasks, habits, journal and 6 more tools Claude can read and change, with undo. Free.
Notes and actions in one app. Let Claude or ChatGPT read and update them.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
A second brain for Claude: remembers your work, plans your day, encrypted under a key only you hold.
Related MCP Servers
- AlicenseAqualityDmaintenanceImplements the Zettelkasten knowledge management methodology, allowing you to create, link, explore and synthesize atomic notes through Claude and other MCP-compatible clients.146MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to search, read, write, and manage a local markdown vault through 8 tools, turning your notes into an AI-accessible knowledge base.3 npmAGPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables Claude to read, write, search, and manage an Obsidian vault with tools for notes, tags, folders, and full-text search.20 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables Claude and other MCP-compatible clients to create, link, tag, search, and update atomic notes stored as Markdown files, building a bidirectional knowledge graph with semantic relationships. Also supports exploring and synthesizing that graph through tools that surface linked, similar, central, and orphaned notes.-