MCP Servers
TheRaLabs/legion-mcp
A server that helps people access and query data in databases using the Legion Query Runner with Model Context Protocol (MCP) in Python.
Our verdict
We have not reviewed TheRaLabs/legion-mcp yet
No one at Enterprise DNA has checked this listing against its sources. The description comes from public listings gathered automatically. Any fact below shows where it came from and when it was last checked.
From the listing
About TheRaLabs/legion-mcp
A Python server that connects the Legion Query Runner to MCP clients, enabling natural language queries against databases. It translates requests into SQL and returns results through the Model Context Protocol.
Best for
Developers who want to query databases from MCP-enabled AI assistants without writing raw SQL.
Use cases
- Query databases via natural language from MCP-compatible assistants
- Integrate Legion Query Runner with AI coding tools for data exploration
- Automate database lookups in development workflows
Notes
92 stars on GitHub. Last updated 2025-05-11. Licensed GPL-3.0.
Pros
- Simplifies database access for non-SQL users through MCP
- Lightweight Python implementation with clear protocol boundaries
- Open source with 92 stars and active community potential
Cons
- Limited to Legion Query Runner supported databases
- Requires MCP client setup and Python environment
- Small user base may mean fewer examples and slower issue resolution
Key facts
What we have checked
Not checked yet. Dated facts such as prices, releases and repository activity appear here once we have confirmed them from a source.
How to use
How to set it up
As the listing publishes it. We have not run this install.
Install
npx @modelcontextprotocol/inspector uv run src/database_mcp/mcp_server.pyTools exposed
execute_queryexecute_query_jsonget_table_columnsget_table_typesget_query_historylist_databasesget_database_infofind_tabledescribe_tableget_table_samplesql_queryexplain_queryoptimize_queryselect_database
Example client config
{
"mcpServers": {
"database-mcp": {
"command": "uvx",
"args": [
"database-mcp"
],
"env": {
"DB_TYPE": "pg",
"DB_CONFIG": "{\"host\":\"localhost\",\"port\":5432,\"user\":\"user\",\"password\":\"pw\",\"dbname\":\"dbname\"}"
},
"disabled": true,
"autoApprove": []
}
}
}Install
Add TheRaLabs/legion-mcp to your client
No install recipe yet. We write one for Claude Code, Claude Desktop, Cursor, VS Code, Codex and ChatGPT when the server is in the official MCP registry with a package or remote address we can use.
Until then, follow the project's own README, or the setup the listing publishes under How to set it up.
Works with
What TheRaLabs/legion-mcp connects to
No confirmed connections yet. A product appears here when the server's registry name, repo, homepage or name ties it to that product, and a client appears when we have an install recipe for it.
Health and security
Is TheRaLabs/legion-mcp looked after, and what do its setup files show
Security check static checks
97 out of 100
- Low The documented install uses @modelcontextprotocol/inspector, whose published metadata points at github.com/modelcontextprotocol/inspector, not this repository. Check it is the right package before installing.
- Note The lab has not recorded this server's tool list yet, so tool permissions were not checked.
Tool permissions (2)
DB_CONFIG, environment variable it asks forDB_TYPE, environment variable it asks for
Alternatives
Alternatives to TheRaLabs/legion-mcp
| Record | Type | How we know | Checked |
|---|---|---|---|
| mindsdb/mindsdbThis is an alternative to it | MCP server | Named in the listing | Not dated |
Compare
Compare TheRaLabs/legion-mcp side by side
Sources
Where this comes from
No sources recorded yet. Each source we check is listed here with the date we checked it.
A source shows what was published when we checked it. It does not certify security, performance or a working installation. Read our method.
Changelog
What changed
No changes recorded yet. Releases, price changes and deprecations appear here, with their dates, once we track them for this record.
Open-source & AI alternatives
Swap-in tools that solve the same job. Weigh the trade-offs before you commit.
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.