MCP Astra DB
Last updated
Last updated
Use the to connect Broxi to a .
Install an LTS release of .
Create an API key.
Create an , if you don't already have one.
Get your database's Astra DB API endpoint and an Astra DB application token with the Database Administrator role. For more information, see .
Create a Simple agent starter project.
Remove the URL tool and replace it with an component. The flow should look like this:
In the MCP server component, in the MCP command field, add the following code. Replace the values for ASTRA_TOKEN
and ASTRA_ENDPOINT
with the values from your Astra database.
In the Agent component, add your OpenAI API key.
Open the Playground, and then ask the agent, What collections are available?
Since BroxiAI is connected to your Astra DB database through the MCP, the agent chooses the correct tool and connects to your database to retrieve the answer.