How to Use the Benchmark Email MCP in OpenAI Agents SDK
Build production-ready email marketing agents with the OpenAI Agents SDK that manage Benchmark Email contacts, lists, and campaigns.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Benchmark Email MCP to OpenAI Agents SDK
Create your Vinkius account to connect Benchmark Email 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 List Management
This toolset lets your agent manage Benchmark Email contact lists directly. You can build agents that `create_contact_list` for new initiatives, `add_contact` records from other systems, and then `list_contacts` to confirm the additions. It's all done through structured calls, not screen scraping. Because you're using the OpenAI Agents SDK, every action is validated against the MCP server's schema before it runs. This prevents your agent from trying to add a contact with malformed data or creating a list with a duplicate name, giving you a safety net for production workflows.
Get Campaign and Report Data
Give your agent the ability to check on your Benchmark Email campaigns. It can `list_emails` to get an overview, then pull specific metrics using `get_email_details`. When you need performance data, the agent calls `list_reports` and `get_report_details` to fetch open rates and click-throughs. The OpenAI dashboard gives you a full trace of these actions. You can see exactly when your agent checked a report or listed campaigns, making it easy to debug or audit your marketing automation logic. This MCP server exposes the endpoints; the SDK provides the guardrails.
Use Email Templates with OpenAI Agents SDK
This tool lets your agent see all your existing Benchmark Email templates. By calling `list_templates`, an agent can present a user with a choice of approved designs before starting a new campaign workflow. This is perfect for multi-agent systems. One agent can handle user interaction and template selection, then hand off the chosen template ID and content to another specialized agent for campaign creation. The SDK's handoff mechanism makes this a clean, auditable process.
Set up Benchmark Email 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 Benchmark Email tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Benchmark Email tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Benchmark Email 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="Benchmark Email Agent",
instructions="You have access to Benchmark Email 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 Benchmark Email. 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 Benchmark Email 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 Benchmark Email MCP today
We host it, we monitor it, we maintain it. You just paste one token.