Data Recon MCP Server
Allows connecting to MySQL databases for data reconciliation, enabling row count checks, aggregate comparisons, schema validation, and comprehensive job-based reconciliation between source and target.
Allows connecting to Snowflake databases for data reconciliation, enabling row count checks, aggregate comparisons, schema validation, and comprehensive job-based reconciliation between source and target.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Data Recon MCP Server Compare row counts for the orders table between MySQL and Snowflake."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Data Recon MCP Server
An MCP (Model Context Protocol) server for data reconciliation between MySQL and Snowflake databases. Enables LLM agents like Claude, Antigravity, and Perplexity to validate data integrity during migrations, ETL processes, and ongoing monitoring.
๐ Quick Start
Installation
pip install data-recon-mcpConfiguration
Add to your MCP client configuration:
For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"data-recon": {
"command": "python3",
"args": ["-m", "mcp_server"]
}
}
}For Antigravity (~/.gemini/antigravity/mcp_config.json):
{
"data-recon": {
"command": "python3",
"args": ["-m", "mcp_server"]
}
}For Perplexity (MCP Settings):
{
"data-recon": {
"command": "python3",
"args": ["-m", "mcp_server"]
}
}That's it! Restart your LLM client and start using the tools.
Related MCP server: MySQL MCP Server
โจ Features
All-in-One - Single command starts everything (MCP server + FastAPI backend)
23 MCP Tools for comprehensive data reconciliation
MySQL and Snowflake support
Async job execution with progress tracking
SQLite metadata storage - datasource configs persist locally
๐ง Advanced Configuration
Using a Centralized Backend
For team environments where you want everyone to share the same datasources:
1. Start the centralized backend:
git clone https://github.com/hindocharaj1997/data-recon-mcp.git
cd data-recon-mcp
pip install -e .
uvicorn data_recon.main:app --host 0.0.0.0 --port 80002. Configure clients to use it:
{
"data-recon": {
"command": "python3",
"args": ["-m", "mcp_server"],
"env": {
"FASTAPI_URL": "http://your-server.company.com:8000"
}
}
}Pre-configured Data Sources
Register data sources via environment variables:
{
"data-recon": {
"command": "python3",
"args": ["-m", "mcp_server"],
"env": {
"DATASOURCE_MYSQL_PROD": "{\"type\":\"mysql\",\"host\":\"localhost\",\"port\":3306,\"username\":\"user\",\"password\":\"pass\",\"database\":\"mydb\"}"
}
}
}๐ MCP Tools
Category | Tools | Description |
Data Source Management | 7 | Add, list, test, remove datasources |
Discovery & Validation | 7 | Search tables, validate existence, preview data |
Individual Checks | 4 | Row count, aggregates, schema, sample rows |
Job Management | 5 | Create/monitor reconciliation jobs |
Key Tools
add_datasource- Register a MySQL or Snowflake connectionsearch_tables- Find tables by patternrun_row_count_check- Compare row counts between source and targetrun_aggregate_check- Compare SUM, AVG, MIN, MAX valuescreate_recon_job- Run comprehensive reconciliation with all checks
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ LLM Client โ
โ (Claude, Antigravity, etc.) โ
โโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Protocol (stdio)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Server โ
โ (python3 -m mcp_server) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Embedded FastAPI Backend (or external via FASTAPI_URL) โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ
โ โ SQLite โ โ MySQL โ โ Snowflake โ โ
โ โ (metadata) โ โ Connector โ โ Connector โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐งช Development
# Clone and setup
git clone https://github.com/hindocharaj1997/data-recon-mcp.git
cd data-recon-mcp
pip install -e ".[dev]"
# Run tests
pytest
# Start local MySQL for testing
docker compose -f tests/docker-compose.yml up -d๐ License
MIT
๐ค Contributing
Contributions welcome! Please open an issue first to discuss proposed changes.
Available Tools
23 toolsadd_datasourceA
Register a new database connection (MySQL or Snowflake). AFTER USING: Always call test_datasource to verify the connection works. MySQL config: {host, port, username, password, database}. Snowflake config: {account, username, password, warehouse, database, schema}.
Inputs: name (required), type (required), connection_config (required).
cancel_jobB
Cancel a running job. USE: When user wants to stop long-running reconciliation.
Inputs: job_id (required).
compare_table_structuresA
๐ RECOMMENDED FIRST STEP - Side-by-side comparison of source and target schemas BEFORE running data checks. Shows column differences and type mismatches that may cause false positives in data comparison.
Inputs: source_datasource (required), source_database (required), source_table (required), target_datasource (required), +4 more.
create_recon_jobA
Create comprehensive reconciliation job with multiple checks. Runs asynchronously - use get_job_status to monitor. PREREQUISITES: validate_table_exists, compare_table_structures.
Inputs: source (required), target (required), checks (required), partition_config.
get_databasesA
List all databases in a data source. USE: To discover available databases before listing tables.
Inputs: datasource_name (required).
get_job_resultsA
Get detailed results after job completes. USE: After get_job_status shows status=completed.
Inputs: job_id (required).
get_job_statusA
Get job progress: status, percent complete, current check. Poll every few seconds while running. Report to user: 'Job is 50% complete, running aggregate check...'
Inputs: job_id (required).
get_metadata_catalogA
Get FULL metadata catalog (all databases, schemas, tables). USE: When starting with a data source to understand what's available. WARNING: Can be slow for large databases - prefer search_tables for targeted queries.
Inputs: datasource_name (required).
get_sample_dataA
Preview first N rows of a table. USE: To VERIFY you found the correct table before running expensive checks. Show user what data looks like.
Inputs: datasource_name (required), database (required), table (required), schema, +1 more.
get_tablesA
List all tables in a database/schema. PREFER search_tables if user mentions a specific table name pattern.
Inputs: datasource_name (required), database (required), schema.
get_table_schemaB
Get column definitions (name, type, nullable, primary key). USE: To understand table structure, find numeric columns for aggregates, or find primary keys for sample checks.
Inputs: datasource_name (required), database (required), table (required), schema.
get_table_statsB
Get quick statistics: row count, column count, size. USE: For sanity check before reconciliation, to estimate how long checks might take (large tables = longer).
Inputs: datasource_name (required), database (required), table (required), schema.
list_datasourcesA
List all registered data sources. FIRST STEP: Always check what data sources are available before doing any work. If empty, guide user to add data sources with add_datasource.
Inputs: no named parameters.
list_jobsB
List recent reconciliation jobs. USE: To see job history or find previous results.
Inputs: limit, status_filter.
remove_datasourceA
Remove a registered data source. CAUTION: This deletes the configuration permanently.
Inputs: datasource_name (required).
run_aggregate_checkA
Compare column-level aggregates: SUM, AVG, MIN, MAX, COUNT_DISTINCT. PREREQUISITES: 1) validate_table_exists 2) validate_columns_exist. USE: After row counts match, to verify numeric data integrity.
Inputs: source (required), target (required), columns (required), aggregates, +1 more.
run_row_count_checkA
โ FAST FIRST CHECK - Compare row counts. Run this FIRST - it's fast and catches major issues. PREREQUISITE: Call validate_table_exists for both tables first. For large tables, use partition_config to compare date ranges.
Inputs: source (required), target (required), partition_config.
run_sample_checkA
๐ฌ DETAILED CHECK - Compare actual row values by primary key. USE: After row counts and aggregates pass, for detailed validation. Identifies specific mismatched rows. PREREQUISITE: validate_table_exists, know the primary key.
Inputs: source (required), target (required), primary_key (required), sample_size, +1 more.
run_schema_checkC
Compare table schemas (column names, data types). USE: To identify structural differences that might cause data issues.
Inputs: source (required), target (required).
search_tablesA
๐ CRITICAL - USE FIRST when user mentions a table name. Search for tables by name pattern. NEVER assume table names exist - always search first. Example: User says 'orders table' โ search pattern 'order' to find 'orders', 'order_items', etc. Then confirm with user which table they mean.
Inputs: datasource_name (required), pattern (required), database.
test_datasourceA
Test connection to a data source. USE: After adding a new data source, when user reports issues, or before starting reconciliation.
Inputs: datasource_name (required).
validate_columns_existB
โ ๏ธ REQUIRED FOR AGGREGATES - Verify columns exist before running aggregate checks. ALWAYS call this before run_aggregate_check to prevent errors from typos or missing columns.
Inputs: datasource_name (required), database (required), table (required), columns (required), +1 more.
validate_table_existsB
โ ๏ธ REQUIRED BEFORE CHECKS - Verify a table exists before running any reconciliation. ALWAYS call this for BOTH source AND target tables before run_row_count_check, run_aggregate_check, run_schema_check, or run_sample_check. Prevents wasted time and cryptic errors.
Inputs: datasource_name (required), database (required), table (required), schema.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 23 tools
Each tool has a distinct purpose: data source management, discovery, validation, various checks, and job control. No significant overlap; similar tools like compare_table_structures and run_schema_check are differentiated by usage context.
All tool names follow a consistent verb_noun pattern using lowercase and underscores, e.g., add_datasource, validate_table_exists, run_row_count_check. No naming inconsistencies or mixed conventions.
With 23 tools, the set is slightly on the higher side but each tool fulfills a clear role in the reconciliation workflow. The count is justified by the need for separate validation, discovery, and check functions.
The tool surface covers the core reconciliation lifecycle: source management, discovery, validation, structural and data checks, job creation, monitoring, and results retrieval. Minor gaps like updating datasource configuration exist but do not hinder the primary workflow.
Maintenance
Related MCP Connectors
Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Hosted MySQL MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that integrates with MySQL databases, enabling secure read and write operations through LLM-driven interfaces with support for transaction handling and performance monitoring.49 npm18MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server for MySQL databases that enables schema exploration, query execution, and resource access through a unified interface. It features a LangGraph-based agent that translates natural language into SQL queries with automatic error recovery and schema discovery.-
- AlicenseAqualityDmaintenanceA multi-database MCP server that enables LLMs to safely interact with MySQL, PostgreSQL, SQLite, and others through a unified tool interface, with permission modes and schema resources.1044MIT
- AlicenseNot gradedqualityDmaintenanceA production-ready MCP server for MySQL database integration with AI agents, enabling database exploration, CRUD operations, schema management, and performance monitoring through natural language.MIT