TheRaLabs/legion-mcp
Free通用数据库 MCP 服务器,支持 PG, Redshift, CockroachDB, MySQL, RDS MySQL, MS SQL Server, BigQuery, Oracle DB, SQLite。
About TheRaLabs/legion-mcp
Legion MCP is a unified multi-database server that integrates with the Model Context Protocol (MCP) to enable AI assistants to access and query databases using the Legion Query Runner. It supports a wide range of database systems including PostgreSQL, Redshift, CockroachDB, MySQL, RDS MySQL, Microsoft SQL Server, BigQuery, Oracle DB, and SQLite through a single consistent API. Key capabilities include zero-configuration automatic schema discovery, database-agnostic tools for exploring schemas and executing queries, secure credential management, and flexible deployment options (standalone MCP server or FastAPI integration). The server is designed to reduce development time for AI-powered database applications by providing a streamlined, extensible interface.
Key Features
Pros & Cons
- Supports 9+ database types simultaneously with consistent interface
- Automatic schema discovery reduces manual configuration effort
- Built specifically for AI assistant interactions via MCP protocol
- Secure credential handling keeps sensitive data out of application code
- Easy to deploy in modern AI development environments like LangChain and FastAPI
- Extensible architecture allows adding custom tools and prompts
- Requires familiarity with Model Context Protocol (MCP) for optimal use
- Depends on the Legion Query Runner library for database connectivity
- Limited to databases supported by the underlying Legion Query Runner connectors
- No built-in graphical user interface; primarily command-line and API-based