# mcp-server-chatsum

> MCP Server

The mcp-server-chatsum repository provides an MCP server to summarize chat messages stored in a database, allowing users to query and summarize their conversations using tools and prompts. It's designed for

## Overview

- **Category:** Communication
- **Language:** TypeScript
- **Stars:** 1030
- **Forks:** 79
- **Owner:** chatmcp
- **GitHub:** https://github.com/chatmcp/mcp-server-chatsum
- **Homepage:** https://mcp.so
- **Created:** 2024-12-03T16:08:19+00:00
- **Updated:** 2025-03-28T20:10:27+00:00
- **Source:** https://model-context-protocol.com/servers/query-summarize-chat-messages-mcp-server

## Setup

## Setup

1.  Move to the `chatbot` directory and follow the `README` to set up the chat database.
2.  Start the chatbot to save your chat messages.
3.  Create a `.env` file in the root directory and set the `CHAT_DB_PATH` to your chat database path.
4.  Install dependencies using `pnpm install`.
5.  Build the server using `pnpm build`.
6.  For development with auto-rebuild, use `pnpm watch`.
7.  To use with Claude Desktop, add the server config to the `claude_desktop_config.json` file.
8.  Set the command, args, and environment variables in the `claude_desktop_config.json` file.
9.  For debugging, use the MCP Inspector with `pnpm inspector`.

## Tools

## Available Tools

1.  `query_chat_messages` - Query chat messages with given parameters.
2.  `query_chat_messages` - Summarize chat messages based on the query prompt.
