
theralabs/legion-mcp
Database management이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
theralabs/legion-mcp는 MCP 서버 후보가 https://github.com/theralabs/legion-mcp.에서 가져온
개요
theralabs/legion-mcp는 MCP 서버 후보가 https://github.com/theralabs/legion-mcp.에서 가져온
개요(AI 번역)
Legion Query Runner를 사용하여 데이터베이스에 액세스 및 쿼리 데이터를 돕는 서버는 Model Context Protocol (MCP) Python SDK를 통합합니다.
여기 시작 세대
이 도구는 Legion AI에 의해 제공됩니다. 전약 및 완전 전원 AI 데이터 분석 도구를 사용하여 사이트를 방문하십시오. 지원하려는 하나의 데이터베이스가 있으면 이메일을 보내주십시오.
끝 발생 여기
왜 데이터베이스 MCP를 선택하십시오지
Database MCP는 여러 가지 compelling 이유에 대한 다른 데이터베이스 액세스 솔루션을 제공합니다.
-Unified Multi-Database Interface: PostgreSQL, MySQL, SQL Server 및 기타 데이터베이스를 단일 일관된 API를 통해 연결 - 각 데이터베이스 유형에 대해 다른 클라이언트 라이브러리를 배울 필요가 없습니다.
- AI-Ready Integration: Model Context Protocol (MCP)을 통해 AI Assistant 상호 작용에 특히 내장되어 자연 언어 데이터베이스 작업을 가능하게 합니다.
- Zero-Configuration Schema Discovery: 자동 발견 및 수동 구성이나 매핑없이 데이터베이스 스키마를 노출합니다.
- 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?
설치
uvx database-mcp설정
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": []
}
}
}