Skip to main content
Glama
hekmon8
by hekmon8

MCP Hub Tools - HTTP MCP Server Documentation

This is the documentation and configuration repository for MCP Hub's HTTP-based MCP (Model Context Protocol) server. The server allows searching and discovering MCPs through a standardized HTTP interface.

Overview

MCP Hub implements Model Context Protocol (MCP) HTTP endpoints within a Next.js application, providing a modern and accessible way for AI assistants and development tools to discover and interact with MCPs from MCP Hub.

Related MCP server: Glama MCP Server Search

Protocol Support

⚠️ Important Change: This server only supports HTTP-based MCP connections. The traditional stdio-based implementation has been deprecated in favor of the more accessible and reliable HTTP interface.

Introduction

mcp-hub-tools provides documentation and configuration for interacting with MCP Hub. The server offers standardized JSON-RPC 2.0 endpoints for searching MCPs and retrieving detailed information about registered Model Context Protocols.

Server Implementation Location: The HTTP MCP server is actually implemented in MCP Hub's Next.js application at /nextjs/app/api/open/mcp/route.ts.

Available Tools

The HTTP MCP server provides the following tools via JSON-RPC 2.0:

search_mcp

  • Description: Search for MCPs in the MCP Hub database using keywords. Returns a list of matching MCPs with basic information.

  • Input Schema:

    {
      "type": "object",
      "properties": {
        "keywords": {
          "type": "string",
          "description": "Keywords to search for in MCP names, descriptions, and metadata"
        },
        "limit": {
          "type": "number",
          "description": "Maximum number of results to return (default: 50)",
          "default": 50
        }
      },
      "required": ["keywords"]
    }
  • Output: Returns search results with basic MCP information including:

    • uuid: Unique identifier for the MCP

    • name: MCP name

    • brief: Short description

    • clicks: Usage statistics

    • count: Total number of results found

    • keywords: Search terms used

get_mcp_detail

  • Description: Get detailed information about a specific MCP using its UUID.

  • Input Schema:

    {
      "type": "object",
      "properties": {
        "mcp_id": {
          "type": "string",
          "description": "The UUID of the MCP to retrieve details for"
        }
      },
      "required": ["mcp_id"]
    }
  • Output: Returns comprehensive MCP information including:

    • id: Internal database ID

    • uuid: Unique identifier

    • name: MCP name

    • brief: Description

    • website_url: Official website

    • author_name: Creator information

    • created_at / updated_at: Timestamps

    • is_recommended / is_official: Status flags

    • clicks: Usage statistics

    • tags: Associated categories

    • metadata: Additional information

    • mcp_avatar_url / user_avatar_url: Profile images

Example Tool Responses

search_mcp Response Example

{
  "success": true,
  "data": [
    {
      "uuid": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Blockchain MCP",
      "brief": "A Model Context Protocol for blockchain data analysis",
      "clicks": 142
    }
  ],
  "count": 1,
  "total_results": 1,
  "keywords": "blockchain"
}

get_mcp_detail Response Example

{
  "success": true,
  "data": {
    "id": 123,
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Blockchain MCP",
    "brief": "A comprehensive Model Context Protocol for blockchain data analysis",
    "website_url": "https://github.com/example/blockchain-mcp",
    "author_name": "Example Developer",
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-03-20T14:45:00Z",
    "is_recommended": true,
    "is_official": false,
    "clicks": 142,
    "tags": ["blockchain", "crypto", "data-analysis"],
    "metadata": {
      "version": "1.2.0",
      "license": "MIT"
    },
    "mcp_avatar_url": "https://example.com/avatar.png",
    "user_avatar_url": "https://example.com/user.png"
  }
}

HTTP-based MCP Server

MCP Hub provides a modern HTTP-based MCP server implementation within its Next.js application that offers superior reliability and accessibility compared to traditional stdio-based approaches. The server implements the Model Context Protocol using JSON-RPC 2.0 over HTTP.

Server Endpoint

Production URL: https://www.aimcp.info/api/open/mcp

Supported Transports

  • HTTP POST: Standard JSON-RPC 2.0 requests

  • Server-Sent Events (SSE): Real-time streaming connection for better client integration

Key Features

  • JSON-RPC 2.0 Compliance: Full compatibility with MCP protocol specification

  • Dual Transport Support: HTTP POST and SSE for different client needs

  • API Key Authentication: Secure access control

  • Rate Limiting: Built-in protection against abuse

  • CORS Support: Cross-origin requests enabled

  • Error Handling: Comprehensive error responses

Usage

Prerequisites

How to get an API key

  1. Visit https://www.aimcp.info

  2. Sign up or log in to your account

  3. Navigate to API Keys page

  4. Generate a new API key for your application

Note: API keys have a rate limit of 20 requests per hour.

Authentication

All requests to the HTTP MCP server require authentication using a Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_KEY

MCP Client Configuration

Modern MCP clients can connect directly to the HTTP server:

