Keboola Explorer MCP Server

Keboola Explorer MCP Server

这个服务器方便与 Keboola Storage API 交互,使用户能够通过 Claude Desktop 高效地浏览和管理项目存储桶、表和组件。

Category
访问服务器

Tools

get_bucket_metadata

Get detailed information about a specific bucket.

list_bucket_info

List information about all buckets in the project.

list_bucket_tables

List all tables in a specific bucket with their basic information.

get_table_metadata

Get detailed information about a specific table including its DB identifier and column information.

query_table

Executes an SQL SELECT query to get the data from the underlying snowflake database. * When constructing the SQL SELECT query make sure to use the fully qualified table names that include the database name, schema name and the table name. * The fully qualified table name can be found in the table information, use a tool to get the information about tables. The fully qualified table name can be found in the response for that tool. * Snowflake is case-sensitive so always wrap the column names in double quotes. Examples: * SQL queries must include the fully qualified table names including the database name, e.g.: SELECT * FROM "db_name"."db_schema_name"."table_name";

list_components

List all available components and their configurations.

list_component_configs

List all configurations for a specific component.

README

Keboola MCP 服务器

CI codecov <a href="https://glama.ai/mcp/servers/72mwt1x862"><img width="380" height="200" src="https://glama.ai/mcp/servers/72mwt1x862/badge" alt="Keboola Explorer Server MCP server" /></a> smithery badge

一个用于与 Keboola Connection 交互的模型上下文协议 (MCP) 服务器。此服务器提供用于列出和访问来自 Keboola Storage API 的数据的工具。

要求

  • Keboola Storage API 令牌
  • Snowflake 只读工作区

安装

通过 Smithery 安装

要通过 Smithery 自动安装用于 Claude Desktop 的 Keboola Explorer:

npx -y @smithery/cli install keboola-mcp-server --client claude

手动安装

首先,克隆存储库并创建一个虚拟环境:

git clone https://github.com/keboola/keboola-mcp-server.git
cd keboola-mcp-server
python3 -m venv .venv
source .venv/bin/activate

以开发模式安装软件包:

pip3 install -e .

对于开发依赖项:

pip3 install -e ".[dev]"

Claude Desktop 设置

要将此服务器与 Claude Desktop 一起使用,请按照以下步骤操作:

  1. 创建或编辑 Claude Desktop 配置文件:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. 添加以下配置(根据您的设置调整路径):

{
  "mcpServers": {
    "keboola": {
      "command": "/path/to/keboola-mcp-server/.venv/bin/python",
      "args": [
        "-m",
        "keboola_mcp_server",
        "--api-url",
        "https://connection.YOUR_REGION.keboola.com"
      ],
      "env": {
        "KBC_STORAGE_TOKEN": "your-keboola-storage-token",
        "KBC_WORKSPACE_USER": "your-workspace-user"
      }
    }
  }
}

替换:

  • /path/to/keboola-mcp-server 为克隆存储库的实际路径
  • your-keboola-storage-token 为您的 Keboola Storage API 令牌
  • YOUR_REGION 为您的 Keboola 区域(例如,north-europe.azure 等)。如果您的区域只是 connection,则可以将其删除
  • your-workspace-user 为您的 Snowflake 工作区用户名

注意:如果您使用的是特定版本的 Python(例如,由于某些软件包兼容性问题而使用 3.11), 则需要更新 command 以使用该特定版本,例如 /path/to/keboola-mcp-server/.venv/bin/python3.11

注意:只读 Snowflake 工作区可以在您的 Keboola 项目中创建。它与您获取 Storage Token 的项目相同。该工作区将提供所有必要的 Snowflake 连接参数,包括用户名。

  1. 更新配置后:
    • 完全退出 Claude Desktop(不要只关闭窗口)
    • 重新启动 Claude Desktop
    • 查找右下角的锤子图标,表示服务器已连接

故障排除

如果遇到连接问题:

  1. 检查 Claude Desktop 中的日志以查找任何错误消息
  2. 验证您的 Keboola Storage API 令牌是否正确
  3. 确保配置中的所有路径都是绝对路径
  4. 确认虚拟环境已正确激活并且所有依赖项已安装

Cursor AI 设置

要将此服务器与 Cursor AI 一起使用,您有两种配置传输方法的方式:服务器发送事件 (SSE) 或标准 I/O (stdio)。

  1. 创建或编辑 Cursor AI 配置文件:

    • 位置:~/.cursor/mcp.json
  2. 根据您首选的传输方法添加以下配置之一(或全部):

选项 1:使用服务器发送事件 (SSE)

{
  "mcpServers": {
    "keboola": {
      "url": "http://localhost:8000/sse?storage_token=YOUR-KEBOOLA-STORAGE-TOKEN&workspace_user=YOUR-WORKSPACE-USER"
    }
  }
}

选项 2a:使用标准 I/O (stdio)

{
  "mcpServers": {
    "keboola": {
      "command": "/path/to/keboola-mcp-server/venv/bin/python",
      "args": [
        "-m",
        "keboola_mcp_server",
        "--transport",
        "stdio",
         "--api-url",
         "https://connection.YOUR_REGION.keboola.com"
      ],
      "env": {
        "KBC_STORAGE_TOKEN": "your-keboola-storage-token", 
        "KBC_WORKSPACE_USER": "your-workspace-user"         
      }
    }
  }
}

选项 2b:使用 WSL 标准 I/O (wsl stdio)

当从 Windows Subsystem for Linux 运行 MCP 服务器与 Cursor AI 时,请使用此选项。

{
  "mcpServers": {
    "keboola": {
      "command": "wsl.exe",
      "args": [
        "bash",
        "-c",
        "'source /wsl_path/to/keboola-mcp-server/.env",
        "&&",
        "/wsl_path/to/keboola-mcp-server/venv/bin/python -m keboola_mcp_server.cli --transport stdio'"
      ]
    }
  }
}
  • 其中 /wsl_path/to/keboola-mcp-server/.env 文件包含环境变量:
export KBC_STORAGE_TOKEN="your-keboola-storage-token"
export KBC_WORKSPACE_USER="your-workspace-user"

将所有占位符值 (your_*) 替换为您的实际 Keboola 和 Snowflake 凭据。这些可以从您的 Keboola 项目的只读 Snowflake 工作区获得。 将 YOUR_REGION 替换为您的 Keboola 区域(例如,north-europe.azure 等)。如果您的区域只是 connection,则可以将其删除。

更新配置后:

  1. 重新启动 Cursor AI
  2. 如果您使用 sse 传输,请确保启动您的 MCP 服务器。您可以通过在构建服务器的激活虚拟环境中运行以下命令来执行此操作:
    /path/to/keboola-mcp-server/venv/bin/python -m keboola_mcp_server --transport sse --api-url https://connection.YOUR_REGION.keboola.com
    
  3. Cursor AI 应该会自动检测您的 MCP 服务器并启用它。

可用工具

该服务器提供以下工具来与 Keboola Connection 交互:

  • 列出存储桶和表
  • 获取存储桶和表信息
  • 预览表数据
  • 将表数据导出到 CSV
  • 列出组件和配置

开发

运行测试:

pytest

格式化代码:

black .
isort .

类型检查:

mypy .

许可证

MIT 许可证 - 有关详细信息,请参见 LICENSE 文件。

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选