AgentDomains MCP for PydanticAI
Attach AgentDomains to PydanticAI via MCPServerStreamableHTTP so strongly typed Python agents can register and proxy subdomains.
MCP tool flow: PydanticAI sends JSON-RPC calls to mcp.agentdomains.co and receives a live HTTPS domain.
Add Config
Open Python: pydantic_ai.mcp (MCPServerStreamableHTTP / MCPServerStdio) and paste the snippet below.
Reload Tools
Refresh MCP tools in PydanticAI. Confirm 20 AgentDomains tools appear.
Run Prompt
Paste the test prompt below to check, claim, and route a live domain.
Python: pydantic_ai.mcp (MCPServerStreamableHTTP / MCPServerStdio)
1. Install & Configure PydanticAI
Choose hosted Streamable HTTP for zero local setup, or pick local stdio to reuse your Go CLI config.
from pydantic_ai import Agent
from pydantic_ai.mcp import MCPServerStreamableHTTP
server = MCPServerStreamableHTTP(
"https://mcp.agentdomains.co",
headers={"Authorization": "Bearer adom_YOUR_KEY"},
)
agent = Agent("openai:gpt-4.1", toolsets=[server])
async with agent:
res = await agent.run("Check if typed-api is free on makes.fyi")
from pydantic_ai.mcp import MCPServerStdio
server = MCPServerStdio(
"npx",
args=["-y", "agentdomains-mcp"],
env={"AGENTDOMAINS_API_KEY": "adom_YOUR_KEY"},
)
2. Tested First Prompt
Reload MCP tools in PydanticAI. Run this prompt to check a name, claim it, and set routing.
Verify typed-api is available on makes.fyi, claim it, and return the live FQDN in a structured Pydantic model.
3. PydanticAI Setup Notes
- Use MCPServerStreamableHTTP (note uppercase HTTP in PydanticAI) instead of MCPServerHTTP/SSE.
- Always run inside
async with agent:(orasync with server:) so the MCP session initializes cleanly. - Combine with PydanticAI output_type to enforce strict typed return values containing fqdn and trial_ends_at.
4. Available MCP Tools (20 total)
PydanticAI 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 PydanticAI work with Streamable HTTP or stdio?
PydanticAI 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 PydanticAI store its MCP config?
Store it in Python: pydantic_ai.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 PydanticAI?
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
OpenAI Agents SDK MCP Setup
Connect OpenAI Agents SDK via MCPServerStreamableHttp or MCPServerStdio. Let Python and TypeScript agents claim domains and write DNS.
LangChain MCP Setup
Load AgentDomains MCP tools into LangChain and LangGraph using MultiServerMCPClient over stateless Streamable HTTP or local stdio.
Data & RAG Agent FrameworkLlamaIndex MCP Setup
Expose AgentDomains tools inside LlamaIndex agents and workflows with BasicMCPClient and McpToolSpec.
Lightweight Python AgentHugging Face smolagents MCP Setup
Connect Hugging Face smolagents CodeAgent and ToolCallingAgent to AgentDomains over Streamable HTTP or stdio.
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.