Supports file synchronization of the markdown-based knowledge base across devices through Dropbox cloud storage
Enables version control for the knowledge base, providing change history tracking, backup capabilities, and collaboration features for markdown notes
Supports file synchronization of the markdown-based knowledge base across devices through Google Drive cloud storage
Supports file synchronization of the markdown-based knowledge base across devices through iCloud Drive cloud storage
Provides full compatibility with Obsidian for viewing and editing markdown notes, allowing seamless integration between AI-managed knowledge base and Obsidian's visualization and mobile access features
Supports decentralized file synchronization of the markdown-based knowledge base across devices without relying on cloud services
Knowledge Base MCP Server
A Model Context Protocol (MCP) server for managing a personal markdown-based knowledge base. Enable AI assistants like Claude to read, search, and update your notes naturally.
Overview
This MCP server provides AI-native access to a personal knowledge base stored as markdown files with YAML frontmatter. It allows you to:
Create and organize notes across multiple categories
Search through your knowledge base using natural language
Update and maintain notes with AI assistance
Keep all data in human-readable, portable markdown format
Access your notes from Claude Desktop, Claude Code, or any MCP-compatible client
Features
Core Capabilities
7 MCP Tools for complete knowledge base management
add_note
- Create new notessearch_notes
- Search by content, tags, or categoryget_note
- Retrieve full note contentupdate_note
- Modify existing notes (replace or append)list_notes
- List notes with optional filtersdelete_note
- Remove notes (with backup)list_categories
- View all categories and counts
Smart Search with relevance scoring
Search across titles, content, tags, and metadata
Case-insensitive matching
Filter by category or tags
Ranked results by relevance
Flexible Organization
Default categories: people, recipes, meetings, procedures, tasks
Configurable category system
Tag-based organization
Rich metadata support
Data Safety
Automatic backups before updates
Atomic file writes
Human-readable markdown format
No vendor lock-in
Installation
Prerequisites
Python 3.11 or higher
uv
package manager (recommended) orpip
Install with uv (Recommended)
Install with pip
Configuration
Environment Variables
Create a .env
file in the project root (optional):
Claude Desktop Setup
Add the server to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Alternative (using pip/venv):
After configuration, restart Claude Desktop.
Usage
Example Interactions
Adding Notes
Searching
Retrieving Notes
Updating Notes
Quick Reference
Knowledge Base Structure
Your knowledge base is stored as markdown files in a simple folder structure:
Markdown Format
Each note is a markdown file with YAML frontmatter:
Metadata Fields
Required:
tags
: List of tags for categorizationdate
: Creation date (YYYY-MM-DD)category
: Category folder name
Optional (category-specific):
People:
company
,role
,email
,phone
Recipes:
prep_time
,cook_time
,servings
Meetings:
attendees
,meeting_date
,location
Tasks:
priority
,due_date
,status
You can add any custom metadata fields as needed.
Development
Running Tests
Project Structure
Adding Custom Categories
Edit your .env
file or environment configuration:
The server will automatically create folders for new categories.
Troubleshooting
Common Issues
Server not appearing in Claude Desktop:
Verify the path in
claude_desktop_config.json
is absoluteCheck that the command path is correct (
uv
or python path)Restart Claude Desktop completely
Check Claude Desktop logs for errors
Notes not being created:
Verify
KNOWLEDGE_BASE_PATH
exists and is writableCheck file permissions
Ensure category is valid (use
list_categories
tool)
Search not finding notes:
Verify notes have proper YAML frontmatter
Check that tags are formatted as lists
Try searching with simpler queries
Use
list_notes
to see what notes exist
Permission errors:
Ensure the knowledge base directory has write permissions
On macOS, you may need to grant Claude Desktop disk access in System Preferences
Viewing Logs
Claude Desktop logs can help diagnose issues:
macOS:
~/Library/Logs/Claude/
Windows:
%APPDATA%\Claude\logs\
Linux:
~/.config/Claude/logs/
Use Cases
Conference CRM
Track people you meet at conferences with contact info, notes, and follow-up tasks.
Recipe Collection
Store recipes with tags, cook times, and personal notes about modifications.
Meeting Notes
Keep meeting agendas, discussion points, and action items organized by topic.
Procedure Documentation
Maintain step-by-step procedures and checklists for recurring tasks.
Task Management
Track projects, deadlines, and task lists with priorities and status.
Integration with Other Tools
Obsidian
The markdown format is fully compatible with Obsidian. You can:
Open the knowledge base in Obsidian
Edit notes in either Obsidian or via Claude
Use Obsidian mobile for on-the-go access
Sync via Obsidian Sync or iCloud
Git Version Control
Consider adding git version control to your knowledge base:
This provides:
Version history of all changes
Ability to revert changes
Backup to remote repository
Collaboration capabilities
File Sync
Use any file sync service:
iCloud Drive
Dropbox
Google Drive
Syncthing
Roadmap
Phase 2 Features (Planned)
HTTP API for web and mobile access
Web UI for browsing and editing
AI pendant integration via webhooks
Automatic summarization and insights
Calendar integration
Email integration
Future Considerations
Multi-user support
Real-time collaboration
Advanced search with embeddings
Automatic tagging suggestions
Template system for note types
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Add tests for new functionality
Ensure all tests pass
Submit a pull request
License
MIT License - see LICENSE file for details
Support
Report issues: [GitHub Issues]
Documentation: MCP Documentation
Community: [MCP Discord]
Acknowledgments
Built with:
Made with Claude Code
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables AI assistants to manage a personal markdown-based knowledge base with natural language interactions. Supports creating, searching, updating, and organizing notes across categories like people, recipes, meetings, and procedures.