MCP HubMCP Hub
chatmcp

mcp-server-chatsum

by: chatmcp

Query and Summarize your chat messages.

834created 03/12/2024
Visit
Chat
Summarization

📌Overview

Purpose: The MCP Server is designed to summarize chat messages efficiently.

Overview: This framework facilitates the summarization of chat interactions by querying stored messages and generating concise summaries based on user-defined parameters. It serves as an essential tool for enhancing communication clarity.

Key Features:

  • Query Chat Messages: Allows users to query chat messages using specific parameters and provides summary outputs based on those queries, which enhances quick information retrieval.

  • Environment Setup: A streamlined process for setting up the environment and dependencies ensuring seamless integration, making it accessible even for developers with minimal setup experience.


mcp-server-chatsum

This MCP Server is used to summarize chat messages.

Getting Started

  1. Move to the [chatbot](./chatbot) directory and follow the [README](./chatbot/README.md) to set up the chat database.
  2. Start the chatbot to save your chat messages.

Features

  • Resources
  • Tools
    • query_chat_messages: Query and summarize chat messages based on given parameters.

Development

  1. Set up environment variables: Create a .env file in the root directory and set your chat database path.

    CHAT_DB_PATH=path-to/chatbot/data/chat.db
    
  2. 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:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • 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

Debugging MCP servers can be challenging since they communicate over stdio. We recommend using the MCP Inspector for debugging:

pnpm inspector

The Inspector will provide a URL for debugging tools in your browser.

Community

About the Author