memory-mcp
A local-first MCP server that exposes personal notes and files as unified semantic context for AI agents via vector search and file monitoring.
README
Personal MCP Ecosystem
A modular, local-first infrastructure that exposes your personal data — files, notes, browser history, code activity, conversations — as unified semantic context via the Model Context Protocol (MCP).
Any AI agent can plug into this and instantly know you.
Features
| Capability | Description |
|---|---|
| Semantic Search | Query your notes by meaning using ChromaDB + sentence-transformers |
| Knowledge Graph | Neo4j-backed entity extraction with relationship mapping |
| File Reader | Read PDFs, DOCX, Markdown, code files from anywhere on disk |
| Browser History | Search your Chrome browsing history |
| Code Activity | Git commits, repo stats, and VSCode recent files |
| Conversations | Search exported Claude & ChatGPT conversations |
| Event Logger | Real-time file change tracking via watchdog |
| Unified Gateway | FastAPI + LangGraph agent that routes queries across all sources |
Architecture
┌──────────────────────────────────────────────────────────────┐
│ Unified Gateway (:8000) │
│ FastAPI + LangGraph Agent Pipeline │
│ analyze → execute → aggregate → rank │
├──────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌────────────────┐ │
│ │ Core MCP │ │Files MCP │ │ Browser │ │ Code MCP │ │
│ │ │ │ │ │ MCP │ │ │ │
│ │• Notes │ │• PDF │ │• Chrome │ │• Git commits │ │
│ │• Search │ │• DOCX │ │ History │ │• Repo stats │ │
│ │• Events │ │• Text │ │• Stats │ │• VSCode recent │ │
│ └──────────┘ └──────────┘ └──────────┘ └────────────────┘ │
│ │
│ ┌──────────────────┐ ┌──────────────────────────────────┐ │
│ │ Conversations MCP│ │ Knowledge Graph MCP │ │
│ │ │ │ │ │
│ │• Claude exports │ │• Entity extraction │ │
│ │• ChatGPT exports │ │• Graph search (Neo4j) │ │
│ │• Search & parse │ │• Path finding │ │
│ └──────────────────┘ └──────────────────────────────────┘ │
│ │
├──────────────────────────────────────────────────────────────┤
│ ChromaDB (vectors) │ Neo4j (graph) │ SQLite (events) │
└──────────────────────────────────────────────────────────────┘
Quick Start
Prerequisites
- Python 3.11+
- uv — Python package manager
- Docker — for Neo4j (optional)
- Google Chrome — for browser history (optional)
1. Clone & Install
git clone https://github.com/Shaktisinhchavda/memory-mcp.git
cd memory-mcp
uv sync
2. Configure
cp .env.example .env
# Edit .env with your settings (defaults work out of the box)
3. Add Your Notes
Place markdown or text files in data/notes/:
# Example
echo "# My Project Ideas" > data/notes/ideas.md
4. Index & Build
# Index notes into ChromaDB vector store
uv run python scripts/index_notes.py
# Start Neo4j (optional — for knowledge graph)
docker compose up -d
# Build knowledge graph from notes
uv run python scripts/build_graph.py
5. Run
Option A — Claude Desktop Integration (recommended)
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"memory-mcp": {
"command": "uv",
"args": ["--directory", "D:\\memory-mcp", "run", "python", "core_mcp/server.py"]
},
"files-mcp": {
"command": "uv",
"args": ["--directory", "D:\\memory-mcp", "run", "python", "connectors/files_mcp/server.py"]
},
"browser-mcp": {
"command": "uv",
"args": ["--directory", "D:\\memory-mcp", "run", "python", "connectors/browser_mcp/server.py"]
},
"code-mcp": {
"command": "uv",
"args": ["--directory", "D:\\memory-mcp", "run", "python", "connectors/code_mcp/server.py"]
},
"conversations-mcp": {
"command": "uv",
"args": ["--directory", "D:\\memory-mcp", "run", "python", "connectors/conversations_mcp/server.py"]
},
"graph-mcp": {
"command": "uv",
"args": ["--directory", "D:\\memory-mcp", "run", "python", "knowledge_graph/server.py"]
}
}
}
Restart Claude Desktop. You'll see the 🔨 icon.
Option B — Unified Gateway (HTTP API)
uv run uvicorn gateway.server:app --host 0.0.0.0 --port 8000
Open Swagger UI at http://localhost:8000/docs.
🛠️ Tools Reference
Core MCP (4 tools)
| Tool | Description |
|---|---|
read_notes |
List and read personal notes |
semantic_search |
Query knowledge base by meaning |
get_recent_activity |
Recent file change events |
index_stats |
Vector store diagnostics |
Files MCP (3 tools)
| Tool | Description |
|---|---|
read_local_file |
Read PDF, DOCX, text files |
list_local_files |
List files in a directory |
search_local_files |
Search by filename pattern |
Browser MCP (4 tools)
| Tool | Description |
|---|---|
recent_browsing_history |
Recent Chrome history |
most_visited_sites |
Top sites by visit count |
search_browsing_history |
Search by keyword |
browsing_stats |
Overall browsing stats |
Code MCP (5 tools)
| Tool | Description |
|---|---|
recent_commits |
Git commit history |
commit_details |
Single commit details |
git_status |
Modified/staged/untracked files |
repo_statistics |
Repo stats and contributors |
vscode_recent |
Recently opened in VSCode |
Conversations MCP (3 tools)
| Tool | Description |
|---|---|
list_conversation_exports |
List exported JSON files |
read_conversations |
Parse Claude/ChatGPT exports |
search_in_conversations |
Search by keyword |
Knowledge Graph MCP (4 tools)
| Tool | Description |
|---|---|
graph_search |
Find entity and its connections |
find_connection |
Shortest path between entities |
graph_stats |
Node/relationship counts |
ingest_file |
Extract entities into graph |
Project Structure
memory-mcp/
├── core_mcp/ # Phase 1 — Core MCP server
│ ├── server.py # Main MCP server (stdio)
│ ├── tools/ # Notes + search tools
│ ├── vector_store/ # ChromaDB integration
│ └── event_logger/ # File watcher + SQLite
├── connectors/ # Phase 2 — Data connectors
│ ├── files_mcp/ # PDF, DOCX, text reader
│ ├── browser_mcp/ # Chrome history
│ ├── calendar_mcp/ # Google Calendar (OAuth)
│ ├── code_mcp/ # Git + VSCode activity
│ └── conversations_mcp/ # Claude/ChatGPT exports
├── knowledge_graph/ # Phase 3 — Neo4j graph
│ ├── extractor.py # Entity extraction
│ ├── graph_store.py # Neo4j CRUD + search
│ └── server.py # Graph MCP server
├── gateway/ # Phase 4 — Unified gateway
│ ├── agent.py # LangGraph orchestrator
│ ├── router.py # Smart query router
│ ├── ranker.py # Multi-signal ranking
│ ├── context.py # PersonalContext model
│ └── server.py # FastAPI gateway
├── scripts/ # Utility scripts
│ ├── index_notes.py # Build vector index
│ ├── build_graph.py # Build knowledge graph
│ └── start_watcher.py # Start file watcher
├── data/ # Your personal data (git-ignored)
│ ├── notes/ # Markdown notes
│ ├── files/ # Documents
│ └── conversations/ # Exported AI chats
├── docker-compose.yml # Neo4j container
├── pyproject.toml # Dependencies
└── .env.example # Config template
Privacy
- 100% local-first — all processing runs on your machine
- No cloud APIs required — embeddings, search, and graph are local
- Personal data never committed —
data/is git-ignored - Secrets excluded —
.env, credentials, and tokens are git-ignored
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。