legion-mcp MCP Server

A server that helps people access and query data in databases using the Legion Query Runner with integration of the Model Context Protocol (MCP) Python SDK.

Local server

What is the legion-mcp Server?

legion-mcp is an MCP project maintained in the theralabs/legion-mcp repository. The maintainer describes its purpose as “A server that helps people access and query data in databases using the Legion Query Runner with integration of the Model Context Protocol (MCP) Python…”. Read the project documentation for the complete scope.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
execute_queryExecute a SQL query and return results as a markdown table
execute_query_jsonExecute a SQL query and return results as JSON
get_table_columnsGet column names for a specific table
get_table_typesGet column types for a specific table
get_query_historyGet the recent query history
list_databasesList all available database connections
get_database_infoGet detailed information about a database including schema
find_tableFind which database contains a specific table
describe_tableGet detailed description of a table including column names and types
get_table_sampleGet a sample of data from a table