MCP Chat Analysis Server

Integrations

  • Stores and processes knowledge graphs of chat conversations, enabling relationship navigation between messages, concepts, and topics.

  • Supports importing and analyzing OpenAI chat exports through the 'openai_native' format option.

MCP聊天分析服务器

模型上下文协议 (MCP) 服务器,可通过向量嵌入和知识图谱对聊天对话进行语义分析。该服务器提供用于分析聊天数据、执行语义搜索、提取概念和分析对话模式的工具。

主要特点

  • 🔍语义搜索:使用向量相似性查找相关消息和对话
  • 🕸️知识图谱:导航消息、概念和主题之间的关系
  • 📊对话分析:分析模式、指标和对话动态
  • 🔄灵活导入:支持各种聊天导出格式
  • 🚀 MCP 集成:轻松与 Claude 和其他 MCP 兼容系统集成

快速入门

# Install the package pip install mcp-chat-analysis-server # Set up configuration cp config.example.yml config.yml # Edit config.yml with your database settings # Run the server python -m mcp_chat_analysis.server

MCP 集成

添加到您的claude_desktop_config.json

{ "mcpServers": { "chat-analysis": { "command": "python", "args": ["-m", "mcp_chat_analysis.server"], "env": { "QDRANT_URL": "http://localhost:6333", "NEO4J_URL": "bolt://localhost:7687", "NEO4J_USER": "neo4j", "NEO4J_PASSWORD": "your-password" } } } }

可用工具

导入对话

导入并分析聊天对话

{ "source_path": "/path/to/export.zip", "format": "openai_native" # or html, markdown, json }

语义搜索

按语义相似性搜索对话

{ "query": "machine learning applications", "limit": 10, "min_score": 0.7 }

分析指标

分析对话指标

{ "conversation_id": "conv-123", "metrics": [ "message_frequency", "response_times", "topic_diversity" ] }

提取概念

提取和分析概念

{ "conversation_id": "conv-123", "min_relevance": 0.5, "max_concepts": 10 }

建筑学

有关以下详细图表和文档,请参阅ARCHITECTURE.md

  • 系统组件和交互
  • 数据流和处理管道
  • 存储模式和向量操作
  • 工具集成机制

先决条件

  • Python 3.8+
  • Neo4j 数据库用于知识图谱存储
  • 用于语义搜索的 Qdrant 矢量数据库
  • 用于嵌入的句子转换器

安装

  1. 安装软件包:
pip install mcp-chat-analysis-server
  1. 设置数据库:
# Using Docker (recommended) docker compose up -d
  1. 配置服务器:
cp .env.example .env # Edit .env with your settings

发展

  1. 克隆存储库:
git clone https://github.com/rebots-online/mcp-chat-analysis-server.git cd mcp-chat-analysis-server
  1. 安装开发依赖项:
pip install -e ".[dev]"
  1. 运行测试:
pytest tests/

贡献

  1. 分叉存储库
  2. 创建功能分支
  3. 提交拉取请求

请参阅CONTRIBUTING.md了解指南。

执照

MIT 许可证 - 有关详细信息,请参阅LICENSE文件。

相关项目

支持

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

通过向量嵌入和知识图促进聊天对话的语义分析,提供语义搜索、概念提取和对话模式分析工具。

  1. 主要特点
    1. 快速入门
      1. MCP 集成
        1. 可用工具
          1. 导入对话
          2. 语义搜索
          3. 分析指标
          4. 提取概念
        2. 建筑学
          1. 先决条件
            1. 安装
              1. 发展
                1. 贡献
                  1. 执照
                    1. 相关项目
                      1. 支持

                        Related MCP Servers

                        • A
                          security
                          A
                          license
                          A
                          quality
                          An improved implementation of persistent memory using a local knowledge graph with a customizable --memory-path. This lets Claude remember information about the user across chats.
                          Last updated -
                          9
                          32
                          144
                          JavaScript
                          MIT License
                          • Apple
                        • -
                          security
                          A
                          license
                          -
                          quality
                          A basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats.
                          Last updated -
                          9
                          21,755
                          43,205
                          JavaScript
                          MIT License
                          • Apple
                          • Linux
                        • A
                          security
                          A
                          license
                          A
                          quality
                          Enhances user interaction through a persistent memory system that remembers information across chats and learns from past errors by utilizing a local knowledge graph and lesson management.
                          Last updated -
                          13
                          21,755
                          34
                          JavaScript
                          MIT License
                        • -
                          security
                          A
                          license
                          -
                          quality
                          Connect your MCP-compatible clients to Onyx AI knowledge bases for enhanced semantic search and chat capabilities. Retrieve relevant context from your documents seamlessly, enabling powerful interactions and comprehensive answers. Streamline knowledge management and improve access to information acr
                          Last updated -
                          TypeScript
                          MIT License
                          • Apple

                        View all related MCP servers

                        ID: 3p9d8eod5v