How to Use the Elastic Security MCP in OpenAI Agents SDK
Deploy production-grade security agents using the OpenAI Agents SDK to manage Elastic Security rules and triage alerts.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Elastic Security MCP to OpenAI Agents SDK
Create your Vinkius account to connect Elastic Security 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.
Automate SIEM Triage with OpenAI Agents SDK
The `search_signals` tool lets your OpenAI security agent query raw generated Elastic Security alerts directly from your Python runtime. When an alert fires, the agent inspects the payload structure, analyzing hostnames, process trees, and IP geolocations to determine if an active threat requires manual intervention or if it's just a false positive. By feeding these telemetry details into specialized agent handoffs, you can route high-risk alerts to your incident response team while letting background agents resolve known administrative noise. This integration runs inside the Vinkius sandbox, keeping your API keys protected while your models run through the OpenAI tracing dashboard.
Deploy Safe Exception Logic via the MCP Server
The `add_exception` tool writes exception values directly to your Elastic exception containers to ignore telemetry from verified safe sources. If a vulnerability scanner triggers a sudden wave of alerts, your agent can catch the noise and immediately whitelist the hostname to stop the spam. Using the built-in guardrails in the OpenAI Agents SDK, you can force the agent to run verification checks before running `list_exceptions` or modifying any bypass logic. This prevents your agent from accidentally blinding your SOC by whitelisting an unverified external IP or a suspicious process.
Audit and Update Rule Coverage Dynamically
The `get_prepackaged_rules_status` tool checks if your deployment is missing the latest threat models for Windows, Linux, or Cloud environments. Your agent runs this check to verify your security posture against fresh CVEs without requiring you to manually click through the Kibana UI. When gaps are found, the agent uses `update_rule` to activate dormant protections or adjust severity scores based on actual asset valuations. This MCP Server keeps your threat detection active and current while you monitor every single rule modification live on your OpenAI developer dashboard.
Set up Elastic Security 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 Elastic Security tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Elastic Security tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Elastic Security 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="Elastic Security Agent",
instructions="You have access to Elastic Security 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 Elastic Security. 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 Elastic Security 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 Elastic Security MCP today
We host it, we monitor it, we maintain it. You just paste one token.