@worldcoin/toolrouter
v0.1.3
Published
ToolRouter MCP adapter for AgentKit-first x402 tools.
Downloads
125
Readme
ToolRouter MCP
MCP adapter for ToolRouter. It exposes ToolRouter endpoints to MCP-capable agents and calls the ToolRouter API with your API key. Agents run this package with npx; they do not need a local ToolRouter repo checkout.
Create an account, verify World ID, and generate an API key at toolrouter.world.
Usage
TOOLROUTER_API_KEY=tr_... npx -y @worldcoin/toolrouterOptional:
TOOLROUTER_API_URL=https://toolrouter.worldMCP Client Config
Most stdio MCP clients can run the adapter with npx:
{
"mcpServers": {
"toolrouter": {
"command": "npx",
"args": ["-y", "@worldcoin/toolrouter"],
"env": {
"TOOLROUTER_API_URL": "https://toolrouter.world",
"TOOLROUTER_API_KEY": "tr_..."
}
}
}
}Claude Code:
claude mcp add --scope user \
-e TOOLROUTER_API_URL=https://toolrouter.world \
-e TOOLROUTER_API_KEY=tr_... \
-- toolrouter npx -y @worldcoin/toolrouterCodex:
codex mcp add \
--env TOOLROUTER_API_URL=https://toolrouter.world \
--env TOOLROUTER_API_KEY=tr_... \
-- toolrouter npx -y @worldcoin/toolrouterThe adapter does not load wallet secrets or provider API keys. It only calls ToolRouter's API:
GET /v1/endpointsGET /v1/categoriesPOST /v1/requestsGET /v1/requests/:idGET /v1/manus/tasks/:task_id/statusGET /v1/manus/tasks/:task_id/result
Exposed tools include:
toolrouter_list_endpointstoolrouter_list_categoriestoolrouter_recommend_endpointtoolrouter_call_endpointtoolrouter_searchtoolrouter_send_emailtoolrouter_browser_usemanus_research_startmanus_research_statusmanus_research_resulttoolrouter_get_requestexa_searchbrowserbase_session_create
Use toolrouter_search or exa_search for quick synchronous lookup. Use toolrouter_send_email to send email through the current recommended email endpoint. Use manus_research_start for deep research, then poll the MCP tools manus_research_status or manus_research_result with the returned task_id; those helper names are not ToolRouter endpoint IDs. Do not start another task for the same query unless the user explicitly asks for a fresh run.
