This repository contains the MCP Data Agent, a Python-based service for exposing database operations and metadata as tools and resources in an MCP server.
- Exposes database read/query operations as MCP tools
- Provides a resource endpoint for fetching database catalog/schema information
- Asynchronous server using FastMCP and asyncio
- Environment-based configuration for database and catalog paths
mcp-data-agent/
├── src/
│ └── mcp-data-agent/
│ ├── server.py
│ ├── resources.py
│ ├── tools.py
│ └── prompts.py
├── .env
├── .gitignore
├── requirements.txt
└── README.md
- Python 3.11+
- UV for dependency management
-
Clone the repository:
git clone <repo-url> cd mcp-data-agent
-
Create and activate a virtual environment:
uv venv
-
Install dependencies using UV:
uv pip install -r pyproject.toml
uv run src/mcp-data-agent/server.py
- The agent exposes tools and resources for use by MCP agents.
- Configure your database and catalog paths in the
.env
file.
- Source code is in
src/mcp-data-agent/
. - Add new tools or resources by decorating functions with
@mcp.tool
or@mcp.resource
.
MIT License
Note: This project is intended for use within the MCP ecosystem and may require MCP-specific infrastructure or