
Snowflake MCP Server
io.github.nsphung由 GitHub 帳號 nsphung 發布v0.14.4更新於 Oct 27, 2026
A Snowflake MCP server — SQL queries, schema exploration, and data insights for AI assistants
概覽
將 AI 助理連接到 Snowflake,讓它能執行 SQL 查詢、瀏覽結構描述並記錄資料洞察。
- 可以做什麼
- 執行唯讀的 SELECT 查詢
- 列出資料庫、結構描述與資料表,並檢視資料表的欄位資訊
- 開啟寫入模式後可執行 INSERT、UPDATE、DELETE 與 CREATE TABLE 語句
- 把資料洞察附加到可持續更新的備忘資源
- 在預取模式下將資料表結構預先載入為資源
- 適用情境
- 適合需要依據 Snowflake 資料倉儲回答問題、檢視資料表結構,或針對實際資料表草擬 SQL 的情境。面向已有 Snowflake 憑證、希望預設以唯讀方式探索資料的分析師與開發者。
- 執行需求
- 透過 uvx(Python 3.13)或 Docker 映像以 stdio 在本機執行。需要 Snowflake 帳戶識別碼、使用者名稱、倉庫、資料庫與結構描述,以及一種驗證方式的憑證:密碼、金鑰組檔案、外部瀏覽器、OAuth 用戶端憑證或 bearer token。也可讀取含具名設定的 TOML 連線檔案。需要能連線至 Snowflake 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Snowflake MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[mcp-snowflake-server-nsp-banner]
[PyPI] • [codecov] • [PyPI Downloads] • [Docker Pulls] • [License: MIT]
Snowflake MCP Server NSP
A Model Context Protocol (MCP) server / MCP server that connects AI assistants to Snowflake — enabling SQL queries, schema exploration, and data insights directly from your LLM client.
Highlights:
- Multiple authentication methods: password, key-pair, external browser, OAuth 2.0 (client credentials & bearer token), TOML connection files
- TOML multi-connection config — manage
production,staging, anddevelopmentenvironments in one file - Write-safety guard — write operations are disabled by default and must be explicitly enabled
- Exclusion patterns — filter out databases, schemas, or tables from discovery
--exclude-json-resultsflag — reduces LLM context window usage- Selective tool exclusion via
--exclude_tools - Prefetch mode — pre-load table schema as MCP resources
- Docker support with hardened image (DHI, nonroot user, no shell in runtime)
Table of Contents
- Snowflake MCP Server NSP
Quick Start
The fastest way to try it — using uvx with a TOML connection file:
Claude Code
Add to your MCP client config (e.g. claude_desktop_config.json) using snowflake_connections.toml:
Visual Studio Code (VSCode)
uvx — [Install in VS Code] [Install in VS Code Insiders]
Docker — [Install in VS Code (Docker)] [Install in VS Code Insiders (Docker)]
Or add manually to your MCP client config (e.g. .vscode/mcp.json) using .env file (see Authentication):
OpenCode
Add to your MCP client config (e.g. opencode.jsonc) with .env file (see Authentication):
Components
Resources
Tools
Query Tools
Schema Tools
Analysis Tools
Authentication
Password
Set credentials via environment variables or CLI flags (see Configuration Reference):
Key-Pair
Both RSA (RS256) and ECDSA (ES256, ES384, ES512) private keys are supported (requires snowflake-connector-python ≥ 4.5.0 for ECDSA).
Or via CLI: --private_key_file /path/to/key.p8 --private_key_file_pwd passphrase
External Browser
Or in a TOML connection entry: authenticator = "externalbrowser"
OAuth 2.0 Client Credentials
Use the OAuth 2.0 client credentials flow to authenticate with a client ID and secret (no user interaction required):
OAuth Bearer Token
Use a pre-fetched OAuth bearer token:
TOML Connection File (Recommended)
Manage multiple environments in a single file. See example_connections.toml for a full template.
Pass the file with --connections-file and select a profile with --connection-name. Both flags are required together.
Installation
The package is published on PyPI as mcp-snowflake-server-nsp.
Contributing or running from source? See
CONTRIBUTING.mdfor local development setup, test commands, formatting, and building the Docker image from source.
Via UVX
TOML configuration (recommended)
Individual parameters
Via Docker Hub
The image is published on Docker Hub — no build step required:
Note:
-i(--interactive) is required to keep stdin open for the MCP stdio transport. Do not use-d(detach).
Claude Desktop — claude_desktop_config.json
With .env file (see Authentication):
With TOML connections file:
VS Code — .vscode/mcp.json
With .env file:
With TOML connections file:
OpenCode — opencode.jsonc
Configuration Reference
All connection parameters can also be set as environment variables (SNOWFLAKE_<PARAM_UPPER>).
Exclusion Patterns
Edit runtime_config.json to exclude databases, schemas, or tables from all discovery tools. Patterns are matched case-insensitively as substrings.
The server loads this file automatically at startup from the working directory.
License
This project is licensed under the MIT License. See the LICENSE file for the full text.
Fork and Attribution
This repository is a fork of isaacwasserman/mcp-snowflake-server.
[MseeP.ai Security Assessment Badge]
- Upstream authors and contributors retain copyright for their contributions.
- Fork-specific changes are maintained by
nsphung. - A summary of notable modifications is tracked in
NOTICE.
來源:README.md,提交 d2971d3
工具
0版本歷史
2- v0.14.4最新Sep 24, 2026
- v0.14.3Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分