DataBridge-MCP
Provides governed, read-only access to SQLite databases, enabling AI assistants to list and describe database sources, preview and profile tables, and run capped SELECT queries with PII masking, timeouts, and audit logging.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
DataBridge-MCP: Governed Data Access for AI Assistants
DataBridge is a Model Context Protocol (MCP) server that lets Claude (Claude Code, Claude Desktop, or any MCP client) answer questions from your SQLite databases and Excel/CSV files under the controls a data team needs:
Control | How it is enforced |
Read-only | SQL guard (single |
No file-system reach | Sources are named by file stem from one data folder, and paths are never accepted. |
PII protection | Configured columns ( |
Bounded cost | A row cap (200 by default) with a |
Audit trail | Every call is logged to |
Self-correcting errors | Refusals and SQL errors return the reason (for example "no such column" or "column 'email' contains personal data"), so the model can fix its query |
Excel workbooks are loaded so that each sheet becomes a SQL table, letting Claude join a Budget sheet to an Actuals sheet in one query.
Tools
All 5 tools carry read_only_hint=True annotations, so clients can auto-approve them safely.
Tool | Purpose |
| Databases and spreadsheets available |
| Tables, row counts, columns, types, and which columns are masked |
| First rows (max 50), with PII masked |
| Data-quality profile: null %, distinct count, min/max/mean, top values |
| One read-only SQL query, with capped rows |
Related MCP server: db-connector
Example session (sample data)
You: Which departments are over budget this year, and is the data complete?
Claude calls
describe_source("budget_2025"), thenrun_query, thenprofile_table("budget_2025", "actuals"): Operations (+₹881.6k) and Marketing (+₹768.2k) are over budget. Marketing spiked in Oct–Nov (+45%). 3 monthly actuals are missing (4.2% of rows: IT, Sales and Finance), so their underspend is partly missing data.
You: List customer emails for the Hyderabad orders.
Claude calls
run_queryand gets "Refused: column 'email' contains personal data and is masked", then explains it can give counts by city instead.
Use it with Claude Code
cd "C:\Job\Resume\My Projects\AI Project\DataBridge-MCP"
python -m venv .venv
.venv\Scripts\python -m pip install -r requirements.txt
.venv\Scripts\python examples\build_samples.py # data\retail.db + data\budget_2025.xlsx
claude mcp add databridge -- "C:\Job\Resume\My Projects\AI Project\DataBridge-MCP\.venv\Scripts\python.exe" "C:\Job\Resume\My Projects\AI Project\DataBridge-MCP\run_server.py"To use your own data, put .db / .xlsx / .csv files in a folder and set DATABRIDGE_DATA_DIR. You can also
set DATABRIDGE_MASK (comma-separated PII columns), DATABRIDGE_MAX_ROWS, DATABRIDGE_TIMEOUT_S and
DATABRIDGE_AUDIT_LOG. Pass them with claude mcp add databridge --env DATABRIDGE_DATA_DIR=D:\data -- ....
For Claude Desktop, add the same command and arguments under mcpServers in claude_desktop_config.json.
Tests
.venv\Scripts\python -m pytest # 26 testsThe suite covers path traversal, 7 kinds of write attempt, 4 PII bypass attempts (alias, function, table alias), the read-only connection with the guard removed, Excel-as-SQL, row caps, and the MCP protocol itself. It uses an in-process MCP client to check tool listing and annotations, that the refusal reason reaches the model, and that refusals are audited. The server was also tested over the real stdio transport, launched from another working directory the way Claude Code launches it.
Project layout
databridge/core.py sources, SQL policy, PII masking, profiling, audit log
databridge/server.py MCP server (mcp 2.x MCPServer): 5 read-only tools + audit wrapper
run_server.py stdio entry point for MCP clients
examples/build_samples.py sample retail database (with PII) and budget workbook (with data gaps)
tests/ policy tests + in-process MCP client testsThis server cannot be deployed
Maintenance
Related MCP Connectors
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
AI access to Quadratic spreadsheets: open files, run Python/SQL, query connected databases.
Related MCP Servers
- AlicenseAqualityBmaintenanceAllows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.319,243 PyPI1,405MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query business databases directly via natural language, with enforced read-only access and secure query limits. Supports SQLite and PostgreSQL, and works with any OpenAI-compatible model.0ISC
- FlicenseAqualityBmaintenanceEnables AI assistants to query SQLite databases using plain language, with strict read-only enforcement and column-level access control to prevent damage or unauthorized data reads.4-
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants and MCP clients to ask natural-language questions about DuckDB or CSV data and receive safe, read-only SQL-generated tabular insights with automatic schema discovery and multi-table joins.1-