Snowflake MCP 服务器
概述
模型上下文协议 (MCP) 服务器实现,提供与 Snowflake 的数据库交互。此服务器支持通过工具运行 SQL 查询,并将数据洞察和架构上下文作为资源公开。
成分
资源
memo://insights
一份不断更新的备忘录,汇总已发现的数据见解。
当通过append_insight工具附加新的见解时自动更新。context://table/{table_name}
(如果启用预取)每个表的模式摘要(包括列和注释)作为单独的资源公开。
工具
该服务器公开以下工具:
查询工具
read_query
执行SELECT查询以从数据库读取数据。
输入:query(字符串):要执行的SELECTSQL 查询
**返回:**查询结果作为对象数组
write_query(仅使用--allow-write启用)
执行INSERT、UPDATE或DELETE查询。
输入:query(字符串):SQL 修改查询
**返回:**受影响的行数或确认
create_table(仅使用--allow-write启用)
在数据库中创建新表。
输入:query(字符串):CREATE TABLESQL语句
**返回:**表创建确认
架构工具
list_databases
列出 Snowflake 实例中的所有数据库。
**返回:**数据库名称数组list_schemas
列出特定数据库内的所有模式。
输入:database(字符串):数据库的名称
**返回:**模式名称数组
list_tables
列出特定数据库和模式中的所有表。
输入:database(字符串):数据库的名称schema(字符串):模式的名称
**返回:**表元数据数组
describe_table
查看特定表的列信息。
输入:table_name(字符串):完全限定表名(database.schema.table)
**返回:**包含名称、类型、可空性、默认值和注释的列定义数组
分析工具
append_insight
向备忘录资源添加新的数据见解。
输入:insight(字符串):通过分析发现的数据洞察
**返回:**确认洞察力的增加
**效果:**触发memo://insights资源的更新
与 Claude Desktop 一起使用
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Snowflake Server:
通过 UVX 安装
本地安装
安装
uv:
使用您的 Snowflake 凭证创建一个
.env文件:
[可选] 修改
runtime_config.json以设置数据库、模式或表的排除模式。本地测试:
将服务器添加到您的
claude_desktop_config.json:
笔记
默认情况下,写入操作是禁用的。使用
--allow-write显式启用它们。该服务器支持通过排除模式过滤特定的数据库、模式或表。
如果启用预取,服务器将公开额外的每个表上下文资源。
append_insight工具动态更新memo://insights资源。
执照
麻省理工学院
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Snowflake 集成实现读取和(可选)写入操作以及洞察跟踪
Related MCP Servers
- Asecurity-licenseAqualityProvides seamless integration with Smartsheet, enabling automated operations on Smartsheet documents through a standardized interface that bridges AI-powered automation tools with Smartsheet's collaboration platform.Last updated -11MIT License
- Asecurity-licenseAqualityEnables interaction with Datadog's monitoring platform to search logs, search trace spans, and perform trace span aggregation for analysis.Last updated -3MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables natural language interaction with Snowflake databases through AI guidance, supporting core database operations, warehouse management, and AI-powered data analysis features.Last updated -131MIT License
- Asecurity-licenseAqualityEnables indexing and retrieving notes with full-text search using SQLite, plus building knowledge graphs to find relationships between concepts. Supports natural language note management, tagging, and semantic connections.Last updated -16