MCP HubMCP Hub

API Documentation

Integrate with MCP Hub using our REST API. Access data programmatically with your API key.

Authentication

Get your API key from [your account](/dashboard/api-keys) and use it to authenticate your requests.

View Authentication

Endpoints

Use our REST API endpoints to search and explore MCP data programmatically.

View Endpoints

Examples

Learn how to use our API with code examples and documentation.

See Examples

Cursor Integration

Use MCP Hub directly in Cursor IDE with our MCP server integration.

Setup Guide

Overview

Our API provides programmatic access to search and explore MCP data. You can use it to integrate MCP information into your applications.

Authentication

All API endpoints require an API key. You can obtain your API key from the API Keys page.

API Key Usage

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Rate Limits

The API has a rate limit of 20 requests per hour. If you exceed this limit, you'll receive a 401 Unauthorized response.

Search API

Endpoint

GET /api/open/v1/search

Search for MCPs based on keywords.

Parameters

ParameterTypeRequiredDescription
keywordsstringYesThe search terms to look for

Example Request

GET /api/open/v1/search?keywords=blockchain
Authorization: Bearer YOUR_API_KEY

Example Response

{
  "data": [
    {
      "name": "Blockchain Project",
      "brief": "A decentralized blockchain solution",
      "website_url": "https://example.com"
    }
  ],
  "count": 1
}

Error Responses

StatusDescription
400Missing required parameters
401Invalid API key or rate limit exceeded
500Server error

MCP API

MCP Hub provides REST API endpoints for searching and retrieving MCP information, as well as a Model Context Protocol (MCP) compatible server endpoint.

MCP Protocol Server

POST/GET /api/open/mcp

This endpoint provides a standard Model Context Protocol (MCP) server implementation following JSON-RPC 2.0 specification, supporting both HTTP POST and Server-Sent Events (SSE) for MCP search and detail retrieval functionality.

MCP Methods

MethodDescriptionParameters
initializeInitialize MCP connectionNone
tools/listList available toolsNone
tools/callCall search_mcp or get_mcp_detail toolsname (string): Tool name
arguments (object): Tool arguments

Example: Initialize Connection

POST /api/open/mcp
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{ "jsonrpc": "2.0", "id": 1, "method": "initialize" }

Example: Search MCPs

POST /api/open/mcp
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{ "jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": { "name": "search_mcp", "arguments": { "keywords": "blockchain", "limit": 10 } } }

Example Response

{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"success\": true, \"data\": [...], \"count\": 16}"
      }
    ]
  }
}

Example: Get MCP Details

POST /api/open/mcp
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{ "jsonrpc": "2.0", "id": 4, "method": "tools/call", "params": { "name": "get_mcp_detail", "arguments": { "mcp_id": "your-mcp-uuid" } } }

SSE Connection

GET /api/open/mcp
Authorization: Bearer YOUR_API_KEY
Accept: text/event-stream

Cursor IDE Integration

MCP Hub can be easily integrated with Cursor IDE through its MCP server configuration. This allows you to search and explore MCPs directly from within your development environment.

Configuration Setup

Add the following configuration to your Cursor MCP settings file (usually located at ~/.cursor/mcp.json):

{
  "mcpServers": {
    "mcp-hub": {
      "url": "https://www.aimcp.info/api/open/mcp",
      "transport": "http",
      "headers": {
        "Authorization": "YOUR_API_KEY_HERE",
        "Content-Type": "application/json"
      },
      "capabilities": {
        "tools": true
      }
    }
  }
}

Usage in Cursor

Once configured, you can use the MCP Hub tools directly in your Cursor chat sessions:

Search for MCPs

Ask Cursor to search for specific MCPs:

"Search for blockchain-related MCPs"

"Find MCPs for database integration"

"Show me popular MCPs for web development"

Get MCP Details

Request detailed information about specific MCPs:

"Get details for MCP with UUID: abc123..."

"Show me more information about the GitHub MCP"

Available Tools

The MCP Hub integration provides the following tools in Cursor:

ToolDescriptionParameters
search_mcpSearch for MCPs by keywordskeywords (string): Search terms
limit (number, optional): Max results (default: 50)
get_mcp_detailGet detailed information about a specific MCPmcp_id (string): UUID of the MCP

Troubleshooting

Connection Issues

  • Verify your API key is correct and has not expired
  • Check that the URL is accessible from your network
  • Ensure the MCP configuration file syntax is valid JSON

Rate Limiting

  • API keys are limited to 20 requests per hour
  • If you hit the rate limit, wait for the hour to reset