mcp-server-milan-datawarehouse
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_TRANSPORT | No | Transport to use: `stdio` (default) or `streamable-http`. | stdio |
| SNOWFLAKE_ROLE | No | The read-only role to use (recommended). | |
| SNOWFLAKE_USER | No | Login name of the read-only service user. Required unless authentication is fully provided via SNOWFLAKE_CONNECTION_NAME. | |
| ALLOWED_SCHEMAS | No | Comma-separated allowlist of schemas in the form `DB.SCHEMA,DB.SCHEMA` (recommended). | |
| SNOWFLAKE_SCHEMA | No | Default schema. | |
| MAX_ROWS_HARD_CAP | No | Ceiling for the `max_rows` query parameter (default `500`). | 500 |
| SNOWFLAKE_ACCOUNT | Yes | Snowflake account identifier in the form `<org>-<account>`. | |
| STATEMENT_TIMEOUT | No | Statement timeout in seconds, set on every session (default `60`). | 60 |
| SNOWFLAKE_DATABASE | No | Default database (recommended). | |
| SNOWFLAKE_PASSWORD | No | Password for the service user, if not using key-pair authentication. | |
| SNOWFLAKE_WAREHOUSE | No | Warehouse to run queries on (recommended). | |
| SNOWFLAKE_CONNECTION_NAME | No | Name of an entry in `~/.snowflake/connections.toml` to reuse for authentication/connection settings. | |
| SNOWFLAKE_PRIVATE_KEY_PATH | No | Path to the private key file (e.g. `rsa_key.p8`). This is the preferred authentication method. | |
| SNOWFLAKE_PRIVATE_KEY_PASSPHRASE | No | Passphrase for the private key, if it is encrypted. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only Snowflake access. Before writing SQL, call search_schema then describe_table so you use real column names; never guess them. Select explicit columns rather than SELECT *. For analytical questions aggregate in SQL with GROUP BY instead of pulling raw rows. Results are TSV with a header line; NULL is an empty cell. Long results are truncated — continue with fetch_more using the cursor_id in the final # line instead of re-running the query.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_schemaB | Search table and column names in allowed schemas. One line per match. |
| describe_tableC | Columns of one table as TSV: name, type, nullable, comment. |
| run_queryA | Run one read-only SELECT/WITH query. Returns TSV: header then rows. |
| fetch_moreC | Continue a truncated result using its cursor_id. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool occupies a distinct step in the read-only query lifecycle: discovery (search_schema), structure inspection (describe_table), execution (run_query), and pagination (fetch_more). The boundary between run_query and fetch_more is made explicit by the cursor_id reference, so misselection is unlikely.
All four tools follow a consistent snake_case verb_noun pattern (search_schema, describe_table, run_query, fetch_more). Verb choices are distinct and accurately describe the action.
Four tools is a tight, well-scoped surface for a read-only data warehouse inspector; each tool corresponds to a necessary stage of schema discovery and querying. No tool feels redundant or missing at this count.
The read-only lifecycle is fully covered: find tables/columns, inspect structure, execute SELECT/WITH, and paginate truncated results. Minor gaps remain—no way to enumerate schemas/tables directly or inspect keys, constraints, and indexes beyond column metadata.