Cloudera Iceberg MCP Server (基于 Impala)
这是一个模型上下文协议(Model Context Protocol, MCP)服务器,通过 Apache Impala 提供对 Iceberg 表的只读访问。该服务器使 LLMs(大语言模型)能够检查数据库模式并执行只读查询。
execute_query(query: str)
:在 Impala 上执行任意 SQL 查询,并以 JSON 格式返回结果。
get_schema()
:列出当前数据库中所有可用的表。
与 Claude Desktop 集成使用
要将此服务器与 Claude Desktop 应用程序一起使用,请将以下配置添加到
claude_desktop_config.json
文件的 mcpServers
部分:将
/path/to
替换为此仓库的路径,并设置相应的环境变量。与 AI 框架集成使用
./examples
文件夹中包含了多个示例,展示了如何将此 MCP Server 与常见的 AI 框架(如 LangChain/LangGraph、OpenAI SDK)集成。版权所有 (c) 2025 - Cloudera, Inc. 保留所有权利。
- Author:waytomcp
- URL:https://www.waytomcp.com/article/peterableda/iceberg-mcp-server
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!