How to Use the Adyen MCP in OpenAI Agents SDK
Build production-grade payment agents that safely manage Adyen refunds and merchant accounts using OpenAI Agents SDK.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Adyen MCP to OpenAI Agents SDK
Create your Vinkius account to connect Adyen 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.
Safe refunds with OpenAI Agents SDK guardrails
Your OpenAI Agents SDK setup triggers Adyen refunds using `refund_payment`, but moving money requires strict boundaries. By hooking this MCP Server up to your agent, you let it execute the refund only after validating the original 16-digit PSP reference against your system's guardrails. The OpenAI Agents SDK agent checks the transaction history, verifies the amount, and fires the Adyen refund without human intervention. Because OpenAI Agents SDK handles agent-to-agent handoffs, a triage agent can identify an Adyen refund request and pass it to a specialized payment agent with zero friction.
Automated regional discovery and account audits
Managing multiple global regions in Adyen usually means running `list_merchants` through your OpenAI Agents SDK agent to map your entire company profile across US and EU regions. This MCP Server lets your OpenAI Agents SDK agent scan active profiles and locate specific merchant IDs in seconds. Once your OpenAI Agents SDK agent gets the active accounts, it calls `get_merchant_details` to verify the technical configuration of each endpoint. You can track this entire discovery process directly in your OpenAI developer dashboard to ensure no unauthorized Adyen configurations slip through.
Deep payment metadata inspection
When an Adyen transaction fails, your OpenAI Agents SDK agent runs `get_payment_details` to inspect the complete technical authorization and capture metadata for any specific PSP reference. This tool retrieves raw transaction payloads instantly to diagnose payment bottlenecks. This gives your OpenAI Agents SDK agent the exact raw data needed to decide whether to trigger an Adyen refund or flag the account. Since you can cache the tool list using `cacheToolsList=True` in OpenAI Agents SDK, your production agents inspect payments with minimal latency.
Set up Adyen 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 Adyen tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Adyen tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Adyen 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="Adyen Agent",
instructions="You have access to Adyen 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 Adyen. 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 Adyen 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 Adyen MCP today
We host it, we monitor it, we maintain it. You just paste one token.