DEVtheOPS/insights-mcp
3.2
If you are the rightful owner of insights-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
Insights-MCP is a server designed for persistent memory storage in Claude Code sessions, enabling the saving and retrieval of project-specific insights across sessions with full-text search capabilities.
Tools
6
Resources
0
Prompts
0
insights-mcp
MCP server for persistent memory storage in Claude Code sessions. Save and retrieve project-specific insights across sessions with full-text search.
Features
- Persistent SQLite storage with FTS5 full-text search
- Project-specific or global context isolation
- Dual transport modes: stdio (local) and HTTP (remote)
- Six MCP tools: save, search, list, get, update, delete
- Flexible JSON metadata on each insight
Installation
npm install -g insights-mcp
# or use npx without global install
npx insights-mcp --mode stdio
Usage
Stdio Mode (local / Claude Code)
insights-mcp
# or explicitly
insights-mcp --mode stdio --db-path ~/.insights-mcp/insights.db
HTTP Mode (remote)
insights-mcp --mode http --port 3000
Server listens at http://localhost:3000/mcp.
Configuration
--mode <stdio|http>: Transport mode (default: stdio)--db-path <path>: Database file path (default:~/.insights-mcp/insights.db)--port <number>: HTTP port for http mode (default: 3000)
Environment variables mirror the flags:
INSIGHTS_MCP_MODEINSIGHTS_MCP_DB_PATHINSIGHTS_MCP_PORT
CLI flags override environment variables.
MCP Tools
- save-insight: Save new insight. Inputs:
content(min 3 chars),context(required in HTTP), optionalmetadata. Output:id,created_at. - search-insights: Full-text search with optional
context,limit,offset. Output:results,total,hasMore. - list-insights: List insights chronologically with optional
context,limit,offset. Output:results,total,hasMore. - get-insight: Retrieve by
id. Output:insight,found. - update-insight: Update
contentormetadatabyid. Output:updated,insight. - delete-insight: Delete by
id. Output:deleted,id.
Development
npm install
npm run build # compile to dist/
npm run dev # watch mode
npm start # run compiled stdio mode
node dist/index.js --mode http --port 3000
Database
- Default location:
~/.insights-mcp/insights.db(override with--db-pathorINSIGHTS_MCP_DB_PATH) - Schema:
insightstable +insights_ftsvirtual table (FTS5) with triggers to keep indexes in sync - Indexes on
contextandcreated_atfor fast queries
Claude Code integration
Example MCP client entry:
{
"mcpServers": {
"insights": {
"command": "npx",
"args": ["insights-mcp"],
"env": {
"INSIGHTS_MCP_DB_PATH": "/path/to/custom/insights.db"
}
}
}
}
Contributing
- See
CONTRIBUTING.mdfor workflow, coding guidelines, and commit format. - All work is tracked with bd (beads); please create or link issues before sending a PR.
License
GPL-3.0-only