How to Use the DataStax Astra DB Vector MCP in OpenAI Agents SDK
Connect DataStax Astra DB Vector to your OpenAI Agents SDK production pipeline for reliable document management.
Works with every AI agent you already use
…and any MCP-compatible client
Connect DataStax Astra DB Vector MCP to OpenAI Agents SDK
Create your Vinkius account to connect DataStax Astra DB Vector to OpenAI Agents SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Perform vector searches with OpenAI Agents SDK
Your agent runs `vector_search` to pull relevant records directly from your Astra DB namespace. It maps incoming data to your internal logic without needing intermediate translation layers. This workflow relies on the server to handle the heavy lifting of ANN similarity queries. You get precise context for your agent decisions immediately.
Manage collections inside OpenAI Agents SDK
Use `list_collections` to audit your database state before running operations. It prevents your agent from targeting the wrong namespace during execution. This keeps your environment clean while providing the agent full visibility into your schema. You avoid guessing which collections hold your active data sets.
Document CRUD operations for OpenAI Agents SDK
Run `insert_document` or `delete_document` to update your database in real-time. Your agent maintains the source of truth without manual database intervention. `count_documents` lets you verify the total record volume for reporting. It ensures your agent logic stays synchronized with your actual data growth.
Set up DataStax Astra DB Vector MCP in OpenAI Agents SDK
Prerequisites
- Python 3.10+ installed
-
openai-agentspackage (pip install openai-agents) - Active Vinkius subscription with a valid endpoint token
- 1
Install the SDK
Run
pip install openai-agentsto install the OpenAI Agents SDK. The MCP integration is built-in — no extra dependencies needed. - 2
Connect via SSE transport
Use
MCPServerSsewith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. The SDK auto-discovers all DataStax Astra DB Vector tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives DataStax Astra DB Vector tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate DataStax Astra DB Vector tools and returns structured results. Copy the full example on the right to get started.
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
async with MCPServerSse(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
) as server:
agent = Agent(
name="DataStax Astra DB Vector Agent",
instructions="You have access to DataStax Astra DB Vector tools.",
mcp_servers=[server],
)
result = await Runner.run(agent, "List recent transactions")
print(result.final_output)
asyncio.run(main()) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by DataStax Astra DB. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about DataStax Astra DB Vector MCP in OpenAI Agents SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the DataStax Astra DB Vector MCP today
We host it, we monitor it, we maintain it. You just paste one token.