Iceberg Mcp Server

Iceberg Mcp Server

🚀 Cloudera Iceberg MCP 服务器(通过 Impala)

Cloudera Iceberg MCP 服务器是一个模型上下文协议 (MCP) 服务器,它借助 Apache Impala 实现对 Apache Iceberg 表的只读访问。该服务器为大型语言模型 (LLMs) 提供了检查数据库架构和执行只读查询的能力,极大地便利了数据交互与查询操作。

✨ 主要特性

  • 查询执行execute_query(query: str) 方法可在 Impala 上运行任意 SQL 查询,并以 JSON 格式返回结果。
  • 架构获取get_schema() 方法能够列出当前数据库中所有可用的表。

🚀 快速开始

与 Claude Desktop 的使用

若要在 Claude Desktop 应用中使用此服务器,需将以下配置添加到 claude_desktop_config.json 文件的 "mcpServers" 部分:

{
"mcpServers": {
"iceberg-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/path/to/iceberg-mcp-server",
"run",
"server.py"
],
"env": {
"IMPALA_HOST": "coordinator-default-impala.example.com",
"IMPALA_PORT": "443",
"IMPALA_USER": "username",
"IMPALA_PASSWORD": "password",
"IMPALA_DATABASE": "default"
}
}
}
}

请将 /path/to 替换为您实际的路径,并设置相应的环境变量。

与 AI 框架的使用

./examples 文件夹中包含多个示例,展示了如何将此 MCP 服务器与常见 AI 框架(如 LangChain/LangGraph、OpenAI SDK)集成。

📄 许可证

版权声明 (c) 2025 - Cloudera, Inc. 保留所有权利。

  • 0 关注
  • 0 收藏,21 浏览
  • system 提出于 2025-09-24 03:27

相似服务问题

相关AI产品