MCP Server for Data Reconciliation between MySQL and Snowflake
Project description
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.
โจ 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 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file data_recon_mcp-0.2.0.tar.gz.
File metadata
- Download URL: data_recon_mcp-0.2.0.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
147a964ce8b666c89f31d48b9a19a1120338e25fe2720ed8520c027443e870cf
|
|
| MD5 |
f4691faec300749e995c69a777808e53
|
|
| BLAKE2b-256 |
db693a1c8af7db94d94aec3405add396d757a84535e76f57d3d5a43ec4bde946
|
File details
Details for the file data_recon_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: data_recon_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 39.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6f9d3c9fba2bbb5c5ce3a5c687bd08a3741cdc93030aa590e3f2815c4751a25
|
|
| MD5 |
9f0c9d8f5b8abc9daae551c4d6e0b3b1
|
|
| BLAKE2b-256 |
f09c86c83f4dc5fc256234cec6dcc9bdc52ceb4d79f69733fc3f96331f32b59b
|