OpenReplay Session Analysis MCP Server
Enables AI assistants to analyze OpenReplay session recordings for user behavior patterns, problem detection, and actionable insights through session search, journey analysis, and AI-powered summaries.
README
OpenReplay Session Analysis MCP Server
A Model Context Protocol (MCP) server for analyzing OpenReplay session recordings and user behavior patterns. This server enables AI assistants to analyze user sessions, detect problems, and provide actionable insights from OpenReplay data.
š„ Features
- š Session Search & Filtering - Find sessions by date, user, errors, duration
- š User Journey Analysis - Track page flows and navigation patterns
- š Problem Detection - Identify rage clicks, form abandonment, errors
- š¤ AI-Powered Insights - Generate intelligent session summaries
- š„ User Behavior Analysis - Analyze patterns across multiple sessions
- š Similar Session Finding - Discover sessions with comparable issues
š Quick Start
-
Clone and setup:
git clone https://github.com/rsp2k/openreplay-mcp-server.git cd openreplay-mcp-server python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt -
Configure OpenReplay credentials:
cp .env.example .env # Edit .env with your OpenReplay API credentials -
Run the server:
python run_server.py
āļø Configuration
Set these environment variables in your .env file:
OPENREPLAY_API_URL=https://api.openreplay.com
OPENREPLAY_API_KEY=your_api_key_here
OPENREPLAY_PROJECT_ID=your_project_id_here
To get your OpenReplay API credentials:
- Go to your OpenReplay dashboard
- Navigate to Settings ā API Keys
- Generate a new API key
- Copy your Project ID from the URL or project settings
š ļø Available Tools
Session Management
search_sessions- Search sessions with advanced filtersget_session_details- Get detailed session informationget_user_session_history- View all sessions for a specific user
Analysis Tools
analyze_user_journey- Map user navigation patterns and page flowsdetect_problem_patterns- Find rage clicks, form issues, and errorsgenerate_session_summary- AI-powered session insights and recommendationsfind_similar_sessions- Discover related problematic sessions
š Usage with Claude Desktop
Add to your Claude Desktop MCP configuration (claude_desktop_config.json):
{
"mcpServers": {
"openreplay-analysis": {
"command": "python",
"args": ["/path/to/openreplay-mcp-server/run_server.py"],
"env": {
"OPENREPLAY_API_KEY": "your_api_key_here",
"OPENREPLAY_PROJECT_ID": "your_project_id_here"
}
}
}
}
š¬ Example Queries
Once connected to Claude Desktop or another MCP client, you can ask:
- "Find sessions with errors from the last week"
- "Analyze user journey for session ABC123"
- "Generate a summary of problematic sessions today"
- "Show me all sessions for user john@example.com"
- "Find sessions similar to XYZ456 that had form abandonment"
- "Debug session DEF789 and tell me what went wrong"
š³ Docker Usage
For containerized deployment:
# Set environment variables in .env file
docker-compose up
Or build and run manually:
docker build -t openreplay-mcp .
docker run -e OPENREPLAY_API_KEY=your_key -e OPENREPLAY_PROJECT_ID=your_project openreplay-mcp
š§ Development
The server is built with:
- FastMCP - Official Python MCP SDK for server implementation
- httpx - Async HTTP client for OpenReplay API
- asyncio - Async/await support
Project Structure
openreplay-mcp-server/
āāā openreplay_session_analyzer.py # OpenReplay client and analysis logic
āāā run_server.py # FastMCP server with tools
āāā mcp.py # Django MCP configuration (optional)
āāā settings.py # Django settings (optional)
āāā requirements.txt # Python dependencies
āāā .env.example # Environment variables template
āāā Dockerfile # Container configuration
āāā docker-compose.yml # Docker Compose setup
āāā README.md # This file
Adding New Analysis Features
- Add new methods to the
SessionAnalyzerclass inopenreplay_session_analyzer.py - Create corresponding
@mcp.tool()decorated functions inrun_server.py - Test with your OpenReplay data
š Session Analysis Capabilities
Problem Detection
- Rage Clicks: Multiple rapid clicks indicating frustration
- Form Abandonment: Users starting but not completing forms
- Dead Clicks: Clicks on non-interactive elements
- Error Tracking: JavaScript errors and exceptions
Journey Analysis
- Page Flow Mapping: Track user navigation through your site
- Duration Analysis: Understand time spent on each page
- Bounce Rate: Identify single-page sessions
- Action Breakdown: Analyze user interactions (clicks, scrolls, inputs)
AI Insights
- Automated Summaries: Natural language session descriptions
- Problem Identification: Highlight potential UX issues
- Performance Analysis: Identify slow-loading content
- Behavioral Patterns: Recognize user intent and goals
š Integration Examples
Debugging Workflow
# Search for recent error sessions
sessions = await search_sessions(has_errors=True, start_date="2024-06-01")
# Analyze specific problematic session
summary = await generate_session_summary(session_id="abc123")
problems = await detect_problem_patterns(session_id="abc123")
# Find similar issues
similar = await find_similar_sessions(reference_session_id="abc123", criteria="errors")
UX Research Workflow
# Analyze user behavior over time
user_history = await get_user_session_history(user_id="user123")
# Study navigation patterns
for session in user_sessions:
journey = await analyze_user_journey(session_id=session.id)
# Analyze patterns...
š API Requirements
This server requires:
- OpenReplay account with API access
- Valid API key and project ID
- Network access to OpenReplay API endpoints
- Python 3.8+ environment
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Acknowledgments
- OpenReplay for providing the session replay platform
- Model Context Protocol for the integration framework
- FastMCP for the Python MCP SDK
š Support
If you encounter any issues or have questions:
- Check the Issues page
- Create a new issue with detailed information
- Join the discussion in existing issues
Built with ā¤ļø for better user experience analysis
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.