Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-chat-analysis-server

MCP.Pizza Chef: rebots-online

The MCP Chat Analysis Server is a powerful MCP server that enables semantic analysis of chat conversations by leveraging vector embeddings and knowledge graphs. It supports semantic search, concept extraction, and conversation pattern analytics, facilitating deep insights into chat data. The server integrates easily with MCP-compatible systems like Claude, supports multiple chat export formats, and provides tools to navigate message relationships and analyze conversation dynamics effectively.

Use This MCP server To

Perform semantic search across chat conversations Extract key concepts and topics from chat data Analyze conversation patterns and metrics Navigate relationships using knowledge graphs Import and analyze chats from various export formats Integrate chat analysis into MCP workflows with Claude

README

MCP Chat Analysis Server

A Model Context Protocol (MCP) server that enables semantic analysis of chat conversations through vector embeddings and knowledge graphs. This server provides tools for analyzing chat data, performing semantic search, extracting concepts, and analyzing conversation patterns.

Key Features

  • πŸ” Semantic Search: Find relevant messages and conversations using vector similarity
  • πŸ•ΈοΈ Knowledge Graph: Navigate relationships between messages, concepts, and topics
  • πŸ“Š Conversation Analytics: Analyze patterns, metrics, and conversation dynamics
  • πŸ”„ Flexible Import: Support for various chat export formats
  • πŸš€ MCP Integration: Easy integration with Claude and other MCP-compatible systems

Quick Start

# 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 Integration

Add to your 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"
      }
    }
  }
}

Available Tools

import_conversations

Import and analyze chat conversations

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

semantic_search

Search conversations by semantic similarity

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

analyze_metrics

Analyze conversation metrics

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

extract_concepts

Extract and analyze concepts

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

Architecture

See ARCHITECTURE.md for detailed diagrams and documentation of:

  • System components and interactions
  • Data flow and processing pipeline
  • Storage schema and vector operations
  • Tool integration mechanism

Prerequisites

  • Python 3.8+
  • Neo4j database for knowledge graph storage
  • Qdrant vector database for semantic search
  • sentence-transformers for embeddings

Installation

  1. Install the package:
pip install mcp-chat-analysis-server
  1. Set up databases:
# Using Docker (recommended)
docker compose up -d
  1. Configure the server:
cp .env.example .env
# Edit .env with your settings

Development

  1. Clone the repository:
git clone https://github.com/rebots-online/mcp-chat-analysis-server.git
cd mcp-chat-analysis-server
  1. Install development dependencies:
pip install -e ".[dev]"
  1. Run tests:
pytest tests/

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

See CONTRIBUTING.md for guidelines.

License

MIT License - See LICENSE file for details.

Related Projects

Support

mcp-chat-analysis-server FAQ

How do I install the MCP Chat Analysis Server?
Install it via pip using 'pip install mcp-chat-analysis-server', then configure with 'config.yml' and run the server.
What chat export formats does the server support?
The server supports various common chat export formats, allowing flexible import of chat data for analysis.
Can I integrate this server with other MCP-compatible systems?
Yes, it integrates easily with MCP-compatible systems such as Claude, enabling seamless workflow integration.
What types of analysis can I perform with this server?
You can perform semantic search, concept extraction, conversation pattern analytics, and explore knowledge graphs.
Does the server support real-time chat analysis?
The server is designed for analyzing imported chat data; real-time capabilities depend on integration and data flow setup.
How does semantic search work in this server?
It uses vector similarity on embeddings to find relevant messages and conversations based on semantic content.
Is the knowledge graph customizable?
The knowledge graph reflects relationships between messages, concepts, and topics extracted from your chat data.
What databases are supported for storing chat data?
Database configuration is flexible and set via 'config.yml'; supported databases depend on the underlying implementation.