Query chat messages with given parameters and summarize them based on the query prompt
Chat Summarizer is a powerful tool that helps you extract insights from your conversation history. It allows you to query your past chat messages and generate summaries based on specific criteria, making it easier to recall important information and track conversation patterns over time. With this MCP server, you can search through your chat database using various parameters and create concise summaries of relevant conversations. This is particularly useful for retrieving information from past discussions, identifying recurring themes, or compiling key points from lengthy chat histories.
Chat Summarizer is an MCP server that connects to your chat message database and provides tools to query and summarize your conversation history. This allows you to extract valuable information from past conversations without having to manually search through them.
Before using Chat Summarizer, you need to set up the chat database:
chatbot
directory in the repositoryTo use Chat Summarizer with Claude Desktop, you need to add the server configuration to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Add the following configuration, replacing the paths with the actual paths on your system:
{
"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"
}
}
}
}
If you want to modify or develop the server:
Create a .env
file in the root directory and set your chat database path:
CHAT_DB_PATH=path-to/chatbot/data/chat.db
Install dependencies:
pnpm install
Build the server:
pnpm build
For development with auto-rebuild:
pnpm watch
Since MCP servers communicate over stdio, debugging can be challenging. It's recommended to use the MCP Inspector:
pnpm inspector
The Inspector will provide a URL to access debugging tools in your browser.
Once installed, you can use the query_chat_messages
tool to search through your chat history and generate summaries. You can specify various parameters to narrow down your search and provide a prompt for summarization.
Example prompts you might use:
If you need help or want to connect with other users: