mcp-server-chatsum

MCP.Pizza Chef: chatmcp

mcp-server-chatsum is an MCP server designed to query and summarize chat messages stored in a chat database. It enables efficient retrieval of chat data based on specific parameters and generates concise summaries of the queried messages. This server integrates with chatbots by accessing their message databases, providing developers and users with powerful tools to analyze and understand chat histories. Setup involves configuring the chat database path and installing dependencies, making it suitable for development and integration with platforms like Claude Desktop. Its core tool, `query_chat_messages`, supports both querying and summarization, facilitating streamlined chat data management and insight extraction.

Use This MCP server To

Query chat messages by specific parameters Summarize large volumes of chat conversations Integrate chat message summaries into chatbot workflows Analyze chat history for key insights Support chat data retrieval in AI assistant apps

README

mcp-server-chatsum

This MCP Server is used to summarize your chat messages.

中文说明

preview

Before you start

move to chatbot directory, follow the README to setup the chat database.

start chatbot to save your chat messages.

Features

Resources

Tools

  • query_chat_messages - Query chat messages
    • Query chat messages with given parameters
    • Summarize chat messages based on the query prompt

Prompts

Development

  1. Set up environment variables:

create .env file in the root directory, and set your chat database path.

CHAT_DB_PATH=path-to/chatbot/data/chat.db
  1. Install dependencies:
pnpm install

Build the server:

pnpm build

For development with auto-rebuild:

pnpm watch

Installation

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"
      }
    }
  }
}

Debugging

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.

Community

About the author

mcp-server-chatsum FAQ

How do I set up the chat database for mcp-server-chatsum?
Move to the chatbot directory and follow the README instructions to set up the chat database before starting the server.
What environment variable is required for mcp-server-chatsum?
You need to create a .env file with the CHAT_DB_PATH variable pointing to your chat database file.
How do I install dependencies for mcp-server-chatsum?
Run 'pnpm install' in the root directory to install all required dependencies.
Can mcp-server-chatsum summarize chat messages?
Yes, it provides a tool called 'query_chat_messages' that can summarize chat messages based on query prompts.
How do I run mcp-server-chatsum in development mode?
Use 'pnpm watch' to start the server with auto-rebuild for development.
How can I integrate mcp-server-chatsum with Claude Desktop?
Add the server configuration to Claude Desktop's config file located in the user application support directory on MacOS or Windows.
Is mcp-server-chatsum limited to any specific chat platform?
No, it works with any chat database set up according to the chatbot directory instructions.
What programming environment is required for mcp-server-chatsum?
It requires Node.js with pnpm package manager for installation and building.