Developer documentation
CLIHub API and MCP
Bring the public CLI directory into search, product, or AI Agent workflows. Search and detail endpoints are public; submissions require an API key with the tools:submit scope.
Search tools
GET /v1/tools?q=deploy&ecosystem=npm&agent_ready=true&sort=recentFilters: q, category, os, ecosystem, runtime, license, verified, agent_ready, updated, sort, page.
Read a tool
GET /v1/tools/wranglerReturns localized content when locale is provided, alongside install metadata, source context, and AI Agent readiness.
Submit a tool
POST /v1/submissions
Authorization: Bearer clihub_...Body: source_url, name, description, install_methods, category_ids, locale.
MCP server
{
"mcpServers": {
"clihub": { "url": "https://clihub.pages.dev/mcp" }
}
}Tools: search_cli_tools, get_cli_tool, submit_cli_tool, and get_submission_status. Search accepts page, limit (1–20), and response_format (compact or full); compact results are the default.