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

MCP server · Org-owned · Audited from source

DB MCP server

by freepeak/db-mcp-serverMIT licenceAudited 1 Oct 2026 · source d70ece80d3f1

npm @freepeak/db-mcp-server 1.12.0streamable-http★ 431
✕BLOCKGrade F · 55/100 · 1 Oct 2026 · d70ece8

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.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score55/100✕BLOCK F
0 critical7 high3 medium5 low0 info

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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
| 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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
# 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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

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
F-10 Auth / authzCWE-287 · CWE-862Layer L3
streamable-http
Why
a network transport with no auth environment variable found
Fix
require a token
LOWInventory / provenanceinv.hidden_file · .golangci.yml
F-13 Inventory / provenanceCWE-1104Layer L0
.golangci.yml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWPrompt injectionprompt.credential_read · init-scripts/timescaledb/README.md:37
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
// Load .env file if it exists
Why
asks the agent to read credentials
Fix
—
LOWSupply chainprompt.pipe_to_shell · repomix-output.txt:789
F-08 Supply chainCWE-829 · CWE-1357Layer L2
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

10 read2 write0 destructive
ToolWhat it doesRisk
executeExecute SQL statementwrite
queryExecute SQL querywrite
describeShow columns, indexes, and row estimate for a tableread
explainShow the database execution plan for a SQL statementread
filter_tablesFind tables by substring matchread
healthReport connectivity, connection-pool state, and engine health statisticsread
listList files and directories in a given pathread
list_databasesList all available databasesread
performanceAnalyze query performanceread
schemaGet schema ofread
timescaledbPerform TimescaleDB operationsread
transactionManage transactionsread

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

  1. ✕BLOCK F 55 / 100

    First audit · d70ece80d3f1

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK FMODELSATLASBLOCK · F

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?
A powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.
What tools does DB expose?
12 in total: 10 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is DB safe to connect to an agent?
No — not without reading the findings first. The audit graded it F (55/100) and found 7 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does DB need?
No credential environment variables were found in its source, so it appears to need none.
How does DB run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as @freepeak/db-mcp-server at 1.12.0.
How current is this page?
The grade is for one exact copy of the source (d70ece80d3f1), read on 2026-10-01. The repository is watched and re-audited when it changes.
I already installed DB. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

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.