TL

theralabs/legion-mcp

Database management

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

95 stars 28 forks 品質 64 トレンド 15GPL-3.0

theralabs/legion-mcp は [https://github.com/theralabs/legion-mcp.] からインポートされた MCP サーバーの候補です

概要

theralabs/legion-mcp は [https://github.com/theralabs/legion-mcp.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

レギオンクエリランナーを使用してデータベース内のデータにアクセスし、クエリするサーバーで、モデルコンテキストプロトコル(MCP)Python SDKの統合ができます。

ここに生成を開始

レギオンAIが提供するツールです。 本格的なAIデータ分析ツールをフル活用するには、サイトをご覧ください。 サポートしたいデータベースが1つある場合は、Eメールでお問い合わせください。

エンドジェネレーションはこちら

データベース MCP を選ぶ理由

データベース MCP は、他のデータベースアクセスソリューションから、いくつかの説得力のある理由で際立っています。

-Unified Multi-Database Interface: PostgreSQL、MySQL、SQL Serverなどのデータベースに接続し、単一の一貫したAPIを使用して、各データベースタイプの異なるクライアントライブラリを学習する必要はありません。 -AI-Readyインテグレーション:モデルコンテキストプロトコル(MCP)を介してAIアシスタントインタラクション用に特別に構築され、自然言語データベースの操作を可能にします。 -ゼロ構成スキーマディスカバリー:手動設定やマッピングなしでデータベーススキーマを自動的に発見し、露出します。 -Database-Agnostic Tools: 表を検索し、スキーマを探索し、データベース技術に関係なく同じ一連のツールでクエリを実行します.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Multi-Database MCP Server (by Legion AI)

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.

Start Generation Here

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.

End Generation Here

Why Choose Database MCP

Database MCP stands out from other database access solutions for several compelling reasons:

  • Unified Multi-Database Interface: Connect to PostgreSQL, MySQL, SQL Server, and other databases through a single consistent API - no need to learn different client libraries for each database type.
  • AI-Ready Integration: Built specifically for AI assistant interactions through the Model Context Protocol (MCP), enabling natural language database operations.
  • Zero-Configuration Schema Discovery: Automatically discovers and exposes database schemas without manual configuration or mapping.
  • Database-Agnostic Tools: Find tables, explore schemas, and execute queries with the same set of tools regardless of the underlying database technology.
  • Secure Credential Management: Handles database authentication details securely, separating credentials from application code.
  • Simple Deployment: Works with modern AI development environments like LangChain, FastAPI, and others with minimal setup.
  • Extensible Design: Easily add custom tools and prompts to enhance functionality for specific use cases.

Whether you’re building AI agents that need database access or simply want a unified interface to multiple databases, Database MCP provides a streamlined solution that dramatically reduces development time and 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)
  • Query execution and result handling
  • Flexible configuration via environment variables, command-line arguments, or MCP settings JSON
  • User-driven database selection for multi-database setups

Supported Databases

Database DB_TYPE code
PostgreSQL pg
Redshift redshift
CockroachDB cockroach
MySQL mysql
RDS MySQL rds_mysql
Microsoft SQL Server mssql
Big Query bigquery
Oracle DB oracle
SQLite sqlite

We use Legion Query Runner library as connectors. You can find more info on their api doc.

What is MCP?

GitHub で README 全文を見る

インストール

uvx database-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

REPLACE DB_TYPE and DB_CONFIG with your connection info. { "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": [] } } }