Snowflake MCP by usefulapi

v1.2.1
io.usefulapi/snowflake Checked 1 day ago Published 8 hours ago

List databases and tables, describe columns and run SQL statements in Snowflake.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

snowflake_list_databases List databases

List the databases visible to the token's role, with owner, comment and retention. Runs SHOW DATABASES. Good first call to find the names for the other tools. Up to 500 rows.

snowflake_list_schemas List schemas

List the schemas in one database. Runs SHOW SCHEMAS IN DATABASE. Up to 500 rows.

ParameterTypeDescription
database *stringDatabase name, exactly as Snowflake lists it (case-sensitive).

snowflake_list_tables List tables

List the tables in one schema, with row counts, size and comment. Runs SHOW TABLES IN SCHEMA. Up to 500 rows.

ParameterTypeDescription
database *stringDatabase name, exactly as Snowflake lists it (case-sensitive).
schema *stringSchema name, exactly as Snowflake lists it (case-sensitive).

snowflake_describe_table Describe a table

Show the columns of one table: name, data type, nullability, default, key and comment. Runs DESCRIBE TABLE. Use it before writing a query against the table.

ParameterTypeDescription
database *stringDatabase name, exactly as Snowflake lists it (case-sensitive).
schema *stringSchema name, exactly as Snowflake lists it (case-sensitive).
table *stringTable name, exactly as Snowflake lists it (case-sensitive).

snowflake_list_warehouses List warehouses

List the compute warehouses visible to the token's role, with state, size and auto-suspend. Runs SHOW WAREHOUSES. Queries bill to a warehouse, so check this before running SQL.

snowflake_run_sql Run a SQL statement

Run one SQL statement with the privileges of the token's role. It can read or change data and objects, so use a read-only role when only reads are needed. Sent as one statement (no multi-statement scripts). Large results return the first partition; use snowflake_get_statement for the rest.

ParameterTypeDescription
statement *stringOne SQL statement.
databasestringDatabase to use for unqualified names (case-sensitive).
limitintegerRows to return (default 100, max 1000).
schemastringSchema to use for unqualified names (case-sensitive).
timeout_secondsintegerStop the statement after this many seconds (default 60).
warehousestringWarehouse to run on (overrides the login default).

snowflake_get_statement Get a statement result

Read the status or one partition of a SQL statement by its statementHandle. Use it for a statement that was still running, or to read partition 1 and later of a large result.

ParameterTypeDescription
statement_handle *stringThe statementHandle from snowflake_run_sql.
limitintegerRows to return (default 100, max 1000).
partitionintegerResult partition to read (default 0).