CM

chatmcp/mcp-server-chatsum

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1028 stars 101 forks 质量 55 趋势 0

查询并总结你的聊天信息。

概览

这个MCP服务器用于总结你的聊天消息。 进入聊天机器人目录,按照README设置聊天数据库。启动聊天机器人保存聊天消息。 - query_chat_messages - 查询聊天消息 - 查询给定参数聊天消息 - 根据查询提示汇总聊天消息 在根目录创建 .env 文件,并设置你的聊天数据库路径。 要配合Claude Desktop使用,添加服务器配置: 在 macOS 上:~/library/Application support/Claude/claude_desktop_config.json 在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json 由于MCP服务器通过stdio通信,调试可能具有挑战性。我们建议使用MCP Inspector,该工具作为包脚本提供: 检查器会提供一个访问浏览器调试工具的网址。

概述(AI 翻译)

这个MCP服务器用于总结你的聊天消息。

中文说明

开始之前

移动到聊天机器人目录,按照README设置聊天数据库。

启动聊天机器人来保存你的聊天消息。

特色

资源

工具

  • query_chat_messages - 查询聊天消息
  • 查询带有给定参数的聊天消息
  • 根据查询提示总结聊天消息

提示

发展

  1. 设置环境变量:

在根目录创建 .env 文件,设置你的聊天数据库路径。

  1. 安装依赖:

搭建服务器:

关于自动重建的开发:

安装

要配合Claude Desktop使用,添加服务器配置:

在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json Windows版:%APPDATA%/Claude/claude_desktop_config.json

调试

由于MCP服务器通过stdio通信,调试可能具有挑战性。我们建议使用MCP Inspector,该工具作为包脚本提供:

检查器会提供一个访问浏览器调试工具的网址。

社区

  • MCP服务器电报
  • MCP服务器Discord

关于作者

  • 伊豆比

本页由 AI 翻译,技术细节请以原文为准。

README

mcp-server-chatsum

This MCP Server is used to summarize your chat messages.

中文说明

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

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "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" } } } }