legion-mcp

legion-mcp

3.5

If you are the rightful owner of legion-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This tool is provided by Legion AI. To use the full-fledged and fully powered AI data analytics tool, please visit the site. Email us if there is one database you want us to support.

The Multi-Database MCP Server by Legion AI is a powerful server designed to facilitate access and querying of data across multiple databases using the Legion Query Runner. It integrates the Model Context Protocol (MCP) Python SDK to enable seamless AI assistant interactions. This server provides a unified interface for connecting to various databases such as PostgreSQL, MySQL, SQL Server, and more, through a consistent API. It is particularly beneficial for AI applications, offering features like zero-configuration schema discovery, secure credential management, and extensible design. The server supports multiple deployment options and is compatible with modern AI development environments, making it a versatile solution for developers looking to streamline database operations and reduce complexity.

Features

  • Multi-database support - connect to multiple databases simultaneously
  • Database access via Legion Query Runner
  • Model Context Protocol (MCP) support for AI assistants
  • Expose database operations as MCP resources, tools, and prompts
  • Multiple deployment options (standalone MCP server, FastAPI integration)

Tools

  1. execute_query

    Execute a SQL query and return the result as a Markdown table

  2. execute_query_json

    Execute SQL query and return the result as JSON

  3. get_table_columns

    Get the column name of a specific table

  4. get_table_types

    Get the column type of a specific table

  5. get_query_history

    Get the latest query history