MCPHub API
Discover, search, and integrate MCP servers, skills, and stacks into your own tooling, CLIs, and AI workflows.
https://mcphub.ioOverview
Format
JSON (application/json)
Version
1.0.0
OpenAPI
3.1.0
Rate limits
POST /api/servers5 req / hourPOST /api/skills10 req / hourPOST /api/servers/{slug}/reviews10 req / hourRate-limited responses return HTTP 429 with a Retry-After header.
Authentication
Most read endpoints are public. Endpoints marked ๐ require a GitHub OAuth session โ sign in at /auth/signin and the session cookie is set automatically.
Session cookie name
next-auth.session-tokenServers
/api/serversReturns MCP servers with optional filtering and full-text search.
Parameters
qstringFull-text search (supports quoted phrases and -term exclusions)
tagstringFilter by tag
clientenumclaude-code ยท cursor ยท continue ยท other
limitintegerMax results. Default 50, max 100.
Response
{
"servers": [
{
"id": "clx...",
"slug": "github-mcp",
"name": "GitHub MCP",
"description": "Interact with GitHub via MCP",
"stars": 1420,
"downloadCount": 3800,
"avgRating": 4.7,
"verified": true,
"tags": ["github", "git"]
}
],
"total": 42
}/api/servers/{slug}Returns a single MCP server by its slug.
Parameters
slugrequiredstringServer slug, e.g. github-mcp
Response
{
"server": {
"slug": "github-mcp",
"name": "GitHub MCP",
"installCmd": "npx -y @modelcontextprotocol/server-github",
"transport": "stdio",
"license": "MIT",
"envVars": [
{ "name": "GITHUB_TOKEN", "required": true }
]
}
}/api/serversSubmits a new MCP server to the registry. Requires GitHub authentication. Rate-limited to 5 per hour.
Request body
namerequiredstring2โ60 characters
descriptionrequiredstring20โ280 characters
repoUrlrequireduriGitHub repository URL
tagsrequiredstring[]1โ8 tags
toolsrequiredstring[]MCP tools exposed by this server
clientsrequiredstring[]claude-code ยท cursor ยท continue
npmPackagestringnpm package name
installCmdstringInstall command, e.g. npx -y pkg
transportenumstdio (default) ยท sse ยท http
licensestringSPDX identifier, default MIT
Response
{
"server": {
"slug": "my-mcp-server",
"name": "My MCP Server",
"createdAt": "2025-01-15T10:00:00Z"
}
}/api/servers/{slug}/installIncrements download and install counters. Called automatically by the CLI on successful install.
Parameters
slugrequiredstringServer slug
Response
{ "ok": true }Reviews
/api/servers/{slug}/reviewsReturns all reviews for a server, ordered newest first.
Parameters
slugrequiredstringServer slug
Response
{
"reviews": [
{
"id": "clx...",
"rating": 5,
"comment": "Works great with Claude Code",
"author": "diegoalvarezf",
"createdAt": "2025-01-10T08:00:00Z"
}
]
}/api/servers/{slug}/reviewsSubmits a review. Rate-limited to 10 per hour. Updates the server's cached avgRating and reviewCount.
Parameters
slugrequiredstringServer slug
Request body
ratingrequiredinteger1โ5
authorrequiredstringMax 80 characters
commentstringOptional. Max 1000 characters.
Response
{
"review": {
"id": "clx...",
"rating": 5,
"author": "diegoalvarezf",
"createdAt": "2025-01-15T10:00:00Z"
}
}Skills & Agents
/api/skillsReturns paginated published skills (prompts and agents), 24 per page.
Parameters
qstringSearch query
typeenumprompt ยท agent
tagstringFilter by tag
pageintegerPage number, 1-based. Default 1.
Response
{
"skills": [
{
"slug": "review-pr",
"name": "Review PR",
"type": "prompt",
"installCount": 840,
"stars": 120
}
],
"total": 38,
"pages": 2
}/api/skills/{slug}Returns a single skill by slug, including the full Markdown content. Increments install counters.
Parameters
slugrequiredstringSkill slug, e.g. review-pr
Response
{
"slug": "review-pr",
"name": "Review PR",
"type": "prompt",
"content": "Review the current changes...",
"tags": ["code-review", "git"]
}/api/skillsCreates a new skill or agent. Requires GitHub auth. Rate-limited to 10 per hour.
Request body
slugrequiredstringURL-safe identifier, used as slash command
namerequiredstringDisplay name
descriptionrequiredstringShort description
contentrequiredstringMarkdown prompt or system prompt
typeenumprompt (default) ยท agent
tagsstring[]Up to 8 tags
repoUrluriSource repository
publishedbooleanVisible in registry. Default false.
Response
{
"slug": "review-pr",
"name": "Review PR",
"published": true
}Stacks
/api/stacksReturns all public community stacks with their items.
Response
[
{
"slug": "fullstack-dev",
"name": "Full-stack Dev",
"icon": "โก",
"public": true,
"createdBy": "diegoalvarezf",
"items": [
{ "type": "server", "itemSlug": "github-mcp", "order": 0 }
]
}
]/api/stacksCreates a new stack. Requires GitHub auth.
Request body
namerequiredstringStack name
descriptionstringOptional description
iconstringEmoji icon. Default ๐ฆ
publicbooleanVisible to everyone. Default false.
Response
{
"slug": "my-stack",
"name": "My Stack",
"createdAt": "2025-01-15T10:00:00Z"
}/api/stacks/{slug}/itemsAdds a server, skill, or agent to a stack. Owner only.
Parameters
slugrequiredstringStack slug
Request body
typerequiredenumserver ยท skill ยท agent
itemSlugrequiredstringSlug of the item to add
Response
{ "ok": true }/api/stacks/{slug}/itemsRemoves an item from a stack. Owner only.
Parameters
slugrequiredstringStack slug
Request body
itemSlugrequiredstringSlug of the item to remove
Response
{ "ok": true }