The mcp-server-chatsum repository provides an MCP server to summarize chat messages stored in a database, allowing users to query and summarize their conversations using tools and prompts. It's designed for
This MCP Server summarizes your chat messages. A Chinese version of this README is available here.
The server provides tools to query and summarize chat messages stored in a database. Before starting, set up the chat database by following the instructions in the chatbot directory's README and start the chatbot to save your messages.
The server offers the query_chat_messages
tool, which allows querying chat messages with specific parameters and summarizing them based on a given prompt.
To develop, create a .env
file with the CHAT_DB_PATH
variable pointing to your chat database. Install dependencies with pnpm install
, build with pnpm build
, and use pnpm watch
for auto-rebuild during development.
To use with Claude Desktop, add a server configuration to the claude_desktop_config.json
file, specifying the path to the Node.js executable and the server's index.js
file, along with the CHAT_DB_PATH
environment variable. Debugging can be done using the MCP Inspector via pnpm inspector
.
chatmcp/mcp-server-chatsum
December 3, 2024
March 28, 2025
TypeScript