Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI โ†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE โ†— (opens in a new tab)
  • llms.txt โ†— (opens in a new tab)
  • Catalog JSON โ†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub โ†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
ยฉ 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. ๐Ÿ—„๏ธ Databases
  3. Legion MCP
Legion MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/11/2026, 4:15:45 PM

Legion MCP

User RatingsBe the first to rate and review this MCP server!
View Repository94 GitHub StarsTotal stargazers on GitHub for the source repository (94 stars).Visit Website
databasessqldata-platformsschema-discovery

Query and inspect multiple database systems through one MCP interface with SQL, schema discovery, and database selection tools.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON โ–พ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "theralabs-legion-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/inspector"
      ]
    }
  }
}

๐Ÿ’ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (10) Directory Badge Claim listing Alternatives๐Ÿ—„๏ธ More in Databases

Overview

TheRaLabs/legion-mcp MCP server exposes database connections and SQL operations through the Model Context Protocol. It uses Legion Query Runner connectors with the MCP Python SDK to support PostgreSQL, Redshift, CockroachDB, MySQL, RDS MySQL, SQL Server, BigQuery, Oracle DB, and SQLite. Configure one database with DB_TYPE and DB_CONFIG, or provide multiple connections through DB_CONFIGS and select the target database by ID. Reach for it when an AI assistant needs consistent query and schema tools across different database technologies.

Use cases

โ€ขQuery several supported databases from one AI assistant
โ€ขInspect schemas before generating SQL
โ€ขFind the database that contains a table
โ€ขReturn query results as markdown or JSON

Key features

โ€ขMulti-database connection support
โ€ขSQL execution with markdown or JSON results
โ€ขSchema and table inspection
โ€ขCross-database table discovery
โ€ขQuery history access
โ€ขMCP resources and prompts

Capabilities & Tool Schemas (10) ~150 tokensApproximate context cost of this serverโ€™s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server โ€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Legion MCP.

execute_query

Execute a SQL query and return results as a markdown table

execute_query_json

Execute a SQL query and return results as JSON

get_table_columns

Get column names for a specific table

get_table_types

Get column types for a specific table

get_query_history

Get the recent query history

list_databases

List all available database connections

How Legion MCP works

What TheRaLabs/legion-mcp MCP server does

TheRaLabs/legion-mcp MCP server provides a common MCP interface for querying and inspecting several database systems. Supported connection types include PostgreSQL, Redshift, CockroachDB, MySQL, RDS MySQL, Microsoft SQL Server, BigQuery, Oracle DB, and SQLite. Database access is provided through Legion Query Runner connectors rather than separate database-specific MCP tools.

The server supports both single-database and multi-database configurations. In a multi-database setup, each connection can have an ID and description. Agents can inspect the available connections, identify the database containing a table, review schema details, and then run queries against the selected database.

How it works

TheRaLabs/legion-mcp MCP server uses the MCP Python SDK to expose database operations as tools. It also provides database schema and metadata as MCP resources and includes prompts intended to guide database operations. The select_database prompt helps with choosing a connection when several databases are configured.

For a single connection, set DB_TYPE to a supported database code and provide its connection settings in DB_CONFIG as JSON. For multiple connections, use DB_CONFIGS, a JSON array containing each connection's type, configuration, and optional descriptive information. Tools that operate on a selected connection can receive its db_id.

The server can be configured through environment variables, command-line arguments, or MCP client settings JSON. The README documents uvx and pip-based setup, as well as running the server from the repository with Python.

Setup and configuration

The documented direct runner is uvx database-mcp. An MCP client configuration passes database settings through the env object. A single-database setup uses DB_TYPE and DB_CONFIG; a multi-database setup uses DB_CONFIGS instead. The JSON format inside these variables depends on the selected database connector, so connection fields must follow the configuration expected by Legion Query Runner.

Database IDs may be supplied explicitly in a multi-database configuration. If an ID is omitted, the server generates one from the database type and description. The README also shows command-line options named --db-type, --db-config, and --db-configs for starting the server without those environment variables.

Tools and capabilities

