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 OpenAI API key
1
Install libraries
Install the Microsoft Agent framework library by running the following commands:
2
Setup credentials
Next, you’ll need to provide your OpenAI API key:Next, define the credentials needed to connect to the ClickHouse SQL playground:
Response
3
Initialize MCP server and Microsoft Agent framework agent
Now configure the ClickHouse MCP server to point at the ClickHouse SQL playground
and also initialize our agent and ask it a question:The output of running this script is shown below:
Response