# Legion Database

> Use this tool when you need to access and query multiple databases through a standardized interface, solving data analysis and business intelligence problems by enabling natural language interactions with databases. It takes in natural language queries and database configurations as inputs, and outputs query results, schemas, and optimized SQL statements. Ideal for use cases requiring direct access to structured data, such as data exploration and business intelligence applications.

Canonical page: https://skillsregistry.net/skills/legion-database  
JSON: https://api.skillsregistry.net/v1/skills/legion-database

## Description

Database MCP Server, developed by Legion AI, enables AI assistants to access and query data across multiple database types (PostgreSQL, MySQL, SQL Server, BigQuery, etc.) through a standardized interface. Built with Python using the Legion Query Runner library, it exposes database operations as MCP tools and resources, allowing natural language interactions with databases for executing queries, retrieving schemas, and optimizing SQL statements. The implementation features flexible configuration options and maintains query history for context, making it particularly valuable for data analysis, business intelligence, and database exploration use cases where AI assistants need direct, controlled access to structured data.

## Trust

- **Trust score (0–1):** 1.00
- **Verification tier:** verified
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-09-28

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/legion-database)
- **Repository:** <https://github.com/theralabs/legion-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "legion-database"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/legion-database` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/legion-database/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
