Search API
AgentHub exposes a JSON search API for websites, scripts, and AI agents to query the catalog programmatically.
Endpoint
GET /api/searchQuery parameters
- q — keyword (full-text search)
- type — resource type: mcp-server, skill
- origin — source: official-mcp-registry, mcp-cn, clawhub, skillsmp, github, github-cn
- transport — MCP transport: stdio, streamable-http, sse
- tag — category tag ID (see search page filters)
- limit — page size, default 20, max 100
- offset — pagination offset
Example
https://myagenthub.cn/api/search?q=postgres&type=mcp-server&limit=5Machine-readable site guide: /llms.txt
Unified Manifest JSON Schema: /schema/manifest.schema.json
Listing badge
Any listed resource can render an SVG badge you can drop on your site or GitHub README; it links back to that resource's detail page.
GET /badge/{package-id} // e.g. /badge/owner/repo — append ?lang=en for English/badge/io.globalgov/mcp?lang=en
Badges update automatically with the resource name and listing state; removed resources return 404, so take the snippet down. Every detail page also exposes copy-ready HTML and Markdown snippets near the bottom.