SuperAPI AI Directory

mcp-snowflake-server

mcp-snowflake-server is a Model Context Protocol (MCP)-based server implementation for interacting with a Snowflake database. It supports executing SQL queries through tools and exposes data insights and schema context in the form of resources. Main features include: read_query executes SELECT queries; write_query (enabled with --allow-write) executes INSERT, UPDATE, DELETE; create_table (enabled with --allow-write) creates tables; list_databases, list_schemas, list_tables list databases, schemas, tables; describe_table views table column information; append_insight adds data insights to the memo://insights resource. Resources include memo://insights (a continuously updated memo of data insights) and context://table/{table_name} (if prefetching is enabled, provides a schema summary for each table). It supports installation via Smithery or UVX, and can also be installed locally, requiring configuration of Snowflake credentials and claude_desktop_config.json. Write operations are disabled by default and can be enabled via --allow-write. It supports filtering databases, schemas, or tables via exclusion patterns.

Open website

About this tool

Purpose

mcp-snowflake-server is a Model Context Protocol (MCP) server implementation designed to provide the ability to interact with a Snowflake database. It allows SQL queries to be executed through the MCP protocol and exposes data insights and schema context as resources, making it suitable for AI applications or development environments that need to integrate Snowflake data access.

Main Capabilities

The server provides the following tools:

  • read_query: Executes SELECT queries to read data. The input is query (string), and it returns an array of query result objects.
  • write_query (available only when --allow-write is enabled): Executes INSERT, UPDATE, or DELETE queries. The input is query (string), and it returns the number of affected rows or a confirmation message.
  • create_table (available only when --allow-write is enabled): Creates a new table. The input is query (string), and it returns a table creation confirmation.
  • list_databases: Lists all databases in the Snowflake instance and returns an array of database names.
  • list_schemas: Lists all schemas in the specified database. The input is database (string), and it returns an array of schema names.
  • list_tables: Lists all tables in the specified database and schema. The inputs are database (string) and schema (string), and it returns an array of table metadata.
  • describe_table: Views column information for a specific table. The input is table_name (string, fully qualified name database.schema.table), and it returns an array of column definitions, including name, type, nullability, default value, and comment.
  • append_insight: Adds a new data insight to the memo resource. The input is insight (string), and it returns an add confirmation and triggers an update of the memo://insights resource.

The server also exposes the following resources:

  • memo://insights: A continuously updated memo that summarizes discovered data insights. It is automatically updated when new insights are appended through the append_insight tool.
  • context://table/{table_name} (if prefetch is enabled): per-table schema summary, including columns and comments, exposed as a standalone resource.

Usage

Using with Claude Desktop

  • Install via Smithery: automatically installs Snowflake Server for Claude Desktop.
  • Install via UVX: install using UVX.
  • Local installation:
    1. Install the Claude AI Desktop App.
    2. Create a .env file containing Snowflake credentials.
    3. [Optional] Modify runtime_config.json to set exclusion patterns for databases, schemas, or tables.
    4. Add the server to claude_desktop_config.json.

By default, write operations are disabled. They must be explicitly enabled via --allow-write.

Use Cases

Suitable for AI applications that need to interact with Snowflake databases via the MCP protocol, such as executing queries, obtaining data insights, and managing database structures in Claude Desktop.

Limitations

  • Write operations (write_query, create_table) are disabled by default and must be explicitly enabled.
  • The prefetch feature must be enabled before per-table context resources can be exposed.
  • Specific installation commands, configuration details, and exclusion pattern syntax are not described in detail in the provided materials and are therefore not provided here.