Example notebookThis example can be found as a notebook in the examples repository.
Prerequisites
- You’ll need to have Python installed on your system.
- You’ll need to have
pipinstalled on your system. - You’ll need an Anthropic API key
Setup credentials
Next, you’ll need to provide your Anthropic API key:Response
Initialize MCP server and Claude Agent SDK agent
Now configure the ClickHouse MCP server to point at the ClickHouse SQL playground and also initialize our agent and ask it a question:for block is filtering the output for brevity.Response