Duckcode Snowflake Reader MCP Server
Provides read-only access to Snowflake data, including resources to list visible tables and describe tables, plus a query tool for executing read-only SELECT, SHOW, DESC, EXPLAIN, and WITH queries.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Duckcode Snowflake Reader MCP Server
An enterprise-focused, read-only Model Context Protocol (MCP) server that exposes Snowflake data to MCP-compatible agents such as Claude Desktop. The server keeps credentials out of logs, validates SQL use, and is ready to run in Docker-based MCP hosting environments.
Highlights
Read-only access enforced with SQL guards and identifier validation
Multiple credential sources: JSON secrets file, environment variables, or inline JSON
Minimal runtime surface area: single Python process, no background threads
Drop-in MCP server identifier
duckcode-snowflake-reader
Related MCP server: Generic Database MCP Server
Secure Configuration Options
Quick Credential Examples
Secrets file: create
/run/secrets/snowflake.jsonwith the JSON payload shown below and launchpython -m duckcode_snowflake_reader_mcp_server.main --connection-file /run/secrets/snowflake.json.Environment variables: export
DUCKCODE_SNOWFLAKE_ACCOUNT=my-account,DUCKCODE_SNOWFLAKE_USER=svc_reader, etc., then runpython -m duckcode_snowflake_reader_mcp_server.main --env-prefix DUCKCODE_SNOWFLAKE.Inline JSON (testing only):
python -m duckcode_snowflake_reader_mcp_server.main --connection '{"account":"my-account","user":"svc_reader","password":"super-secret","warehouse":"reporting_wh","database":"analytics_db","schema":"production","role":"ANALYST_ROLE"}'.
Option 1 - JSON Secrets File (recommended)
Store credentials in a file that is not committed to source control. Example
snowflake-credentials.json:
{
"account": "your-account",
"user": "svc_reader",
"password": "${SNOWFLAKE_PASSWORD}",
"warehouse": "reporting_wh",
"database": "analytics_db",
"schema": "production",
"role": "ANALYST_ROLE"
}Run the server:
python -m duckcode_snowflake_reader_mcp_server.main \
--connection-file /secure/path/snowflake-credentials.jsonOption 2 - Environment Variables
Provide values via an environment prefix. Each key becomes
<PREFIX>_<field name in uppercase> (e.g. DUCKCODE_SNOWFLAKE_ACCOUNT).
export DUCKCODE_SNOWFLAKE_ACCOUNT=your-account
export DUCKCODE_SNOWFLAKE_USER=svc_reader
export DUCKCODE_SNOWFLAKE_PASSWORD='...'
export DUCKCODE_SNOWFLAKE_WAREHOUSE=reporting_wh
export DUCKCODE_SNOWFLAKE_DATABASE=analytics_db
export DUCKCODE_SNOWFLAKE_SCHEMA=production
export DUCKCODE_SNOWFLAKE_ROLE=ANALYST_ROLE
python -m duckcode_snowflake_reader_mcp_server.main --env-prefix DUCKCODE_SNOWFLAKEEnvironment-sourced values override anything supplied by JSON.
Option 3 - Inline JSON (for quick tests only)
python -m duckcode_snowflake_reader_mcp_server.main \
--connection '{"account":"your-account","user":"svc_reader",...}'Avoid this approach in shared shells or production environments because command history may capture secrets.
Claude Desktop / Claude for Web Configuration
Add the server to your MCP configuration file. Replace placeholders or switch to
--connection-file / --env-prefix if you mount secrets into the container.
{
"mcpServers": {
"duckcode-snowflake-reader": {
"command": "docker",
"args": [
"run",
"--rm",
"duckcode-snowflake-reader-mcp-server",
"--connection",
"{\"account\":\"your-account\",\"user\":\"svc_reader\",\"password\":\"your-password\",\"warehouse\":\"reporting_wh\",\"database\":\"analytics_db\",\"schema\":\"production\",\"role\":\"ANALYST_ROLE\"}"
]
}
}
}svc_reader is simply a placeholder for whichever Snowflake user (often a dedicated
service account) you want to authenticate as. The escaped quotes (\") are
required because this JSON object is being embedded inside another JSON string.
If you prefer to avoid escape characters, switch to --connection-file or
--env-prefix, which keep the credentials in their natural JSON or environment
variable form.
Running with Docker
docker build -t duckcode-snowflake-reader-mcp-server .
docker run --rm \
-v /secure/path/snowflake-credentials.json:/run/secrets/snowflake.json:ro \
duckcode-snowflake-reader-mcp-server \
--connection-file /run/secrets/snowflake.jsonRunning with uvx
uvx duckcode-snowflake-reader-mcp-server \
--env-prefix DUCKCODE_SNOWFLAKEEnsure the environment variables or secrets file are available to the runtime.
Available Resources & Tools
snowflake://tables— list tables visible to the configured rolesnowflake://schema/{table_name}— describe a table (fully qualified name)querytool — execute a single read-only query (SELECT,SHOW,DESC,EXPLAIN,WITH)
License
Distributed under the MIT License. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Read-only MCP access to sessions, funnels, campaigns, errors, live visitors, and anomalies.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Read-only MCP for identity resolution and write guardrails.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides secure, read-only access to Snowflake databases through the Model Context Protocol. It allows users to query data while strictly prohibiting destructive SQL commands like INSERT, UPDATE, or DELETE.MIT
- AlicenseNot gradedqualityDmaintenanceEnables read-only SQL querying and schema inspection across MSSQL, PostgreSQL, and MySQL databases via MCP tools.ISC
- AlicenseNot gradedqualityCmaintenanceGives AI agents read-only access to any QuestDB instance, enabling schema discovery, time-series querying, and monitoring of partitions, WAL state, symbols, and ingestion health through MCP.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables read-only Snowflake database queries through MCP, allowing safe SELECT, SHOW, DESCRIBE, WITH, and EXPLAIN operations via natural language tools with lazy connection setup.MIT