MCP Database Agent
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., "@MCP Database Agentexplain the last query run by the orders service"
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.
MCP Database Agent
Overview
A tool-using agent lab built around MCP-style database tools. GET /tools lists three read-only tools, explain, sample_rows and list_indexes, and POST /call runs one of them. Calls that would apply changes or delete data are refused. A /v1 ops API adds workspaces, tenant isolation, job approval and audit records.
Built with: Python, pytest, GitHub Actions
Scope: Local laptop proof with read-only tools; it calls no hosted model and applies no production changes.
Related MCP server: @cano721/mysql-mcp-server
Project guide
Project architecture · Interview questions and answers
Use the architecture document for the component diagram, implementation boundaries, and verification entry points. The interview guide includes source-backed answers and project walkthroughs.
Implementation map
Component | Responsibility |
HTTP handlers: | |
Functions: | |
Implementation or supporting configuration | |
Implementation or supporting configuration | |
Executable checks and regression examples | |
GitHub Actions job definitions | |
Project explanations or operating notes |
Local setup and verification
From the repository root (the commands follow the checked-in manifests):
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python -m pytest -qTo serve the FastAPI application locally, install the server separately if it is not already available:
python -m pip install uvicorn
PYTHONPATH=src python -m uvicorn mcpdb.main:app --reloadLevel: 10 — MCP & Tool-Using Agents
Skills: Python, read-only DB tools
Tools: explain, sample_rows, list_indexes. Apply/delete refused.
pip install -r requirements.txt
pytest -qThis is a local laptop proof. It does not call a hosted model and it does not apply production changes.
Ops plane
Workspaces, tenant isolation, job approval, and audit live under /v1. Production apply is refused. See docs/ARCHITECTURE.md.
Documentation checks
Project architecture, interview guides, and local source links are checked automatically on pushes and pull requests. Run the same check locally:
python3 .github/scripts/validate_project_docs.pyThis server cannot be deployed
Maintenance
Related MCP Connectors
Read-only access to a Lumin project's logs, metrics, uptime checks, alerts and infrastructure.
Read-only access to your Infrly services, deploys, logs, metrics and billing.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides secure, read-only access to PostgreSQL databases for schema inspection and data querying. It enables users to list tables, describe structures, and execute SELECT statements while strictly blocking destructive operations.8 npm1MIT
- AlicenseAqualityDmaintenanceEnables read-only MySQL database access, allowing listing databases, tables, describing schemas, and executing SELECT/SHOW/DESCRIBE/EXPLAIN queries.712 npm4MIT
- AlicenseAqualityCmaintenanceEnables read-only PostgreSQL interaction through safe query execution, query planning, table and column inspection, and privilege checks, with multi-layer defenses against write operations and transaction-control exploits.5MIT
- AlicenseNot gradedqualityBmaintenanceEnables read-only MySQL/MariaDB schema exploration and safe query cost estimation across multiple instances, with server-enforced write refusal and execution limits.Apache 2.0