AI-Orchestrator-MCP
Provides tools for interacting with Google BigQuery, including listing datasets and tables, reading table schemas, and executing SQL queries.
Provides tools for interacting with MongoDB databases, enabling listing databases and collections, counting and sampling documents, and finding documents.
Provides tools for interacting with MySQL databases, including executing SQL queries, listing databases and tables, describing table schemas, indexing, and database statistics.
Click on "Install 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., "@AI-Orchestrator-MCPDescribe the MySQL table users."
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.
AI-Orchestrator-MCP
An AI Database Assistant built with OpenAI Agents SDK and the Model Context Protocol (MCP).
This project demonstrates how to build an AI Agent capable of autonomously interacting with heterogeneous databases through modular MCP tools.
Currently supported databases:
MySQL
MongoDB
Google BigQuery
Features
OpenAI Agents SDK
FastMCP Server
MCP Client
AI Database Assistant
Automatic Tool Discovery
SQLiteSession conversation memory
OpenAI Tracing
MySQL integration
MongoDB integration
Google BigQuery integration
Modular architecture
Easily extensible
Architecture
High-level overview
User
│
▼
Database Assistant
(OpenAI Agents SDK)
│
▼
SQLiteSession
│
▼
MCP Client
│
▼
MCP Server
│
┌─────────────────┼─────────────────┐
▼ ▼ ▼
MySQL Tools MongoDB Tools BigQuery Tools
│ │ │
▼ ▼ ▼
MySQL MongoDB BigQueryArchitecture Diagram
Related MCP server: Database MCP Server
Technologies
Python 3.13
OpenAI Agents SDK
FastMCP
MCP (Model Context Protocol)
PyMySQL
PyMongo
Google Cloud BigQuery
python-dotenv
SQLiteSession
Project Structure
AI-Orchestrator-MCP/
│
├── config/
│ ├── config.py
│ └── .env.example
│
├── db/
│ ├── mysql.py
│ ├── mongodb.py
│ └── bigquery.py
│
├── tools/
│ ├── mysql_tools.py
│ ├── mongodb_tools.py
│ └── bigquery_tools.py
│
├── tests/
├── models/
├── logs/
│
├── mcp_client.py
├── mcp_server.py
├── requirements.txt
└── README.mdSupported Databases
MySQL
Execute SQL queries
List databases
List tables
Search tables
Describe tables
List columns
Show CREATE TABLE
Count rows
List views
Show indexes
Show foreign keys
Database statistics
Explain query
MongoDB
List databases
List collections
Count documents
Find documents
Sample documents
Google BigQuery
List datasets
List tables
Read table schema
Execute SQL queries
How It Works
The Agent never accesses databases directly.
Workflow:
The user submits a request.
The Agent reasons about the request.
The Agent selects the appropriate MCP tool.
The MCP Client invokes the MCP Server.
The selected tool queries the database.
Results are returned to the Agent.
The Agent generates the final response.
Example Conversation
User
How many collections are available in the MongoDB database "dating"?Assistant
The database contains 24 collections including:
- users
- chats
- events
- email_logs
...User
Describe the MySQL table users.Assistant
The table contains the following columns:
- id
- username
- email
- created_date
...User
List the available BigQuery datasets.Assistant
Available datasets:
- analytics
- marketing
- reporting
...Installation
Clone the repository:
git clone https://github.com/yourusername/AI-Orchestrator-MCP.gitCreate a virtual environment:
python -m venv .venvActivate it:
Windows
.venv\Scripts\activateLinux / macOS
source .venv/bin/activateInstall dependencies:
pip install -r requirements.txtConfiguration
Create a .env file starting from .env.example.
Example:
DB_HOST=
DB_PORT=3306
DB_NAME=
DB_USER=
DB_PASSWORD=
MONGO_URI_ATLAS=
MONGO_URI_LOCAL=
BIGQUERY_CREDENTIALS=C:\path\credentials.jsonRunning the Project
Run the application:
python mcp_client.pyThe client automatically starts the MCP Server and initializes the Database Assistant.
To exit:
exitor
quitAdding a New Database
Add credentials to
.env.Create a new manager in
db/.Implement the database methods.
Create MCP tools in
tools/.Register the tools in
mcp_server.py.Update the Agent instructions if needed.
Test the manager.
Test the tools.
Test the Agent.
Design Principles
Modular architecture
Separation of concerns
Independent tools
Reusable components
Extensible design
Clean code
Roadmap
PostgreSQL support
Redis integration
Snowflake integration
Vector databases
Automatic schema exploration
Query planning
Multi-Agent workflows
RAG integration
License
MIT License
About
This project was created as a personal AI Engineering project to explore:
OpenAI Agents SDK
Model Context Protocol (MCP)
AI Database Assistants
Tool Calling
Multi-database orchestration
Agentic AI
The architecture has been designed to be modular, extensible and easily adaptable to additional databases and external services.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceEnables LLMs and agents to interact with relational databases (SQL Server, MySQL, PostgreSQL) through MCP tools. Supports executing queries, inserting records, listing tables, and exposing database schemas with secure credential management.Last updated
- Alicense-qualityDmaintenanceProvides universal database operations for AI assistants through MCP, supporting 40+ databases including PostgreSQL, MySQL, MongoDB, Redis, and SQLite with built-in introspection tools for schema exploration.Last updated34MIT
- Flicense-qualityCmaintenanceEnables AI agents to query MongoDB databases and project management REST APIs through a universal MCP interface, providing read-time access to workspace data.Last updated
- Alicense-qualityDmaintenanceEnables natural language interaction with MySQL databases through MCP, supporting SQL execution, schema exploration, and database management via tools, resources, and prompts.Last updated5MIT
Related MCP Connectors
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
GibsonAI MCP server: manage your databases with natural language
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aletafuro/AI-Orchestrator-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
