Keboola MCP Server
A Model Context Protocol (MCP) server for interacting with Keboola Connection. This server provides tools for listing and accessing data from Keboola Storage API.
Requirements
- Keboola Storage API token
- Snowflake Read Only Workspace
Note: The Snowflake package doesnβt work with the latest version of Python. If youβre using Python 3.12 and above, youβll need to downgrade to Python 3.11.
Installation
Installing via Smithery
To install Keboola Explorer for Claude Desktop automatically via Smitheryβ:
npx -y @smithery/cli install keboola-mcp-server --client claudeManual Installation
First, clone the repository and create a virtual environment:
git clone https://github.com/jordanburger/keboola-mcp-server.git
cd keboola-mcp-server
python3 -m venv .venv
source .venv/bin/activateInstall the package in development mode:
pip3 install -e .For development dependencies:
pip3 install -e ".[dev]"Claude Desktop Setup
To use this server with Claude Desktop, follow these steps:
-
Create or edit the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the following configuration (adjust paths according to your setup):
{
"mcpServers": {
"keboola": {
"command": "/path/to/keboola-mcp-server/.venv/bin/python",
"args": [
"-m",
"keboola_mcp_server.cli",
"--log-level",
"DEBUG",
"--api-url",
"https://connection.YOUR_REGION.keboola.com"
],
"env": {
"KBC_STORAGE_TOKEN": "your-keboola-storage-token",
"PYTHONPATH": "/path/to/keboola-mcp-server/src",
"KBC_SNOWFLAKE_ACCOUNT": "your-snowflake-account",
"KBC_SNOWFLAKE_USER": "your-snowflake-user",
"KBC_SNOWFLAKE_PASSWORD": "your-snowflake-password",
"KBC_SNOWFLAKE_WAREHOUSE": "your-snowflake-warehouse",
"KBC_SNOWFLAKE_DATABASE": "your-snowflake-database",
"KBC_SNOWFLAKE_SCHEMA": "your-snowflake-schema",
"KBC_SNOWFLAKE_ROLE": "your-snowflake-role"
}
}
}
}Replace:
/path/to/keboola-mcp-serverwith your actual path to the cloned repositoryyour-keboola-storage-tokenwith your Keboola Storage API tokenYOUR_REGIONwith your Keboola region (e.g.,north-europe.azure, etc.). You can remove it if you region is justconnectionexplicitlyyour-snowflake-accountwith your Snowflake account identifieryour-snowflake-userwith your Snowflake usernameyour-snowflake-passwordwith your Snowflake passwordyour-snowflake-warehousewith your Snowflake warehouse nameyour-snowflake-databasewith your Snowflake database nameyour-snowflake-schemawith your Snowflake schema nameyour-snowflake-rolewith your Snowflake role name
Note: If you are using a specific version of Python (e.g. 3.11 due to some package compatibility issues), youβll need to update the
commandinto using that specific version, e.g./path/to/keboola-mcp-server/.venv/bin/python3.11
Note: The Snowflake credentials can be obtained by creating a Read Only Snowflake Workspace in your Keboola project (the same project where you got your Storage Token). The workspace will provide all the necessary Snowflake connection parameters.
- After updating the configuration:
- Completely quit Claude Desktop (donβt just close the window)
- Restart Claude Desktop
- Look for the hammer icon in the bottom right corner, indicating the server is connected
Troubleshooting
If you encounter connection issues:
- Check the logs in Claude Desktop for any error messages
- Verify your Keboola Storage API token is correct
- Ensure all paths in the configuration are absolute paths
- Confirm the virtual environment is properly activated and all dependencies are installed
- Make sure the PYTHONPATH points to the
srcdirectory
Available Tools
The server provides the following tools for interacting with Keboola Connection:
- List buckets and tables
- Get bucket and table information
- Preview table data
- Export table data to CSV
- List components and configurations
Development
Run tests:
pytestFormat code:
black .
isort .Type checking:
mypy .License
MIT License - see LICENSE file for details.