zk-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@zk-mcpsearch for notes tagged with #research and summarize their content"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
zk-mcp
zk-mcp is an MCP (Model Context Protocol) server for integrating notes managed by zk with LLMs. It enables LLMs to efficiently access and interact with knowledge bases managed under zk.
Features
Note Query: Search notes by content, tags, and complex filters
Link Analysis: Discover relationships between notes (links to, linked by, related)
Tag Management: List and filter by available tags
Note Access: Read complete note contents
Note Creation: Create new notes programmatically
Related MCP server: brainforge-mcp
Prerequisites
Any MCP client (e.g., Claude Desktop, Continue, etc.)
Installation
Clone this repository:
git clone https://github.com/koei-kaji/zk-mcp.git
cd zk-mcpInstall dependencies:
uv syncConfiguration
Add the following settings to your MCP client's servers.json:
{
"mcpServers": {
"zk": {
"alwaysAllow": [
"get_note",
"get_note_paths",
"get_linking_notes",
"get_tags",
"create_note"
],
"args": [
"--directory",
"/path/to/zk-mcp/",
"run",
"server.py"
],
"command": "uv",
"env": {
"ZK_DIR": "/path/to/your/zk-note-directory/"
}
}
}
}Important: Replace /path/to/zk-mcp/ with the actual path to this repository and /path/to/your/zk-note-directory/ with the path to your zk notes directory.
Available MCP Tools
This server provides the following MCP tools:
get_note_paths
Search for notes based on various criteria:
include_str: Filter notes containing specific strings in content or filename
include_str_operand: Logical operator (
AND/OR) for multiple string filtersexclude_str: Exclude notes containing specific strings
include_tags: Filter notes by tags
include_tags_operand: Logical operator (
AND/OR) for multiple tag filtersexclude_tags: Exclude notes with specific tags
get_linking_notes
Discover note relationships:
link_to_notes: Notes that the specified note links to
linked_by_notes: Notes that link to the specified note
related_notes: Notes that are related to the specified note
get_tags
List all available tags in the note repository.
get_note
Read the complete content of a specific note by path.
create_note
Create a new note with the specified title in an optional directory.
Development
Commands
make run- Run the MCP server in development mode withZK_DIR=.make format- Format code using ruff (imports + formatting)make lint- Run linting with ruff and type checking with mypymake test- Run all tests with pytestmake pre-commit- Run both format and lint (recommended before commits)
Package Management
uv add <package>- Add runtime dependencyuv add --dev <package>- Add development dependencyuv run <command>- Run command in virtual environment
Architecture
The server is built using:
FastMCP: MCP server implementation
Pydantic: Data validation and serialization
zk CLI: Backend integration with zk note system
All tools return JSON responses using Pydantic models for type safety and validation.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server for managing Obsidian-style note vaults, providing tools for full-text search, note creation, and backlink tracking. It enables users to navigate, structure, and update their personal knowledge base through natural language.9MIT
- AlicenseAqualityDmaintenanceAn MCP server that transforms markdown notes into an AI-powered knowledge graph. It enables LLM clients to explore, analyze, and diagnose knowledge graphs through tools for node explanation, path finding, causal chain analysis, and wiki health reporting.5MIT
- Alicense-qualityDmaintenanceAn MCP server that provides Claude and other MCP clients with persistent memory through a Zettelkasten knowledge base of interconnected markdown notes. It enables LLMs to create, search, link, and reference atomic notes across sessions without requiring manual copy-pasting.MIT
- Alicense-qualityCmaintenanceMCP server for zk note management enabling note search, creation, and link analysis via the zk command-line tool.1MIT
Related MCP Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/koei-kaji/zk-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server