AgentDomains MCP for LlamaIndex
Expose AgentDomains tools inside LlamaIndex agents and workflows with BasicMCPClient and McpToolSpec.
MCP tool flow: LlamaIndex sends JSON-RPC calls to mcp.agentdomains.co and receives a live HTTPS domain.
Add Config
Open Python: llama_index.tools.mcp (BasicMCPClient + McpToolSpec) and paste the snippet below.
Reload Tools
Refresh MCP tools in LlamaIndex. Confirm 20 AgentDomains tools appear.
Run Prompt
Paste the test prompt below to check, claim, and route a live domain.
Python: llama_index.tools.mcp (BasicMCPClient + McpToolSpec)
1. Install & Configure LlamaIndex
Choose hosted Streamable HTTP for zero local setup, or pick local stdio to reuse your Go CLI config.
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec
client = BasicMCPClient(
"https://mcp.agentdomains.co",
headers={"Authorization": "Bearer adom_YOUR_KEY"},
)
tool_spec = McpToolSpec(client=client)
tools = await tool_spec.to_tool_list_async()
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec
client = BasicMCPClient("npx", args=["-y", "agentdomains-mcp"])
tool_spec = McpToolSpec(client=client)
tools = await tool_spec.to_tool_list_async()
2. Tested First Prompt
Reload MCP tools in LlamaIndex. Run this prompt to check a name, claim it, and set routing.
Claim docs-rag on makes.fyi and proxy it to our FastAPI RAG endpoint on Railway.
3. LlamaIndex Setup Notes
- Install llama-index-tools-mcp >= 0.2 to ensure Streamable HTTP URL auto-detection works without SSE fallback errors.
- Pass allowed_tools=["check_availability","claim_domain","set_proxy"] into McpToolSpec to restrict write scope.
- Use to_tool_list_async() inside async FastAPI or workflow loops rather than the blocking sync helper.
4. Available MCP Tools (20 total)
LlamaIndex 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 LlamaIndex work with Streamable HTTP or stdio?
LlamaIndex 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 LlamaIndex store its MCP config?
Store it in Python: llama_index.tools.mcp (BasicMCPClient + McpToolSpec). Keep your adom_ API key in an env var and never commit it to Git.
How much does it cost to claim domains from LlamaIndex?
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
LangChain MCP Setup
Load AgentDomains MCP tools into LangChain and LangGraph using MultiServerMCPClient over stateless Streamable HTTP or local stdio.
AI Pipeline FrameworkHaystack (deepset) MCP Setup
Attach AgentDomains to deepset Haystack pipelines via MCPToolset and StreamableHttpServerInfo.
Typed Python Agent FrameworkPydanticAI MCP Setup
Attach AgentDomains to PydanticAI via MCPServerStreamableHTTP so strongly typed Python agents can register and proxy subdomains.
Python / TS Agent FrameworkOpenAI Agents SDK MCP Setup
Connect OpenAI Agents SDK via MCPServerStreamableHttp or MCPServerStdio. Let Python and TypeScript agents claim domains and write DNS.
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.