by chatmcp
The mcp-server-chatsum is an MCP server designed to leverage large language models (LLMs) to query and summarize chat messages. It integrates with chat applications, particularly Claude Desktop, to provide intelligent summarization capabilities.
mcp-server-chatsum is an MCP (Model Context Protocol) server designed to query and summarize your chat messages using Large Language Models (LLMs). It integrates with chat applications, specifically Claude Desktop, to provide intelligent summarization capabilities.
To use mcp-server-chatsum, you first need to set up a chat database by following the instructions in the chatbot
directory. Ensure your chat application is configured to save messages to this database. Then, you need to install the server dependencies using pnpm install
and build the server with pnpm build
. For development with auto-rebuild, use pnpm watch
. Finally, configure your Claude Desktop application (or other compatible MCP client) by adding the server configuration to its mcpServers
settings, specifying the command to run the server and the path to your chat database.
pnpm watch
for auto-rebuild during development and pnpm inspector
for debugging with the MCP Inspector.Q: What is MCP? A: MCP stands for Model Context Protocol, a protocol that allows applications to interact with AI models and services.
Q: How do I set up the chat database?
A: You need to navigate to the chatbot
directory within the project and follow the README.md
instructions there to set up your chat database.
Q: Can I use this with other chat applications?
A: While it is specifically designed for Claude Desktop, any application that supports the Model Context Protocol (MCP) and allows custom server configurations could potentially integrate with mcp-server-chatsum
.
Q: How can I debug the server?
A: You can use the pnpm inspector
command, which launches the MCP Inspector, providing a URL to access debugging tools in your browser.
This MCP Server is used to summarize your chat messages.
Before you start
move to chatbot directory, follow the README 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.
Reviews feature coming soon
Stay tuned for community discussions and feedback