How to Use the DBeaver (CloudBeaver) MCP in OpenAI Agents SDK
Run secure database admin workflows with the OpenAI Agents SDK and CloudBeaver to manage connections and users with strict guardrails.
Works with every AI agent you already use
…and any MCP-compatible client
Connect DBeaver (CloudBeaver) MCP to OpenAI Agents SDK
Create your Vinkius account to connect DBeaver (CloudBeaver) 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.
Manage CloudBeaver Access via OpenAI Agents SDK
Your OpenAI Agents SDK agent uses the `create_user` tool to provision CloudBeaver database accounts directly through the server API. Using the OpenAI Agents SDK, you can apply built-in guardrails to the `create_user` tool so your agent never spawns unauthorized CloudBeaver profiles. Your OpenAI Agents SDK agent can run `add_connections_access` to link teams with specific CloudBeaver database connections. You can trace every single CloudBeaver permission change made by the agent directly inside your OpenAI dashboard.
Secure Connection Control and Session Termination
The `db_sm_terminate` tool gives your OpenAI Agents SDK agent the power to kill active database sessions when a connection goes rogue. When building with the OpenAI Agents SDK, you can set up a supervisor agent that monitors CloudBeaver performance and hands off session cleanup to a specialized agent. Before taking action, your OpenAI agent calls `get_connection_info` to inspect the status of the target CloudBeaver database. This protects your production databases because your OpenAI agent verifies the CloudBeaver connection state before executing any termination commands.
Automate CloudBeaver Data Exports in Production
The `data_transfer_export_data_from_results` tool allows your OpenAI Agents SDK agent to run async exports of SQL query results directly to CSV or XLSX format. Your OpenAI agent uses this MCP Server tool to query `data_transfer_available_stream_processors` and find which export formats your CloudBeaver server supports. Because you are running this in a production OpenAI agent system, the SDK handles the background CloudBeaver export task without blocking your main thread. You can trace the entire CloudBeaver export pipeline from the initial query to the final file generation within your OpenAI dashboard.
Set up DBeaver (CloudBeaver) 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 DBeaver (CloudBeaver) tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives DBeaver (CloudBeaver) tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate DBeaver (CloudBeaver) 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="DBeaver (CloudBeaver) Agent",
instructions="You have access to DBeaver (CloudBeaver) 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 CloudBeaver. 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 DBeaver (CloudBeaver) 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 DBeaver (CloudBeaver) MCP today
We host it, we monitor it, we maintain it. You just paste one token.