Follow these steps to run the ClickHouse MCP Server agent in a Meshagent Room for testing:
Set Required Environment Variables
Define these variables as needed for your ClickHouse connection. Replace the password token with your own secret.
CLICKHOUSE_HOST
: sql-clickhouse.clickhouse.comCLICKHOUSE_PORT
: 8443CLICKHOUSE_USER
: demoCLICKHOUSE_SECURE
: trueCLICKHOUSE_VERIFY
: trueCLICKHOUSE_CONNECT_TIMEOUT
: 30CLICKHOUSE_SEND_RECEIVE_TIMEOUT
: 30CLICKHOUSE_PASSWORD
: <YOUR_CLICKHOUSE_PASSWORD_HERE>
Install Meshagent
Sign Up & Authenticate
Register and log in as shown in Meshagent CLI Getting Started.
Start an MCP Server Agent in a Test Room
Replace password and any other secrets accordingly:
Attach a Chatbot with ClickHouse Tools
Try It Out
Open the provided room link in your browser and chat with the agent to run database queries and commands using the MCP Server tools.
For production or persistent environments where you want MCP server tools and a chatbot automatically in every new MeshAgent room, deploy these as project-level services:
Create Persistent MCP Server Service
Create Persistent Chatbot Service
These services become available in every Meshagent Room created in the project. No need to run separate server or chatbot processes—they’ll join each new Room automatically.
Tools provided by the ClickHouse MCP Server for use in Meshagent Rooms:
Tool | Short Description |
---|---|
list_databases | List available ClickHouse databases |
list_tables | List available ClickHouse tables in a database, including schema, comment, row count, column count. |
run_select_query | Run a SELECT query in a ClickHouse database |
list_databases
list_tables
database
(string)like
(string, optional)not_like
(string, optional)run_select_query
query
(string)Follow these steps to run the ClickHouse MCP Server agent in a Meshagent Room for testing:
Set Required Environment Variables
Define these variables as needed for your ClickHouse connection. Replace the password token with your own secret.
CLICKHOUSE_HOST
: sql-clickhouse.clickhouse.comCLICKHOUSE_PORT
: 8443CLICKHOUSE_USER
: demoCLICKHOUSE_SECURE
: trueCLICKHOUSE_VERIFY
: trueCLICKHOUSE_CONNECT_TIMEOUT
: 30CLICKHOUSE_SEND_RECEIVE_TIMEOUT
: 30CLICKHOUSE_PASSWORD
: <YOUR_CLICKHOUSE_PASSWORD_HERE>
Install Meshagent
Sign Up & Authenticate
Register and log in as shown in Meshagent CLI Getting Started.
Start an MCP Server Agent in a Test Room
Replace password and any other secrets accordingly:
Attach a Chatbot with ClickHouse Tools
Try It Out
Open the provided room link in your browser and chat with the agent to run database queries and commands using the MCP Server tools.
For production or persistent environments where you want MCP server tools and a chatbot automatically in every new MeshAgent room, deploy these as project-level services:
Create Persistent MCP Server Service
Create Persistent Chatbot Service
These services become available in every Meshagent Room created in the project. No need to run separate server or chatbot processes—they’ll join each new Room automatically.
Tools provided by the ClickHouse MCP Server for use in Meshagent Rooms:
Tool | Short Description |
---|---|
list_databases | List available ClickHouse databases |
list_tables | List available ClickHouse tables in a database, including schema, comment, row count, column count. |
run_select_query | Run a SELECT query in a ClickHouse database |
list_databases
list_tables
database
(string)like
(string, optional)not_like
(string, optional)run_select_query
query
(string)