memory-mcp
Click on "Deploy 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., "@memory-mcp Search my notes for project ideas"
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.
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 |
Memory Write-back | AI agents can save new notes and append to existing ones |
File Reader | Read PDFs, DOCX, Markdown, code files from anywhere on disk |
Browser History | Search Chrome, Edge, and Firefox history (auto-detected) |
Code Activity | Git commits, repo stats, and VSCode recent files |
Conversations | Parse exported Claude & ChatGPT conversation JSON files |
Calendar | Google Calendar integration via OAuth 2.0 (requires setup) |
Event Logger | Real-time file change tracking via watchdog |
Unified Gateway | FastAPI + LangGraph agent that routes queries across all sources |
Incremental Indexing | Only re-indexes new/modified files — no full rebuilds needed |
Related MCP server: context-hub-mcp
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 │ │• Edge │ │• Repo stats │ │
│ │• Events │ │• Text │ │• Firefox │ │• VSCode recent │ │
│ │• Save │ │ │ │ │ │ │ │
│ └──────────┘ └──────────┘ └──────────┘ └────────────────┘ │
│ │
│ ┌──────────────────┐ ┌──────────────────────────────────┐ │
│ │ Conversations MCP│ │ Knowledge Graph MCP │ │
│ │ │ │ │ │
│ │• Claude exports │ │• Entity extraction (regex-based) │ │
│ │• 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)
A supported browser (Chrome, Edge, or Firefox) — for browser history (optional)
1. Clone & Install
git clone https://github.com/Shaktisinhchavda/memory-mcp.git
cd memory-mcp
uv sync2. Configure
cp .env.example .env
# Edit .env if needed — defaults work out of the box on any OS3. Add Your Notes
Place markdown or text files in data/notes/:
echo "# My Project Ideas" > data/notes/ideas.md4. Index & Build
# Index notes into ChromaDB (incremental — only new/modified files)
uv run python scripts/index_notes.py
# Full rebuild (if needed)
uv run python scripts/index_notes.py --force
# Start Neo4j (optional — for knowledge graph)
docker compose up -d
# Build knowledge graph from notes
uv run python scripts/build_graph.py5. Run
Option A — Claude Desktop Integration (recommended)
Add to your Claude Desktop config:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"memory-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/memory-mcp", "run", "python", "core_mcp/server.py"]
},
"files-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/memory-mcp", "run", "python", "connectors/files_mcp/server.py"]
},
"browser-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/memory-mcp", "run", "python", "connectors/browser_mcp/server.py"]
},
"code-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/memory-mcp", "run", "python", "connectors/code_mcp/server.py"]
},
"conversations-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/memory-mcp", "run", "python", "connectors/conversations_mcp/server.py"]
},
"graph-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/memory-mcp", "run", "python", "knowledge_graph/server.py"]
}
}
}Replace
/path/to/memory-mcpwith the actual absolute path to this project.
Option B — Unified Gateway (HTTP API)
uv run uvicorn gateway.server:app --host 127.0.0.1 --port 8000Open Swagger UI at http://localhost:8000/docs.
Tools Reference (25 tools)
Core MCP (6 tools)
Tool | Description |
| List and read personal notes |
| Query knowledge base by meaning |
| Recent file change events |
| Vector store diagnostics |
| Save new notes (memory write-back) |
| Append to existing notes |
Files MCP (3 tools)
Tool | Description |
| Read PDF, DOCX, text files |
| List files in a directory |
| Search by filename pattern |
Browser MCP (5 tools)
Tool | Description |
| Recent history (Chrome/Edge/Firefox) |
| Top sites by visit count |
| Search by keyword |
| Stats across all browsers |
| List installed browsers |
Code MCP (5 tools)
Tool | Description |
| Git commit history |
| Single commit details |
| Modified/staged/untracked files |
| Repo stats and contributors |
| Recently opened in VSCode |
Conversations MCP (3 tools)
Tool | Description |
| List exported JSON files |
| Parse Claude/ChatGPT exports |
| Search by keyword |
Note: Conversation support is export-based. Export your Claude or ChatGPT conversations as JSON and place them in
data/conversations/. Live sync is not supported due to API limitations.
Calendar MCP (3 tools)
Tool | Description |
| Future calendar events |
| Today's events |
| Search events by keyword |
Setup required: Create a Google Cloud project, enable the Calendar API, download
credentials.jsontoconfig/, and run the server once to complete OAuth. See Google Calendar API Quickstart.
Knowledge Graph MCP (4 tools)
Tool | Description |
| Find entity and its connections |
| Shortest path between entities |
| Node/relationship counts |
| Extract entities into graph |
Technical Details
Entity Extraction
The knowledge graph uses regex and pattern-based extraction (no LLM required):
People: Capitalized multi-word names (e.g., "John Smith")
Technologies: Matched against a curated keyword list (56 terms)
Topics: Extracted from markdown headers
Projects: Detected by naming patterns (e.g., "VizDataAI", "FastAPI")
Tasks: Parsed from
- [ ]/- [x]markdown checkboxes
This is intentionally lightweight and local-only. For higher accuracy, swap in spaCy NER or an LLM-based extractor in knowledge_graph/extractor.py.
Incremental Indexing
Both index_notes.py and build_graph.py track file modification times in a manifest file. Only new or changed files are re-processed. Use --force for a full rebuild.
Browser Support
The browser connector auto-detects installed browsers:
Browser | Windows | macOS | Linux |
Chrome | Yes | Yes | Yes |
Edge | Yes | Yes | Yes |
Firefox | Yes | Yes | Yes |
Project Structure
memory-mcp/
├── core_mcp/ # Phase 1 — Core MCP server
│ ├── server.py # Main MCP server (stdio)
│ ├── tools/ # Notes + search + write-back tools
│ ├── vector_store/ # ChromaDB integration
│ └── event_logger/ # File watcher + SQLite
├── connectors/ # Phase 2 — Data connectors
│ ├── files_mcp/ # PDF, DOCX, text reader
│ ├── browser_mcp/ # Chrome, Edge, Firefox 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 (regex-based)
│ ├── 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 (incremental)
│ ├── 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 templatePrivacy
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-ignoredSecrets excluded —
.env, credentials, and tokens are git-ignoredCross-platform — works on Windows, macOS, and Linux
Known Limitations
Conversations: Export-only (Claude/ChatGPT JSON). No live sync due to API restrictions.
Calendar: Requires a one-time Google Cloud setup for OAuth credentials.
Entity extraction: Uses structural heuristics (word count, length, non-name word filter) to reduce false positives. Still regex-based — for higher accuracy, swap in spaCy NER or an LLM-based extractor in
knowledge_graph/extractor.py.
License
MIT
Available Tools
6 toolsappend_noteA
Append content to an existing note.
Use this to add follow-up context, action items, or updates to an existing note without overwriting it.
Args: filename: Name of the existing note file. content: Content to append.
Returns: JSON string with updated file metadata.
Inputs: filename (required), content (required). Returns: result
get_recent_activityA
Get recent file system activity from watched directories.
Shows the latest file changes (created, modified, deleted, moved) in your notes and files directories. Useful for understanding what you've been working on recently.
Args: limit: Number of recent events to return (default 20, max 100).
Returns: JSON string with recent file events and timestamps.
Inputs: limit. Returns: result
index_statsA
Get statistics about the vector search index.
Shows how many documents/chunks are indexed, which embedding model is being used, and where the data is stored.
Returns: JSON string with index statistics.
Inputs: no named parameters. Returns: result
read_notesA
Read personal notes from the local filesystem.
If no filename is provided, lists all available notes with metadata. If a filename is provided, returns the full content of that note.
Args: filename: Optional. Name of the note file to read (e.g. "ideas.md"). If omitted, returns a list of all available notes.
Returns: JSON string with note content or list of available notes.
Inputs: filename. Returns: result
save_noteA
Save a new note or overwrite an existing one.
Use this to write memories, meeting summaries, conversation notes, or any context back into the personal knowledge base.
Args: filename: Name for the note file (e.g., "meeting-summary.md"). content: Full content to write.
Returns: JSON string with saved file metadata.
Inputs: filename (required), content (required). Returns: result
semantic_searchA
Search personal notes and files by semantic meaning.
Uses vector embeddings to find content related to your query, even if the exact words don't match. For example, searching "project deadlines" will find notes about "due dates" or "milestones".
Args: query: Natural language description of what you're looking for. top_k: Number of results to return (1-20, default 5).
Returns: JSON string with ranked search results and relevance scores.
Inputs: query (required), top_k. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct operation: note creation/overwrite (save_note), appending (append_note), reading/list (read_notes), semantic search (semantic_search), index info (index_stats), and recent activity (get_recent_activity). No two tools overlap in purpose.
Most tools follow a verb_noun pattern (append_note, read_notes, save_note, get_recent_activity). However, 'index_stats' uses a noun_noun pattern instead of 'get_index_stats', and 'semantic_search' uses an adjective_noun pattern. Overall, naming is clear but not perfectly uniform.
With 6 tools, the server covers essential operations for a personal knowledge base—creating, reading, appending, searching, monitoring activity, and index statistics—without unnecessary bloat. The count is well-scoped for its purpose.
The tool set provides robust support for saving, reading, appending, searching, and monitoring notes. A notable gap is the lack of a delete/remove tool, which could hinder full lifecycle management. Otherwise, coverage is strong.
Related MCP Connectors
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA local-first MCP server that gives AI assistants long-term memory by storing, searching, and recalling notes as Markdown files on your machine.4 npmMIT
- AlicenseNot gradedqualityDmaintenanceA local-first MCP server that turns a .context/ folder of markdown files into a searchable knowledge layer for AI coding agents.2MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that provides semantic memory with search, related-content traversal, and write-back capabilities, all powered by local embeddings of your notes, documents, and chat histories.2MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first MCP server for retrieval over markdown wikilink vaults, offering hybrid vector+lexical search, note reading, neighbor expansion, and recent activity tracking with fully local embeddings and no network egress.MIT