AgentDomains MCP for Hugging Face smolagents
Connect Hugging Face smolagents CodeAgent and ToolCallingAgent to AgentDomains over Streamable HTTP or stdio.
MCP tool flow: Hugging Face smolagents sends JSON-RPC calls to mcp.agentdomains.co and receives a live HTTPS domain.
Add Config
Open Python: smolagents.MCPClient and paste the snippet below.
Reload Tools
Refresh MCP tools in Hugging Face smolagents. Confirm 20 AgentDomains tools appear.
Run Prompt
Paste the test prompt below to check, claim, and route a live domain.
Python: smolagents.MCPClient
1. Install & Configure Hugging Face smolagents
Choose hosted Streamable HTTP for zero local setup, or pick local stdio to reuse your Go CLI config.
from smolagents import CodeAgent, MCPClient, InferenceClientModel
server_params = {
"url": "https://mcp.agentdomains.co",
"transport": "streamable-http",
"headers": {"Authorization": "Bearer adom_YOUR_KEY"},
}
with MCPClient(server_params) as tools:
agent = CodeAgent(tools=tools, model=InferenceClientModel())
agent.run("Check if hf-demo is free on makes.fyi and claim it")
from mcp import StdioServerParameters
from smolagents import MCPClient
params = StdioServerParameters(
command="npx",
args=["-y", "agentdomains-mcp"],
env={"AGENTDOMAINS_API_KEY": "adom_YOUR_KEY"},
)
with MCPClient(params) as tools:
...
2. Tested First Prompt
Reload MCP tools in Hugging Face smolagents. Run this prompt to check a name, claim it, and set routing.
Check if hf-demo is available on makes.fyi, claim it, and forward it to our Hugging Face Space URL.
3. Hugging Face smolagents Setup Notes
- Install
pip install "smolagents[mcp]"so the MCPClient helper and mcp SDK are available. - CodeAgent runs Python tool calls directly. Limit destructive tools unless you approve every step.
- Use transport="streamable-http" so smolagents talks cleanly to mcp.agentdomains.co.
4. Available MCP Tools (20 total)
Hugging Face smolagents 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 Hugging Face smolagents work with Streamable HTTP or stdio?
Hugging Face smolagents 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 Hugging Face smolagents store its MCP config?
Store it in Python: smolagents.MCPClient. Keep your adom_ API key in an env var and never commit it to Git.
How much does it cost to claim domains from Hugging Face smolagents?
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.
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.
CrewAI MCP Setup
Equip CrewAI multi-agent crews with AgentDomains DNS, HTTPS proxy, and ACME DNS-01 tools via MCPServerAdapter.
AI Pipeline FrameworkHaystack (deepset) MCP Setup
Attach AgentDomains to deepset Haystack pipelines via MCPToolset and StreamableHttpServerInfo.
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.