{
  "mcpServers": {
    "mcp-hub": {
      "url": "https://www.aimcp.info/api/open/mcp",
      "transport": "sse",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Simplified Configuration

For clients supporting simplified configuration:

{
  "mcpServers": {
    "mcp-hub": {
      "url": "https://www.aimcp.info/api/open/mcp",
      "apiKey": "YOUR_API_KEY"
    }
  }
}

Cursor IDE Configuration

For Cursor IDE, add to your MCP configuration:

{
  "mcpServers": {
    "mcp-hub": {
      "url": "https://www.aimcp.info/api/open/mcp",
      "transport": "sse",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Testing the Connection

You can test the HTTP MCP server using curl:

# Initialize connection
curl -X POST https://www.aimcp.info/api/open/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "initialize"}'

# List available tools
curl -X POST https://www.aimcp.info/api/open/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "id": 2, "method": "tools/list"}'

# Search for MCPs
curl -X POST https://www.aimcp.info/api/open/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": {"name": "search_mcp", "arguments": {"keywords": "blockchain", "limit": 5}}}'

MCP Protocol Implementation

Supported Methods

The HTTP MCP server implements the following JSON-RPC 2.0 methods:

  • initialize: Establish connection and get server capabilities

  • tools/list: Retrieve available tools

  • tools/call: Execute specific tools with arguments

Response Format

All responses follow the JSON-RPC 2.0 specification:

{
  "jsonrpc": "2.0",
  "id": "request_id",
  "result": {
    // Response data
  }
}

Error Handling

Errors are returned in standard JSON-RPC 2.0 format:

{
  "jsonrpc": "2.0",
  "id": "request_id", 
  "error": {
    "code": -32603,
    "message": "Error description"
  }
}

Server Information

Protocol Specification

  • Protocol Version: 2024-11-05

  • Server Name: mcp-hub-search

  • Version: 1.0.0

  • Capabilities: Tools enabled with change notifications

Rate Limits

  • API Requests: 20 requests per hour per API key

CORS Support

The server supports cross-origin requests with the following headers:

  • Access-Control-Allow-Origin: *

  • Access-Control-Allow-Methods: GET, POST, OPTIONS

  • Access-Control-Allow-Headers: Content-Type, Authorization, x-api-key

Troubleshooting

Common Issues

  1. "0 tools enabled": Ensure your MCP client properly handles the initialize response and capabilities.tools.listChanged flag.

  2. Authentication errors: Verify your API key is valid and included in the Authorization header.

  3. Connection timeouts: Verify that the MCP Hub server at https://www.aimcp.info is accessible.

  4. CORS errors: Ensure your client includes proper headers and handles preflight OPTIONS requests.

Debug Mode

For debugging, you can inspect the raw HTTP requests and responses using browser developer tools or command-line tools like curl.

Migration from stdio-based Implementation

Important: The stdio-based implementation has been deprecated. To migrate:

  1. Update your MCP client configuration to use HTTP endpoints

  2. Replace command-based configurations with URL-based ones

  3. Update authentication from environment variables to HTTP headers

  4. Test the new connection using the provided curl examples

Server Architecture

The HTTP MCP server is integrated into MCP Hub's Next.js application:

Contributing

This HTTP MCP server is part of the MCP Hub project. For issues or contributions, please visit the main repository.

License

MIT License

Available Tools

1 tool
search_mcp_hubC

Search for MCPs on the MCP Hub

ParametersJSON Schema
NameRequiredDescriptionDefault
keywordsYesKeywords to search for MCPs

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool's function but doesn't describe how it behaves: no information on search scope (e.g., partial/full matches), result format, pagination, rate limits, or error handling. This leaves significant gaps for a search operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero wasted words. It's appropriately sized for a simple search tool and front-loads the core purpose immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a search tool with no annotations and no output schema, the description is incomplete. It doesn't explain what the search returns (e.g., list of MCPs with details), how results are structured, or any behavioral traits like sorting or filtering. This leaves the agent guessing about the tool's full context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the 'keywords' parameter fully documented in the schema. The description adds no additional meaning beyond what the schema provides, such as search syntax examples or keyword formatting rules, so it meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Search for MCPs') and the target resource ('on the MCP Hub'), providing a specific verb+resource combination. However, with no sibling tools mentioned, there's no opportunity to differentiate from alternatives, preventing a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus other methods or tools. It doesn't mention prerequisites, context for searching, or any limitations on its applicability, leaving the agent with minimal usage direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.0
    • First observedsearch_mcp_hub

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools, as there are no other tools to confuse it with. The tool's purpose is clearly defined and distinct by default.

Naming Consistency5/5

The single tool name follows a consistent verb_noun pattern (search_mcp_hub), and with only one tool, there is no inconsistency to evaluate. The naming is clear and predictable.

Tool Count2/5

One tool is too few for a server named 'MCP Hub Tools', which suggests a broader scope for managing or interacting with MCPs on the hub. A single search tool feels thin and incomplete for this apparent purpose.

Completeness2/5

The tool surface is severely incomplete for the inferred domain of MCP hub management. With only a search tool, there are obvious gaps such as installing, listing, updating, or removing MCPs, which are likely needed for full functionality.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    An intelligent server that helps discover and research MCP servers using the Exa AI search engine, enabling users to find appropriate Model Context Protocol servers for specific requirements.
    3
    -
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server for searching and exploring MCP servers from the Glama MCP directory. This server provides tools to search for MCP servers, get detailed information about specific servers, and explore available server attributes using the Glama MCP API.
    3
    3
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables searching and retrieving detailed information about MCP servers from the official MCP registry. Provides tools to list servers with filtering options and get comprehensive details about specific servers.
    26 npm
    3
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    An MCP server designed for interacting with the Model Context Protocol Registry API to discover and retrieve information about available MCP servers. It provides tools to search, list, and view detailed configurations and version history for servers within the registry.
    4
    MIT