Skip to main content
Glama
Data Recon MCP Server

Data Recon MCP Server

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-mcp

Configuration

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 8000

2. 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 connection

  • search_tables - Find tables by pattern

  • run_row_count_check - Compare row counts between source and target

  • run_aggregate_check - Compare SUM, AVG, MIN, MAX values

  • create_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 tools
add_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

    B3.4/5.0

    Scored across 23 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An 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 npm
      18
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      An 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.
      -
    • A
      license
      A
      quality
      D
      maintenance
      A 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.
      10
      44
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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