Snowflake Stored Procedure Integration
Integrates and executes Snowflake stored procedures through an MCP server.
Snowflake Stored Procedure Integration with MCP Server
This project simplifies the integration of Snowflake stored procedures with an MCP (Model Context Protocol) server. It provides a framework to define, manage, and execute Snowflake procedures from the MCP server environment.
Requirements
- Python 3.8 or higher
uvinstalled
Installation
- Clone the repository:
git clone https://github.com/Cjaimesg/snowflake-mcp-sp-integration.git
cd snowflake-mcp-sp-integration
- Install dependencies using
uv:
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
Configuration
- Create a
.envfile in the root directory (do not commit this file). Define all required Snowflake credentials:
SNOWFLAKE_ACCOUNT=<xxx>-<xxx>
SNOWFLAKE_USER=<xxx>
SNOWFLAKE_PASSWORD=<xxx>
SNOWFLAKE_ROLE=<xxx>
SNOWFLAKE_WAREHOUSE=<xxx>
SNOWFLAKE_DATABASE=<xxx>
SNOWFLAKE_SCHEMA=<xxx>
SNOWFLAKE_HOST=<xxx>-<xxx>.snowflakecomputing.com
All variables are mandatory and must be defined by the user.
- Configure the project as an MCP server. In your MCP configuration file, add an entry like the following, adjusting the paths to match your local environment. Both --schemas and --procedures are optional and default to empty lists.
- Schemas: All store procedures in the specified schemas will be available to the MCP server.
- Procedures: Only the specified procedures will be available to the MCP server.
{
"mcpServers": {
"snowflake_sp_server": {
"command": "absolute/path/to/your/uv/uv.exe",
"args": [
"--directory",
"absolute/path/to/snowflake-mcp-sp-integration",
"run",
"main.py",
"--schemas",
"DB_NAME.SCHEMA_NAME",
"--procedures",
"DB_NAME.OTHER_SCHEMA_NAME.PROCEDURE_NAME"
]
}
}
}
Replace
absolute/path/to/snowflake-mcp-sp-integrationwith the actual directory where you cloned this repository.
Quickstart - Setup Guide for Dev Environment
The quickstart/ folder contains a step-by-step guide for setting up and testing this module in the Dev Environment.
License
This project is licensed under the MIT License.
関連サーバー
Solana MCP Server
Provides comprehensive access to Solana blockchain data using 21 essential RPC methods.
EHR Tools with MCP and FHIR
Search and query patient Electronic Health Record (EHR) data using SMART on FHIR.
Fireproof JSON DB Collection Server
Manage multiple Fireproof JSON document databases with cloud sync capabilities.
Directus MCP Server
An MCP server for Directus CMS, enabling AI clients to interact with the Directus API.
IQ.wiki
Access data and information from IQ.wiki, the world's largest crypto and blockchain encyclopedia.
Power BI MCP Servers
Integrate with Power BI using a local server for offline .pbix file analysis and an Azure server for querying live datasets.
MariaDB / MySQL
Provides access to MariaDB and MySQL databases for querying and data manipulation.
AWS RDS Management
Manage Amazon RDS and Aurora database clusters, including instances, backups, parameters, costs, and monitoring.
CData SAP HANA XS Advanced Server
A read-only MCP server for SAP HANA XS Advanced, powered by the CData JDBC Driver.
Michelin MCP
Access structured Michelin restaurant data, including cities, countries, cuisines, awards, and facilities.