How to Use the Milvus (Open-Source Vector Database) MCP in OpenAI Agents SDK
Run production-grade vector search pipelines using this MCP Server inside OpenAI Agents SDK with strict agent guardrails.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Milvus (Open-Source Vector Database) MCP to OpenAI Agents SDK
Create your Vinkius account to connect Milvus (Open-Source Vector Database) 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.
Execute vector searches with OpenAI Agents SDK
This MCP Server exposes `search_vectors` to query your high-dimensional coordinates directly from your agentic workflows. Your agent converts natural language queries into raw vector arrays, feeds them to the database, and gets the closest matches back. The OpenAI Agents SDK automatically registers this tool when you boot up the streamable HTTP server. Your specialized agents can hand off search tasks to each other while the OpenAI dashboard traces every single query vector payload.
Inspect and manage collections on the fly
Run `list_collections` to discover what vector tables are available for your agent to target. Before executing heavy queries, your agent uses `describe_collection` to check the exact schema layout and index parameters. Monitoring storage limits is straightforward with `get_collection_stats` which returns real-time row counts. This MCP setup prevents your OpenAI Agents SDK pipeline from hitting hard memory limits or querying empty vector spaces.
Modify and clean up vector entities safely
Use `delete_entities` to remove specific vector records using their primary keys when users delete their accounts or update their profiles. You can also fetch specific entries using `get_entities` to confirm the deletion worked. For complex filtering, your agent invokes `query_entities` with scalar expressions to narrow down the search space before running a full vector sweep. The OpenAI Agents SDK applies built-in guardrails to make sure these mutations happen only under authorized conditions.
Set up Milvus (Open-Source Vector Database) 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 Milvus (Open-Source Vector Database) tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Milvus (Open-Source Vector Database) tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Milvus (Open-Source Vector Database) 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="Milvus (Open-Source Vector Database) Agent",
instructions="You have access to Milvus (Open-Source Vector Database) 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 Milvus. 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 Milvus (Open-Source Vector Database) 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 Milvus (Open-Source Vector Database) MCP today
We host it, we monitor it, we maintain it. You just paste one token.