MCP ExplorerExplorer

Chat Summary

@idoubion 13 days ago
977 MIT
FreeCommunity
Messaging
#chat#summary
Query and Summarize chat messages with LLM. by [mcpso](https://mcp.so/)

Overview

What is Chat Summary

mcp-server-chatsum is a server designed to summarize chat messages stored in a database. It allows users to query and generate summaries of their chat interactions.

Use cases

This server can be used for various applications, such as analyzing conversation history, generating insights from chat data, and creating concise overviews for personal or business use.

How to use

To use mcp-server-chatsum, set up your environment by creating a .env file with the chat database path, install the necessary dependencies, build the server, and configure it for use with Claude Desktop. Start the chatbot to save chat messages and utilize the summary features through designated tools.

Key features

Key features include querying chat messages based on specific parameters and summarizing the retrieved messages. The server also offers an inspection tool for debugging and real-time monitoring of communications.

Where to use

This server can be integrated into chat applications, customer service platforms, or any environment where chat data is generated and needs to be analyzed or summarized for better understanding and management.

Content

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

Tools

query_chat_messages
query chat messages with given parameters

Comments