Integrations
Provides installation through PyPI, as indicated by the PyPI downloads badge and installation instructions.
Clickzetta MCP Server
Overview
A Model Context Protocol (MCP) server implementation that provides database interaction with Clickzetta Lakehouse. This server enables running SQL queries with tools and intereacting with a memo of data insights presented as a resource.
Quick Start with MCP-ClickZetta-Server/Trae as your AI Data Engineer
Download and install Trae
Download from trae.ai and sign in to enable use AI.
Get your ClickZetta Account
Pull MCP-ClickZetta-Server Docker Image
Add MCP server in Trae
- In the AI chat window, click the Settings icon > MCP.
- The MCP window will appear.
- Click the + Add button.
- You will enter the MCP Server Marketplace.
- Click Manual Configuration. The Manual Configuration window will appear. Add a brand-new MCP Server by pasting the following JSON configuration into the input box, then click the Confirm button. The MCP Server will be added to the MCP list.
- CLICKZETTA开头的env参数为必填
- XINFERENCE开头的和Similar开头的env参数为可选,支持vector_search和match_all连个tools
Quick Start with MCP-ClickZetta-Server/Zettapark-MCP-Server/Claude Desktop as your AI Data Engineer
Download and install Claude Desktop
Download from claude.ai and sign in.
Get your ClickZetta Account
Start your Jupyter lab
Start by Docker Compose
- create folder
- Create config.json file and set your login information as below:
Notice: In this way, please set config.json file in notebooks folder. You should chage query_tag for your purpose and it is using to find query by tag.
- Download docker-compose.yml and start docker compose
Download docker compose file from here
Go to Docker desktop and check the docker compose is started.
- Access Jupyter Lab Server
Token: YOUR_SECURE_TOKEN
Then create a new notebook, change name from Untitled.ipynb to notebook.ipynb .
Or Start Local Server
Add MCP server in your Claude Desktop
- In Claude Desktop, go to Settings → Developer → Edit Config
- Open claude_desktop_config.json and config MCP servers
You could get more detail information about Zettapark MCP Server from here.
Components
Resources
The server exposes a single dynamic resource:
memo://insights
: A continuously updated data insights memo that aggregates discovered insights during analysis- Auto-updates as new insights are discovered via the append-insight tool
Tools
The server offers the following core tools:
Query Tools
read_query
- Description: Execute
SELECT
queries to read data from the database. - Input:
query
(string): TheSELECT
SQL query to execute.
- Returns: Query results as an array of objects.
write_query
(requires --allow-write
flag)
- Description: Execute
INSERT
,UPDATE
, orDELETE
queries to modify data. - Input:
query
(string): The SQL modification query.
- Returns:
{ affected_rows: number }
, indicating the number of affected rows.
create_table
(requires --allow-write
flag)
- Description: Create new tables in the database.
- Input:
query
(string):CREATE TABLE
SQL statement.
- Returns: Confirmation of table creation.
create_table_with_prompt
(requires --allow-write
flag)
- Description: Create a new table by prompting the user for table name, columns, and their types.
- Input:
table_name
(string): The name of the table to create.columns
(string): The columns and their types in the formatcolumn1:type1,column2:type2
.
- Returns: Confirmation of table creation.
Schema Tools
list_tables
- Description: Get a list of all tables in the database.
- Input: No input required.
- Returns: An array of table names.
describe_table
- Description: View column information for a specific table.
- Input:
table_name
(string): Name of the table to describe (can be fully qualified).
- Returns: An array of column definitions with names and types.
show_object_list
- Description: Get the list of specific object types in the current workspace, such as catalogs, schemas, tables, etc.
- Input:
object_type
(string): The type of the object to show.
- Returns: A list of objects.
desc_object
- Description: Get detailed information about a specific object, such as a catalog, schema, or table.
- Input:
object_type
(string): The type of the object.object_name
(string): The name of the object.
- Returns: Detailed information about the object.
Analysis Tools
append_insight
- Description: Add new data insights to the memo resource.
- Input:
insight
(string): Data insight discovered from analysis.
- Returns: Confirmation of insight addition.
- Triggers: Updates the
memo://insights
resource.
Data Import Tools
import_data_into_table_from_url
- Description: Import data into a table from a URL (including file paths or HTTP/HTTPS URLs). If the destination table does not exist, it will be created automatically.
- Input:
from_url
(string): The data source URL.dest_table
(string): The table to import data into.
- Returns: Confirmation of successful data import.
import_data_into_table_from_database
- Description: Connect to a database, execute a query, and import the results into a Clickzetta table. Supports MySQL, PostgreSQL, SQLite, and other common database types.
- Input:
db_type
(string): The type of the database (e.g.,mysql
,postgresql
,sqlite
).host
(string): The hostname or IP address of the database server (not required for SQLite).port
(integer): The port number of the database server (not required for SQLite).database
(string): The name of the database to connect to (for SQLite, this is the file path to the database file).username
(string): The username for authentication (not required for SQLite).password
(string): The password for authentication (not required for SQLite).source_table
(string): The source table name.dest_table
(string): The destination table name.
- Returns: Confirmation of successful data import.
Similar Search Tools
vector_search
- Description: Perform vector search on a table using a question and return the top 5 closest answers.
- Input:
table_name
(string): The table name.content_column_name
(string): The column storing content.embedding_column_name
(string): The column storing embeddings.partition_scope
(string): SQL code to define the partition scope as part of theWHERE
condition.question
(string): The question to search.
- Returns: Search results.
match_all
- Description: Perform a search using the "match all" function on a table with a question and return the top 5 answers.
- Input:
table_name
(string): The table name.content_column_name
(string): The column storing content.partition_scope
(string): SQL code to define the partition scope as part of theWHERE
condition.question
(string): The question to search.
- Returns: Search results.
Knowledge Search Tools
get_knowledge_about_how_to_do_something
- Description: Provide guidance on how to perform specific tasks, such as analyzing slow queries, creating tables, or managing storage connections.
- Input:
to_do_something
(string): The task to perform. Supported tasks include:analyze_slow_query
analyze_table_with_small_file
create_table_syntax
how_to_create_vcluster
how_to_create_index
how_to_alter_table_and_column
how_to_create_storage_connection
how_to_create_external_volume
- Returns: Detailed guidance on the specified task.
Usage Notes
- Ensure the
--allow-write
flag is enabled when using tools that modify data (e.g.,write_query
,create_table
). - Provide the correct input parameters for each tool as described above.
Usage with Claude Desktop
Installing as local MCP Server(This way has been tested and verified on MacOS)
Clone this repository:
Install the package:
Config credentials
Create a .env file based on .env.example with your Clickzetta Lakehouse credentials:
Usage
Running with uv
After installing the package, you can run the server directly with:
If this is the first time you are running the server, you could run the following command to acclerate the package installation:
This will start the stdio-based MCP server, which can be connected to Claude Desktop or any MCP client that supports stdio communication.
You should see output similar to:
Claude Desktop Integration
The MCP server (running in Docker) reads its configuration from environment variables passed via the MCP client configuration (e.g., claude_desktop_config.json
). Key variables:
- In Claude Desktop, go to Settings → MCP Servers
- Add a new server with the full path to your uv executable:
- You can find your uv path by running which uv in your terminal
- Save the server configuration
Example Queries
When using with Claude, you can ask questions like:
- "Can you list all the schemas in my Clickzetta account?"
- "List all views in the PUBLIC schema"
- "Describe the structure of the CUSTOMER_ANALYTICS view in the SALES schema"
- "Show me sample data from the REVENUE_BY_REGION view in the FINANCE schema"
- "Run this SQL query: SELECT customer_id, SUM(order_total) as total_spend FROM SALES.ORDERS GROUP BY customer_id ORDER BY total_spend DESC LIMIT 10"
- "Query the MARKETING database to find the top 5 performing campaigns by conversion rate"
- "帮我从Clickzetta中读取数据,分析下在public这个schema下github_users表里每个公司的用户数。请用中文返回结果,并对结果进行数据可视化展现"
- "帮我从Clickzetta中读取数据,分析下在public这个schema下github_event_issuesevent表里有多少条记录?"
Example Result
- '帮我从Clickzetta数据源中读取数据,先分析基于public这个schema下github_users表里的数据可以做哪些分析?包括指标、统计、趋势、以及各种经典的用户分析模型比如用户价值分析、用户生命周期分析、用户segment等,然后根据这些分析内容生成一个分析报告的dashboard'
- The result of "帮我从Clickzetta中读取数据,分析下在public这个schema下github_users表里每个公司的用户数。请用中文返回结果,并对结果进行数据可视化展现":
- The result of "帮我从Clickzetta中读取数据,分析下在public这个schema下github_users表里每个位置 的用户数。请用中文返回结果,并对结果进行数据可视化展现":
Security Considerations
This server:
- Enforces read-only operations (only SELECT statements are allowed)
- Automatically adds LIMIT clauses to prevent large result sets
- Uses service account authentication for secure connections
- Validates inputs to prevent SQL injection
- ⚠️ Important: Keep your .env file secure and never commit it to version control. The .gitignore file is configured to exclude it.
Installing via Smithery(This way is tobe tested and verified)
To install Clickzetta Server for Claude Desktop automatically via Smithery:
Installing via UVX(This way is tobe tested and verified)
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that enables database interaction with Clickzetta, allowing users to run SQL queries, manage tables, and maintain a dynamically updated memo of data insights.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables SQL query execution, database management, and business intelligence capabilities through MySQL connections.Last updated -JavaScript
- AsecurityAlicenseAqualityA Model Context Protocol server that provides database interaction capabilities through SQLite, enabling users to run SQL queries, analyze business data, and automatically generate business insight memos.Last updated -69TypeScriptMIT License
- -security-license-qualityA Model Context Protocol server that provides tools for connecting to and interacting with various database systems (SQLite, PostgreSQL, MySQL/MariaDB, SQL Server) through a unified interface.Last updated -Python
- -securityFlicense-qualityA Model Context Protocol server that enables SQL operations (SELECT, INSERT, UPDATE, DELETE) and table management through a standardized interface with SQLite databases.Last updated -JavaScript