The MCP Variance Log server is an agentic tool for monitoring and logging statistical variations in conversations.
Monitor and log conversation variations: Automatically logs unusual interactions (MEDIUM/LOW probability events)
Query logs: Retrieve conversation variations with filtering options by date and limit
Execute SQL queries: Perform SELECT, INSERT, UPDATE, DELETE operations
Database management: Create tables, list tables, and describe table structures
Analyze patterns: Track conversation patterns for unusual events and edge cases
Generate reports: Create detailed reports of logged interactions
Append insights: Add business insights to memos
Stores conversation variations in a SQLite database with robust query capabilities, allowing users to read logs, execute SQL queries, create tables, and analyze stored interaction patterns.
MCP Variance Log
Agentic tool that looks for statistical variations in conversation structure and logs unusual events to a SQLite database. Built using the Model Context Protocol (MCP), this system is designed to be used with Claude Desktop or other MCP-compatible clients.
Requirements
Python ≥3.10
MCP ≥1.2.0
SQLite3
UV (Python package installer and environment manager)
Related MCP server: Amplitude MCP Server
Quick Start
Add to Claude Desktop config (%APPDATA%\Claude\claude_desktop_config.json on Windows):
Add to Claude Desktop preferences:
Usage
Automatic Logging Examples
Dataframe view
Text 2 SQL
Detailed Installation
Ensure Python 3.10+ and UV are installed.
Install UV using one of these methods:
Clone and install:
Configure Claude Desktop:
Add to claude_desktop_config.json:
Config locations:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonMacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Tools
Monitoring
log-query: Tracks conversation patternsHIGH: Common interactions (not logged)
MEDIUM: Unusual patterns (logged)
LOW: Critical events (priority logged)
Query
read-logs: View logs with filteringread_query: Execute SELECT querieswrite_query: Execute INSERT/UPDATE/DELETEcreate_table: Create tableslist_tables: Show all tablesdescribe_table: Show table structure
Located at data/varlog.db relative to installation.
Schema
Troubleshooting
Database Access
Error: "Failed to connect to database"
Check file permissions
Verify path in config
Ensure
/datadirectory exists
Installation Issues
Error: "No module named 'mcp'"
Run:
uv pip install mcp>=1.2.0
Error: "UV command not found"
Install UV:
curl -LsSf https://astral.sh/uv/install.sh | sh
Configuration
Error: "Failed to start MCP server"
Verify config.json syntax
Check path separators (use \ on Windows)
Ensure UV is in your system PATH
Contributing
Fork the repository
Create feature branch
Submit pull request
License
MIT
Support
Issues: GitHub Issues