Databases · MCP server
Legion MCP: MCP server, setup and security
Legion MCP is an open-source MCP server that lets an AI agent access multiple databases including PostgreSQL, MySQL, BigQuery, Oracle and SQLite. Its repository has 95 stars and its last commit is from May 11, 2025 and it is licensed under GPL-3.0.
What Legion MCP does
According to its repository: “Multi-database access for PostgreSQL, Redshift, CockroachDB, MySQL, RDS MySQL, SQL Server, BigQuery, Oracle and SQLite.”
An MCP server gives an AI agent extra tools it calls during the conversation: the agent reads their description, decides to use them and gets the result back. Legion MCP is listed under Databases, a category of 138 servers in the directory, where it ranks #72 by stars.
Topics declared by the repository: database, query-builder, legion-ai.
Installing and connecting Legion MCP
No package or remote server is declared in the official MCP registry: you install it from source, following the repository README.
Like any MCP server, you declare it in your client's configuration (Claude Desktop, Claude Code, Cursor, VS Code, Codex…): a name, the command that starts it or its URL, and any environment variables. The client then starts it and lists its tools. Project language: Python.
Security: what to check
An MCP server runs code with the rights you give it, and the model reads its tool descriptions: a malicious or compromised server can hijack the agent. Read the code, or pick a maintained and widely used server, before connecting it.
Points found for Legion MCP:
- Maintenance: no commit for 18 months. Possible flaws and protocol changes are no longer tracked.
Good practice: grant only the rights needed (least privilege), require human approval for irreversible actions, and run the AI agent security check.
Project activity and maintenance
Created on March 24, 2025, the TheRaLabs/legion-mcp repository has 95 stars and 28 forks, with 3 open issues. It has more stars than 66% of the servers in the directory. Last change 18 months ago.
Stars measure attention, not quality: a recent, heavily promoted project can collect them fast, while a useful but niche server will have few.
Verdict
Legion MCP is still a modest project: read its code and compare it with the alternatives before using it.
Limitations
- No commit for 18 months
- Install from source
Avoid if…
- Production use without reviewing the code
Alternatives
- Nhost9.4K ★
- ArcadeDB MCP Server1.2K ★
- Jitsu5.1K ★
- Supabase3K ★
- Dbx27.7K ★
- MCP Toolbox for Databases16.7K ★
Learn more
Frequently asked questions
How do I install Legion MCP?
No package is declared in the MCP registry: clone the TheRaLabs/legion-mcp repository, follow its README, then declare the start command in your client's MCP configuration.
Is Legion MCP free?
The code is published under the GPL-3.0 licence and can be used free of charge.
Is Legion MCP safe?
Points to watch: maintenance. Give it minimum rights and approve sensitive actions.
Is it an official server?
Nothing says so: it is a project published by TheRaLabs on GitHub. Check who maintains it before giving it access.
What are the alternatives to Legion MCP?
In the same category: Nhost, ArcadeDB MCP Server, Jitsu, and Supabase. Nhost and ArcadeDB MCP Server score higher on our grid.
Related articles
- Build your own MCP server in 30 minutesOctober 24, 2026
- Automate your inbox with an AI agentOctober 18, 2026
- MCP, A2A, and tool calling: agent protocols explainedOctober 17, 2026
- Build an AI agent with n8n, without codingOctober 16, 2026
Neutrality. No affiliate links. No vendor pays to be reviewed, rated or ranked. Reviews are directed by François Chollet, neutral and factual, and every data point is dated and sourced. How we score