Atlas / MCP servers / ktanaka101 / DuckDB Server

DuckDB ServerSAFE

mcp/ktanaka101/duckdb-server

A Model Context Protocol (MCP) server implementation for DuckDB, providing database interaction capabilities

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
1 0r · 1w · 0d
Transport
stdio
License
MIT
Stars
178
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://pypi.org/project/mcp-server-duckdb/) [](LICENSE) [](https://smithery.ai/server/mcp-server-duckdb)

A Model Context Protocol (MCP) server implementation for DuckDB, providing database interaction capabilities through MCP tools. It would be interesting to have LLM analyze it. DuckDB is suitable for local analysis.

Overview

This server enables interaction with a DuckDB database through the Model Context Protocol, allowing for database operations like querying, table creation, and schema inspection.

Components

Resources

Currently, no custom resources are implemented.

Prompts

Currently, no custom prompts are implemented.

Tools

The server implements the following database interaction tool:

  • query: Execute any SQL query on the DuckDB database
  • Input: query (string) - Any valid DuckDB SQL statement
  • Output: Query results as text (or success message for operations like CREATE/INSERT)
[!NOTE] The server provides a single unified query function rather than separate specialized functions, as modern LLMs can generate appropriate SQL for any database operation (SELECT, CREATE TABLE, JOIN, etc.) without requiring separate endpoints.
[!NOTE] When the server is running in readonly mode, DuckDB's native readonly protection is enforced. This ensures that the Language Model (LLM) cannot perform any write operations (CREATE, INSERT, UPDATE, DELETE), maintaining data integrity and preventing unintended changes.

Configuration

Required Parameters

  • db-path (string): Path to the DuckDB database file
  • The server will
Read from source at commit 143e30f7d9c7OBSERVED · 2026-10-06
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add mcp-server-duckdb -- uvx mcp-server-duckdb
claude-desktop
{
  "mcpServers": {
    "mcp-server-duckdb": {
      "command": "uvx",
      "args": [
        "mcp-server-duckdb"
      ]
    }
  }
}
03

Exposed tools (1)

0 read · 1 write · 0 destructive.

ToolRiskDescription
querywriteExecute a query on the DuckDB database
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (0)

No findings outside the package's declared scope.

Gates applied: no_behavioural_pass.

Audited 2026-10-06 · audit v0.4.1 · source sha 143e30f7d9c7full audit observations/trust-audit/mcp-server/ktanaka101__duckdb-server.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-06143e30f7d9c7SAFEB89first audit
06

Questions

What is the DuckDB Server MCP server?

A Model Context Protocol (MCP) server implementation for DuckDB, providing database interaction capabilities

What tools does DuckDB Server expose?

1 in total: 0 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is DuckDB Server 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 DuckDB Server need?

No credential environment variables were found in its source, so it appears to need none.

How does DuckDB Server run?

It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-server-duckdb.

How current is this page?

The grade is for one exact copy of the source (143e30f7d9c7), read on 2026-10-06. The repository is watched and re-audited when it changes.

Advertisement