TheRaLabs/legion-mcp MCP server exposes tools for:

  • Running SQL and returning results as a markdown table with execute_query.
  • Running SQL and returning results as JSON with execute_query_json.
  • Listing columns or column types for a specific table.
  • Reviewing recent query history.
  • Listing configured database connections.
  • Viewing database information and schema details.
  • Finding which configured database contains a named table.
  • Getting a detailed table description, including column names and types.
  • Retrieving a sample of table data.

In multi-database deployments, list_databases, get_database_info, and find_table support connection discovery before query execution. Database-specific credentials are kept in the connection configuration rather than embedded in SQL or application logic.

Limitations and notes

The server does not provide one universal connection format for every database. Each supported type has its own configuration requirements, which are documented by the Legion Query Runner connectors. Multi-database queries require the caller to identify the target connection, commonly by supplying db_id.

The available material documents database querying, metadata inspection, resources, and prompts. It does not describe write restrictions, query timeouts, result-size limits, role-based access controls, or transaction behavior. Review the connector-specific documentation and deployment environment before granting an agent access to production data.

Read the full README โ†’View source on GitHub โ†’

Related MCP Servers

View all in Databases View all alternatives
  • Influxdb3 MCP Server logoInfluxdb3 MCP Server
    Verified

    Official MCP server for InfluxDB 3 Core/Enterprise/Cloud Dedicated

    ๐Ÿ—„๏ธ Databases2 views
    Compare vs Influxdb3 MCP Server โ†’
  • MCP Snowflake Server logoMCP Snowflake Server

    Snowflake integration implementing read and (optional) write operations as well as insight tracking

    ๐Ÿ—„๏ธ Databases2 views
    Compare vs MCP Snowflake Server โ†’
  • Postgres MCP logoPostgres MCP

    PostgreSQL MCP server with 14 tools for querying, schema exploration, and table analysis. Features security-first design with SQL injection prevention and read-only by default.

    ๐Ÿ—„๏ธ Databases3 views
    Compare vs Postgres MCP โ†’
  • Mysql MCP Server logoMysql MCP Server

    MySQL database integration with configurable access controls, schema inspection, and comprehensive security guidelines

    ๐Ÿ—„๏ธ Databases3 views
    Compare vs Mysql MCP Server โ†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks โ€” not a rating.

GitHub stars
94
Stargazers on the source repository.
npm downloads
1.1M
Package downloads in the last 30 days.
Last commit
1y ago
Most recent push to the default branch.
Tools exposed
10
Callable tools this server registers over MCP.
Directory activity
5 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet โ€” be the first to share how this listing worked for you.

Frequently Asked Questions about Legion MCP

Run `uvx database-mcp`, or install the `database-mcp` package with pip as documented in the README.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLegion MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/theralabs-legion-mcp?style=directory)](https://allmcps.com/mcp/theralabs-legion-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/theralabs-legion-mcp"><img src="https://allmcps.com/api/badge/theralabs-legion-mcp?style=directory" alt="Legion MCP on AllMCPs" /></a>

Technical Specs & Signals

Category๐Ÿ—„๏ธDatabases
PricingFree
More technical detailsExpand โ–พ
TransportSTDIO
RuntimeNode.js
AuthOther
Last updatedSep 2, 2026
8/9 checks healthy over the last 32d
Views5
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars94
GitHub Star CountTotal stargazers on GitHub representing community popularity (94 stars).
Last commit1y ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on May 11, 2025
npm downloads1,082,816/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
56Quality signal: Good ยท 56/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership6/20
Documentation & tools28/30
Adoption & activity7/15
Community engagement1/10

A guidance signal from public completeness & health data โ€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

2 high-severity advisories on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage โ€” this is a directional signal, not a security audit.

Critical 1High 1Medium 0Low 0

Scanned 17d ago via OSV.dev ยท @modelcontextprotocol/inspector (npm)

โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge โ€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it โ€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in ๐Ÿ—„๏ธ Databases โ†’Best MCP servers for Databases โ†’Alternatives to Legion MCP โ†’Install in Claude DesktopInstall in CursorInstall in VS Code