# chatmcp/mcp-server-chatsum [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/chatmcp/mcp-server-chatsum  
**GitHub Stars:** 1027  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/chatmcp-mcp-server-chatsum

## Description
Query and summarize your chat messages with AI prompts.

## Tools
Capabilities this server exposes over MCP:

- **query_chat_messages** — Query chat messages

## Claude Desktop Quick Installation
Heuristic fallback — verify the package name and runner against the repository README before running it. Uses `npx` (confidence: low):

```json
"mcpServers": {
  "mcp-server-chatsum": {
    "command": "npx",
    "args": ["-y","chatmcp-mcp-server-chatsum"],
    "env": {
      "CHAT_DB_PATH": ""
    }
  }
}
```

**Requires environment variables:** `CHAT_DB_PATH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation & README

# mcp-server-chatsum

This MCP Server is used to summarize your chat messages.

[中文说明](https://github.com/chatmcp/mcp-server-chatsum/blob/HEAD/README_CN.md)

![preview](https://raw.githubusercontent.com/chatmcp/mcp-server-chatsum/HEAD/preview.png)

> **Before you start**
>
> move to [chatbot](https://github.com/chatmcp/mcp-server-chatsum/blob/HEAD/chatbot) directory, follow the [README](https://github.com/chatmcp/mcp-server-chatsum/blob/HEAD/chatbot/README.md) 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.

```txt
CHAT_DB_PATH=path-to/chatbot/data/chat.db
```

2. Install dependencies:

```bash
pnpm install
```

Build the server:

```bash
pnpm build
```

For development with auto-rebuild:

```bash
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`

```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](https://github.com/modelcontextprotocol/inspector), which is available as a package script:

```bash
pnpm inspector
```

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

## Community

- [MCP Server Telegram](https://t.me/+N0gv4O9SXio2YWU1)
- [MCP Server Discord](https://discord.gg/RsYPRrnyqg)

## About the author

- [idoubi](https://bento.me/idoubi)

