mcp-server-chatsum

MCP.Pizza Chef: chatmcp

This project has two halves: a companion bot that signs into WeChat and saves your incoming messages to a file on your own computer, and a small server that lets Claude Desktop search and summarize those saved messages. It covers WeChat and nothing else, and the authors warn that the logging bot can get your WeChat account blocked. The code has not been touched since December 2024, so treat it as a weekend experiment rather than a dependable tool.

Unmaintained · no code changes since December 2024
Communication

Use This MCP server To

Summarize what my group chat discussed while I was asleep Catch up on a busy chat without scrolling through it Find out who said what about a topic last week Pull the decisions and follow-ups out of a long thread Search my saved chat history by date or person

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

Is this still maintained?
No. The last code change was December 2024, so expect to fix breakages yourself if you try it today.
Which chat apps does it work with?
Only WeChat. There is no support for Slack, WhatsApp, Discord, iMessage or anything else.
Can I use this to catch up on a group chat I missed?
Yes, but only for messages that arrived after you set up the logging bot. It cannot reach back into your older history.
Do I need a paid key?
No. You do have to sign into WeChat by scanning a QR code so the bot can record messages as they come in.
How hard is the setup?
Hard. You install sqlite, create the message table by hand, run a separate bot program, build the server, then edit a config file.
Which apps can use it?
The instructions cover Claude Desktop. Other apps that run MCP servers would likely work, but nothing else is documented.
Is there any risk to my WeChat account?
The authors say so plainly: the logging bot signs in the way an automated tool does, and WeChat may block the account for it.