Legion Database
Enables AI applications to access and query databases using the Legion Query Runner with Model Context Protocol (MCP) integration.
About
Legion Database provides a server that connects databases to AI assistants through the Model Context Protocol (MCP). By leveraging the Legion Query Runner, it exposes database operations as MCP resources, tools, and prompts. This allows AI agents to interact with databases to execute queries, retrieve schemas, and optimize performance. It supports multiple database types and deployment options, including standalone MCP server and FastAPI integration, making it a flexible solution for database-driven AI applications.
Key Features
- Model Context Protocol (MCP) support for AI assistants
- Offers flexible configuration via environment variables, command-line arguments, or MCP settings JSON
- Supports multiple database types (PostgreSQL, MySQL, SQL Server, etc.)
- 6 GitHub stars
- Exposes database operations as MCP resources, tools, and prompts
- Database access via Legion Query Runner
Use Cases
- Provide database schemas and metadata to AI models
- Automate database interactions within AI applications
- Enable AI assistants to execute SQL queries