MCP server · Org-owned · Audited from source
DB MCP server
by freepeak/db-mcp-serverMIT licenceAudited 1 Oct 2026 · source d70ece80d3f1
Is it safe? No — BLOCK, grade F (55/100). It exposes 12 tools: 10 read, 2 write and 0 destructive. The audit recorded 15 findings (0 critical, 7 high, 3 medium, 5 low). Maintainer's description: A powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.
Cite
Cite this page
ModelsAtlas. “DB MCP server (freepeak/db-mcp-server)”. Retrieved 1 Oct 2026. https://modelsatlas.com/mcp/freepeak/db
Why this is BLOCK. The audit found 0 critical and 7 high findings; the most severe is Code injection at internal/domain/database.go:11. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
Trust audit
Audit 0.4.1 · full source read 1 Oct 2026
15 findings, 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
- FilesystemDeclared1 observation
- NetworkDeclared4 observations
- ShellDeclared5 observations
- DependenciesPinnedNothing floats
- SecretsFoundSee the findings
Findings (15)
Sorted by severity
HIGHCode injectioncode.eval_exec · internal/domain/database.go:11
Exec(ctx context.Context, statement string, args ...interface{}) (Result, error)- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · internal/domain/database.go:39
Exec(ctx context.Context, statement string, args ...interface{}) (Result, error)- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · internal/repository/database_repository.go:59
Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · internal/repository/database_repository.go:96
func (a *DatabaseAdapter) Exec(ctx context.Context, statement string, args ...interface{}) (domain.Result, error) {- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · internal/repository/database_repository.go:249
func (a *TxAdapter) Exec(ctx context.Context, statement string, args ...interface{}) (domain.Result, error) {- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHPrompt injectionprompt.override · docs/cycles/INDEX.md:17
| 01 | Read-only bypass fix + max_rows guardrail | ✅ Shipped (PR #85) | [cycle-01](cycle-01-read-only-bypass-and-maxrows.md) |
- Why
- asks the agent to drop prior instructions or safety
- Fix
- remove the instruction
HIGHPrompt injectionprompt.override · docs/cycles/cycle-01-read-only-bypass-and-maxrows.md:1
# Cycle 01 — Read-Only Bypass Fix + max_rows Guardrail
- Why
- asks the agent to drop prior instructions or safety
- Fix
- remove the instruction
MEDIUMHard-coded secretssecret.db_uri · init-scripts/timescaledb/README.md:51
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.db_uri · scripts/shell/timescaledb-test.sh:54
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMAuth / authzmcp.remote_no_auth
streamable-http
- Why
- a network transport with no auth environment variable found
- Fix
- require a token
LOWPrompt injectionprompt.credential_read · init-scripts/timescaledb/README.md:37
- **test_readonly**: Read-only access user (password: readonly_password)
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · init-scripts/timescaledb/README.md:38
- **test_readwrite**: Read-write access user (password: readwrite_password)
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · repomix-output.txt:7665
// Load .env file if it exists
- Why
- asks the agent to read credentials
- Fix
- —
LOWSupply chainprompt.pipe_to_shell · repomix-output.txt:789
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
12 declared in source · 0 destructive
| Tool | What it does | Risk |
|---|---|---|
execute | Execute SQL statement | write |
query | Execute SQL query | write |
describe | Show columns, indexes, and row estimate for a table | read |
explain | Show the database execution plan for a SQL statement | read |
filter_tables | Find tables by substring match | read |
health | Report connectivity, connection-pool state, and engine health statistics | read |
list | List files and directories in a given path | read |
list_databases | List all available databases | read |
performance | Analyze query performance | read |
schema | Get schema of | read |
timescaledb | Perform TimescaleDB operations | read |
transaction | Manage transactions | read |
Safer alternatives
We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.
Audit history
- ✕BLOCK F 55 / 100
First audit ·
d70ece80d3f1
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about DB MCP server
What is the DB MCP server?
What tools does DB expose?
Is DB safe to connect to an agent?
What credentials does DB need?
How does DB run?
How current is this page?
I already installed DB. What should I do?
Can the verdict change?
Sources
- freepeak/db-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 1 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit d70ece80d3f1Observed · 1 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.
- What is the DB MCP server?
- What tools does DB expose?
- Is DB safe to connect to an agent?