MCP Memory
Provides read-only access to Kilo Code and Opencode session data stored in a local SQLite database, enabling listing projects and sessions, reading conversation messages, and full-text keyword search across messages.
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., "@MCP Memorysearch my past sessions for how we fixed the auth bug"
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.
MCP Memory — Open code / Kilo Code Session Recall
MCP server providing read-only access to Kilo Code and Opencode server conversations stored in the local SQLite database. Query projects, list sessions, read conversation history, and search across all messages with keyword recall.
Available Tools
Tool | Description |
| List all Kilo Code projects |
| List sessions within a project (paginated) |
| Read conversation messages from a session (paginated) |
| Full-text keyword search across all session messages |
Related MCP server: Conversation Search MCP Server
Quick start : MCP Client Configuration
mkdir -p /home/opencode/workspace/
cd /home/opencode/workspace/
git clone github.com/PascalNoisette/netpascal_mcp_memory
pip install -r requirements.txt{
"mcp": {
"servers": {
"memory": {
"type": "local",
"enabled": true,
"command": [
"python3",
"/home/opencode/workspace/netpascal_mcp_memory/server.py"
],
"environment": {
"DATABASE_PATH": "/home/opencode/.local/share/opencode/opencode.db:rw",
"SERVER_NAME":"memory"
}
}
}
}Environment variables:
DATABASE_PATH (required) Primary opencode DB path.
SERVER_NAME (required) Unique tag for this MCP instance (e.g. 'prod', 'dev').
FTS_DB_PATH (optional) Shared FTS5 index path, otherwise DATABASE_PATH is used with a default suffix
Architecture
MCP read primary opencode database (via
DATABASE_PATH) and writes to a shared FTS index (via
FTS_DB_PATH). The SERVER_NAME env var identifies this instance
so that rows in the shared FTS index are tagged and can be filtered.
┌────────────────────────────────────┐
│ MCP instance │s
│ SERVER_NAME=memory │
│ │
│ DB: (opencode.db) │
│ │ │
│ ┌────────┐ │ │
│ │ part │───────────┼────────────┤─────────────────────────────
│ └────────┘ │ │ │
│ ┌────────┐ │ │ │
│ │session │────────── ┼ │ │
│ └────────┘ │ │
└────────────────────────────────────┘ │
│
FTS Database created (opencode.db_fts.db) │
┌──────────────────────────────────────────────────────────────┐ │
│ part_fts (FTS5) ← includes a "server" column for tagging │ ◄─┘
│ part_fts_meta (per-server watermarks) │
└──────────────────────────────────────────────────────────────┘
This server cannot be deployed
Maintenance
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Explore your Messages SQLite database to browse tables and inspect schemas with ease. Run flexible…
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables querying, searching, and analyzing Cursor IDE conversation history from SQLite workspaceStorage databases. Supports exporting chat data in multiple formats and provides workspace utilities for managing conversation data across projects.MIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables comprehensive search and analysis of Claude Code conversation history using full-text search, optional semantic vector search, and conversation management tools. Provides fast SQLite-based indexing with role-based filtering, project organization, and hybrid search capabilities combining keyword and semantic matching.-
- AlicenseAqualityCmaintenanceEnables searching and analyzing GitHub Copilot's conversation history stored locally, providing tools for full-text search, session listing, statistics, and file-based retrieval.64MIT
- FlicenseNot gradedqualityDmaintenanceEnables querying and summarizing chat messages from a local database.-