legion-mcp
legion-mcp is an MCP server. Its repository has 95 GitHub stars and is licensed under GPL-3.0; we last read it on 2026-10-23.
This server facilitates data access and querying through the Legion Query Runner using the Model Context Protocol (MCP) in Python.
Install
MCP servers are packaged differently from each other -- some run via npx, some as a Docker image, some as a plain script you clone and run. legion-mcp’s own README did not state one plainly enough for this page to quote it rather than guess, so it will not guess. The repository below states it.
What it reaches, and what it needs
Maintenance
A server that helps people access and query data in databases using the Legion Query Runner with Model Context Protocol (MCP) in Python.
What legion-mcp can do
10 tools documented in its README. An AI client calls these by name.
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
get_database_info- Get detailed information about a database including schema
find_table- Find which database contains a specific table
describe_table- Get detailed description of a table including column names and types
get_table_sample- Get a sample of data from a table
Read from the README; names are kept only if the README contains them.
Common questions about legion-mcp
- What does legion-mcp do?
- This server facilitates data access and querying through the Legion Query Runner using the Model Context Protocol (MCP) in Python.
- How do I install legion-mcp?
- Its README did not state an install command plainly enough for us to quote one, so we do not guess. The repository has the instructions: https://github.com/TheRaLabs/legion-mcp
- Is legion-mcp official and is it maintained?
- We found nothing naming it as a vendor’s official server. Its repository has 95 GitHub stars and its state in our directory is stale. Its last commit we recorded was on 2025-05-11.
- What licence does legion-mcp use?
- The repository declares the GPL-3.0 licence.