Query and Summarize your chat messages.
This MCP Server is used to summarize your chat messages.
中文说明{:target=“_blank”}

Before you start
move to chatbot{:target=“_blank”} directory, follow the README{:target=“_blank”} to setup the chat database.
start chatbot to save your chat messages.
query_chat_messages - Query chat messages
create .env file in the root directory, and set your chat database path.
CHAT_DB_PATH=path-to/chatbot/data/chat.db
pnpm install
Build the server:
pnpm build
For development with auto-rebuild:
pnpm watch
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-server-chatsum": {
"command": "path-to/bin/node",
"args": ["path-to/mcp-server-chatsum/build/index.js"],
"env": {
"CHAT_DB_PATH": "path-to/mcp-server-chatsum/chatbot/data/chat.db"
}
}
}
}
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
pnpm inspector
The Inspector will provide a URL to access debugging tools in your browser.