Database MCP Server (by Legion AI)
Start Generation Here
End Generation Here
Features
- Database access via Legion Query Runner
- Model Context Protocol (MCP) support for AI assistants
- Expose database operations as MCP resources, tools, and prompts
- Multiple deployment options (standalone MCP server, FastAPI integration)
- Query execution and result handling
- Flexible configuration via environment variables, command-line arguments, or MCP settings JSON
Supported Databases
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
What is MCP?
- Expose database operations as tools for AI assistants
- Provide database schemas and metadata as resources
- Generate useful prompts for database operations
- Enable stateful interactions with databases
Installation & Configuration
Required Parameters
- DB_TYPE: The database type code (see table above)
- DB_CONFIG: A JSON configuration string for database connection
Installation Methods
Option 1: Using UV (Recommended)
Option 2: Using PIP
Running the Server
Development Mode
Production Mode
Configuration Methods
Environment Variables
Command Line Arguments
Exposed MCP Capabilities
Resources
[object Object] | [object Object] |
[object Object] | [object Object] |
Tools
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
Prompts
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
Development
Testing
Publishing
License
Database MCP Server (by Legion AI)
Start Generation Here
End Generation Here
Features
- Database access via Legion Query Runner
- Model Context Protocol (MCP) support for AI assistants
- Expose database operations as MCP resources, tools, and prompts
- Multiple deployment options (standalone MCP server, FastAPI integration)
- Query execution and result handling
- Flexible configuration via environment variables, command-line arguments, or MCP settings JSON
Supported Databases
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
What is MCP?
- Expose database operations as tools for AI assistants
- Provide database schemas and metadata as resources
- Generate useful prompts for database operations
- Enable stateful interactions with databases
Installation & Configuration
Required Parameters
- DB_TYPE: The database type code (see table above)
- DB_CONFIG: A JSON configuration string for database connection
Installation Methods
Option 1: Using UV (Recommended)
Option 2: Using PIP
Running the Server
Development Mode
Production Mode
Configuration Methods
Environment Variables
Command Line Arguments
Exposed MCP Capabilities
Resources
[object Object] | [object Object] |
[object Object] | [object Object] |
Tools
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
Prompts
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |