Enterprise DNAEnterprise DNA

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

Not reviewed yet

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.

How we review records

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.py

Tools exposed

  • execute_query
  • execute_query_json
  • get_table_columns
  • get_table_types
  • get_query_history
  • list_databases
  • get_database_info
  • find_table
  • describe_table
  • get_table_sample
  • sql_query
  • explain_query
  • optimize_query
  • select_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

Not verified yet

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

Reads what is published about the server: package advisories, licence, secrets in the documented setup and tool permissions. Nothing is installed or run, so this is not a security assessment. Checked by edna-static-v1 PyPI:database-mcp@0.1.4. What it checks

Licence: GPL-3.0

  • 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 for
  • DB_TYPE, environment variable it asks for

Alternatives

Alternatives to TheRaLabs/legion-mcp

RecordTypeHow we knowChecked
mindsdb/mindsdbThis is an alternative to itMCP serverNamed in the listingNot 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.

Pairs with

Other entries in the index that connect to this one. Click through to see the chain.

Free 27-page guide

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.

No spam. Unsubscribe any time.