ChatSum

by mcpservers

193 downloads
Not rated
GitHub

About

ChatSum is an MCP (Model Context Protocol) server that summarizes your chat messages. It integrates with a chat database and provides a tool to query and summarize past conversations. It is intended for users who want to extract insights or summaries from stored chat logs.

Details

Author
mcpservers
Downloads
193
Categories
Other

- Query chat messages with given parameters.
- Summarize chat messages based on the query prompt.
- Works with a local SQLite chat database.
- Easy integration with Claude Desktop via MCP.
- Supports development with auto-rebuild via pnpm watch.

To use ChatSum, you must first set up a chat database by following the instructions in the chatbot directory and start the chatbot to save your chat messages. Then configure the server by setting the CHAT_DB_PATH environment variable to point to the database file. Finally, add the server configuration to Claude Desktop’s claude_desktop_config.json file, specifying the Node.js command and the path to the built server script.

\# 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.

\\\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\, 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\
- \MCP Server Discord\

About the author



- \idoubi\

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.