AgentDomains MCP for OpenAI Agents SDK
Connect OpenAI Agents SDK via MCPServerStreamableHttp or MCPServerStdio. Let Python and TypeScript agents claim domains and write DNS.
MCP tool flow: OpenAI Agents SDK sends JSON-RPC calls to mcp.agentdomains.co and receives a live HTTPS domain.
Add Config
Open Python: agents.mcp.MCPServerStreamableHttp / MCPServerStdio and paste the snippet below.
Reload Tools
Refresh MCP tools in OpenAI Agents SDK. Confirm 20 AgentDomains tools appear.
Run Prompt
Paste the test prompt below to check, claim, and route a live domain.
Python: agents.mcp.MCPServerStreamableHttp / MCPServerStdio
1. Install & Configure OpenAI Agents SDK
Choose hosted Streamable HTTP for zero local setup, or pick local stdio to reuse your Go CLI config.
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp
async with MCPServerStreamableHttp(
name="agentdomains",
params={
"url": "https://mcp.agentdomains.co",
"headers": {"Authorization": "Bearer adom_YOUR_KEY"},
},
) as mcp:
agent = Agent(
name="DeployAgent",
instructions="Claim hostnames and wire proxies via AgentDomains.",
mcp_servers=[mcp],
)
result = await Runner.run(agent, "Check if billing-demo is free on makes.fyi")
from agents.mcp import MCPServerStdio
async with MCPServerStdio(
name="agentdomains",
params={
"command": "npx",
"args": ["-y", "agentdomains-mcp"],
"env": {"AGENTDOMAINS_API_KEY": "adom_YOUR_KEY"},
},
) as mcp:
...
2. Tested First Prompt
Reload MCP tools in OpenAI Agents SDK. Run this prompt to check a name, claim it, and set routing.
Check if billing-demo is free on makes.fyi, claim it, and set_proxy to billing-demo.fly.dev.
3. OpenAI Agents SDK Setup Notes
- Always use MCPServerStreamableHttp (not MCPServerSse) — mcp.agentdomains.co is stateless Streamable HTTP and returns 405 on GET SSE streams.
- Pass cache_tools_list=True on long-running worker processes so every agent turn does not re-fetch tools/list.
- Read AGENTDOMAINS_API_KEY from os.environ rather than embedding it in agent source code.
4. Available MCP Tools (20 total)
OpenAI Agents SDK gets all 20 tools across account auth, domain claims, DNS records, and edge routing.
Account & Auth 5 tools
Domains & Stats 6 tools
DNS & ACME 4 tools
Edge Proxy & Forward 5 tools
Frequently asked questions
Does OpenAI Agents SDK work with Streamable HTTP or stdio?
OpenAI Agents SDK supports Streamable HTTP & stdio. Pick hosted Streamable HTTP when available for zero local Node setup, or run npx -y agentdomains-mcp for stdio.
Where does OpenAI Agents SDK store its MCP config?
Store it in Python: agents.mcp.MCPServerStreamableHttp / MCPServerStdio. Keep your adom_ API key in an env var and never commit it to Git.
How much does it cost to claim domains from OpenAI Agents SDK?
Start with a 30-day free trial for 10 names with no card. Pro costs $10/yr or $1/mo for up to 100 names.
Related MCP Clients
PydanticAI MCP Setup
Attach AgentDomains to PydanticAI via MCPServerStreamableHTTP so strongly typed Python agents can register and proxy subdomains.
Agent FrameworkLangChain MCP Setup
Load AgentDomains MCP tools into LangChain and LangGraph using MultiServerMCPClient over stateless Streamable HTTP or local stdio.
Multi-Agent FrameworkCrewAI MCP Setup
Equip CrewAI multi-agent crews with AgentDomains DNS, HTTPS proxy, and ACME DNS-01 tools via MCPServerAdapter.
TypeScript AI ToolkitVercel AI SDK MCP Setup
Use StreamableHTTPClientTransport in Vercel AI SDK to give Next.js and Node agents live DNS automation.
Claim your agent domain now
Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.