MCP Iceberg Catalog is a server implementation that allows you to interact with Apache Iceberg through the Model Context Protocol (MCP). It provides a SQL interface for querying and managing Iceberg tables directly from Claude Desktop, making it easy to work with your data lake using natural language.
The easiest way to install MCP Iceberg Catalog is through Smithery:
npx -y @smithery/cli install @ahodroj/mcp-iceberg-service --client claude
To manually set up the MCP Iceberg Catalog, add the following configuration to your claude_desktop_config.json
file:
{
"mcpServers": {
"iceberg": {
"command": "uv",
"args": [
"--directory",
"PATH_TO_/mcp-iceberg-service",
"run",
"mcp-server-iceberg"
],
"env": {
"ICEBERG_CATALOG_URI" : "http://localhost:8181",
"ICEBERG_WAREHOUSE" : "YOUR ICEBERG WAREHOUSE NAME",
"S3_ENDPOINT" : "OPTIONAL IF USING S3",
"AWS_ACCESS_KEY_ID" : "YOUR S3 ACCESS KEY",
"AWS_SECRET_ACCESS_KEY" : "YOUR S3 SECRET KEY"
}
}
}
}
Make sure to replace the placeholder values with your actual configuration:
PATH_TO_/mcp-iceberg-service
: The directory path where the MCP Iceberg service is installedICEBERG_CATALOG_URI
: URL of your Iceberg REST catalog serviceICEBERG_WAREHOUSE
: Your Iceberg warehouse nameS3_ENDPOINT
: Your S3 endpoint (optional if using standard AWS S3)AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
: Your S3 credentialsOnce installed, you can use SQL commands in Claude Desktop to interact with your Iceberg tables. The service supports several operations:
To view all available tables:
LIST TABLES
To view the schema of a specific table:
DESCRIBE TABLE namespace.tablename
To query data from a table:
SELECT * FROM namespace.tablename
You can use standard SQL features like:
SELECT column1, column2 FROM table
SELECT * FROM table WHERE condition
SELECT * FROM table LIMIT 10
To insert data into a table:
INSERT INTO namespace.tablename VALUES (value1, value2, ...)
The MCP Iceberg Catalog currently supports:
When using Claude Desktop, you can interact with these features using natural language, and Claude will translate your requests into the appropriate SQL commands for the MCP server.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "iceberg" '{"command":"uv","args":["--directory","PATH_TO_/mcp-iceberg-service","run","mcp-server-iceberg"],"env":{"ICEBERG_CATALOG_URI":"http://localhost:8181","ICEBERG_WAREHOUSE":"YOUR ICEBERG WAREHOUSE NAME","S3_ENDPOINT":"OPTIONAL IF USING S3","AWS_ACCESS_KEY_ID":"YOUR S3 ACCESS KEY","AWS_SECRET_ACCESS_KEY":"YOUR S3 SECRET KEY"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"iceberg": {
"command": "uv",
"args": [
"--directory",
"PATH_TO_/mcp-iceberg-service",
"run",
"mcp-server-iceberg"
],
"env": {
"ICEBERG_CATALOG_URI": "http://localhost:8181",
"ICEBERG_WAREHOUSE": "YOUR ICEBERG WAREHOUSE NAME",
"S3_ENDPOINT": "OPTIONAL IF USING S3",
"AWS_ACCESS_KEY_ID": "YOUR S3 ACCESS KEY",
"AWS_SECRET_ACCESS_KEY": "YOUR S3 SECRET KEY"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"iceberg": {
"command": "uv",
"args": [
"--directory",
"PATH_TO_/mcp-iceberg-service",
"run",
"mcp-server-iceberg"
],
"env": {
"ICEBERG_CATALOG_URI": "http://localhost:8181",
"ICEBERG_WAREHOUSE": "YOUR ICEBERG WAREHOUSE NAME",
"S3_ENDPOINT": "OPTIONAL IF USING S3",
"AWS_ACCESS_KEY_ID": "YOUR S3 ACCESS KEY",
"AWS_SECRET_ACCESS_KEY": "YOUR S3 SECRET KEY"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect