Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Legion Database MCP server

by theralabs/legion-mcpGPL-3.0 licenceAudited 7 Oct 2026 · source 35e161773d62

PyPI database-mcp★ 94
✓SAFEGrade B · 89/100 · 7 Oct 2026 · 35e1617
94GitHub stars

Is it safe? Yes — SAFE, grade B (89/100). It exposes 10 tools: 8 read, 2 write and 0 destructive. The audit recorded 1 finding (0 critical, 0 high, 1 medium, 0 low). Maintainer's description: A server that helps people access and query data in databases using the Legion Query Runner with Model Context Protocol (MCP) in Python.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Legion Database MCP server (theralabs/legion-mcp)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/theralabs/legion-database

Trust audit

Audit 0.4.1 · full source read 7 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high1 medium0 low0 info

1 finding, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemUndeclared1 observation not in its description
  • NetworkNone observedNothing seen in the source
  • ShellNone observedNothing seen in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS
L1 Static sourceSecrets, path traversal, supply chainWARN 1 finding
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner theralabsUser accountAccount type recorded when we read the repository.
  • PackagePublished on PyPIdatabase-mcp, no version recorded
  • LicenceGPL-3.0From the repository, as read at the audited commit.
  • Last push17 months agoActivity of the repository when we read it.
  • Source commit read35e161773d62The audit covers exactly this commit, read on 7 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory10 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (1)

Sorted by severity

MEDIUMFilesystem / pathfs.destructive · Dockerfile:19
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
&& rm -rf /var/lib/apt/lists/*
Why
No further detail recorded for this rule.
Fix
—

Tools it exposes

10 declared in source · 0 destructive

8 read2 write0 destructive
ToolRiskWhat it does
execute_querywriteExecute a SQL query and return results as a markdown table
execute_query_jsonwriteExecute a SQL query and return results as JSON
describe_tablereadGet detailed description of a table including column names and types
find_tablereadFind which database contains a specific table
get_database_inforeadGet detailed information about a database including schema summary
get_query_historyreadGet the recent query history
get_table_columnsreadGet column names for a specific table
get_table_samplereadGet a sample of data from a table
get_table_typesreadGet column types for a specific table
list_databasesreadList all available database connections

Install

audited commit 35e1617

One-click links open your editor with the config below filled in, exactly as the snippets show it. The audit covers commit 35e1617 only.

claude mcp add database-mcp -- uvx database-mcp

The command does not pin a version; the audit covers commit 35e161773d62. Transport: not declared. No environment variables required.

Audit history

  1. ✓SAFE B 89 / 100

    First audit · 35e161773d62

README badge

For maintainers · updates on every re-audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/mcp/theralabs/legion-database/badge.svg)](https://modelsatlas.com/mcp/theralabs/legion-database/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Legion Database MCP server

What is the Legion Database MCP server?
A server that helps people access and query data in databases using the Legion Query Runner with Model Context Protocol (MCP) in Python.
What tools does Legion Database expose?
10 in total: 8 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Legion Database safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Legion Database need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (35e161773d62), read on 2026-10-07. The repository is watched and re-audited when it changes.

Sources

  • theralabs/legion-mcp on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
  • ModelsAtlas trust audit — SAFE verdict for commit 35e161773d62Observed · 7 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.