Skip to main content
Glama
hekmon8
by hekmon8

mcphub_tools MCP-Server

Mit AIMCP-basierten MCP-Tools finden Sie alle gewünschten MCPs. Dieser Server ermöglicht die Suche im MCP-Hub nach verfügbaren MCPs.

Offenes Protokoll

Dieser Server implementiert das Model Context Protocol (MCP) . Er fungiert als MCP-Server, mit dem sich MCP-Clients (wie kompatible KI-Assistenten oder Entwicklungstools) verbinden können.

Related MCP server: Glama MCP Server Search

Einführung

mcphub_tools ist ein MCP-Server, der für die Interaktion mit dem MCP Hub entwickelt wurde. Seine Hauptfunktion besteht darin, ein Tool bereitzustellen, mit dem Benutzer anhand von Schlüsselwörtern nach im Hub registrierten MCPs (Model Context Protocols/Servers) suchen können.

Werkzeuge

Dieser Server stellt das folgende Tool bereit:

search_mcp_hub

  • Beschreibung: Sucht nach MCPs auf dem MCP-Hub.

  • Eingabeschema:

    {
      "type": "object",
      "properties": {
        "keywords": {
          "type": "string",
          "description": "Keywords to search for MCPs"
        }
      },
      "required": ["keywords"]
    }
  • Ausgabe: Gibt eine JSON-Zeichenfolge zurück, die die Suchergebnisse der MCP Hub-API enthält.

get_mcp_info

  • Beschreibung: Ruft detaillierte Informationen zu einem bestimmten MCP ab.

  • Eingabeschema:

    {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "MCP identifier (UUID)"
        }
      },
      "required": ["id"]
    }
  • Ausgabe: Gibt eine JSON-Zeichenfolge zurück, die die detaillierten Informationen zum angegebenen MCP enthält.

Implementierungsoptionen

MCP Hub unterstützt zwei verschiedene Möglichkeiten zur Implementierung von MCP-Servern:

1. Standardmäßiger stdio-basierter MCP-Server

Dies ist die traditionelle Implementierung, bei der der MCP-Server über Standard-Ein-/Ausgabe (stdio) mit Clients kommuniziert. Dieser Ansatz eignet sich ideal für eigenständige Befehlszeilentools, die in MCP-Clients wie Claude Desktop integriert werden können.

Die einfachste Möglichkeit, die stdio-basierte Implementierung zu verwenden, ist über unser veröffentlichtes Paket:

# Using npx (recommended for most users)
npx @aimcp/tools

# Using uvx (faster startup)
uvx @aimcp/tools

2. HTTP-basierter MCP-Server

MCP Hub bietet außerdem eine HTTP-basierte Implementierung, die es KI-Assistenten und anderen Tools ermöglicht, sich über HTTP mit dem MCP-Server zu verbinden. Dies ist in der API des MCP Hubs unter /api/open/v1/streamable implementiert.

Der HTTP-Endpunkt ist verfügbar unter:

https://mcp.aimcp.info/api/open/v1/streamable

Verwendung

Voraussetzungen

  • Node.js und npm (oder pnpm/yarn) für die stdio-basierte Implementierung installiert.

  • Ein API-Schlüssel vom MCP Hub ( https://www.aimcp.info ).

So erhalten Sie einen API-Schlüssel

  • Gehen Sie zu https://www.aimcp.info .

  • Registrieren oder anmelden.

  • Navigieren Sie zu Ihren Profil- oder Kontoeinstellungen.

  • Suchen Sie nach einer Option zum Generieren oder Abrufen Ihres API-Schlüssels.

  • Oder Sie können hier zugreifen, um einen API-Schlüssel zu generieren. HINWEIS: Der API-Schlüssel hat eine Ratenbegrenzung von 20 Anfragen pro Stunde.

Authentifizierung

Die MCP-API erfordert eine Authentifizierung mit einem gültigen API-Schlüssel. Dieser Schlüssel muss bereitgestellt werden über:

  1. Für stdio-basierte Implementierung: Die Umgebungsvariable MCP_HUB_API_KEY .

  2. Für die HTTP-basierte Implementierung: Der Authorization als Bearer-Token.

Authorization: Bearer YOUR_API_KEY

Integration mit KI-Assistenten und MCP-Clients

Claude Desktop-Konfiguration

So verwenden Sie MCP Hub mit Claude Desktop:

  1. Suchen Sie Ihre Claude Desktop-Konfigurationsdatei:

    • Windows: %APPDATA%\claude\config.json

    • macOS: ~/Library/Application Support/claude/config.json oder ~/.config/claude/config.json

    • Linux: ~/.config/claude/config.json

  2. Fügen Sie die folgende Konfiguration hinzu:

{
  "mcpServers": {
    "mcp-hub": {
      "command": "npx",
      "args": ["@aimcp/tools"],
      "environment": {
        "MCP_HUB_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
  1. Starten Sie Claude Desktop neu, um die Änderungen zu übernehmen.

  2. Sie können in Ihrer Konversation auf MCP Hub-Tools zugreifen, indem Sie „@mcp-hub“ eingeben.

Cline und andere CLI-Tools

Für befehlszeilenbasierte Tools wie Cline:

  1. Erstellen Sie in Ihrem Projektverzeichnis eine Konfigurationsdatei mit dem Namen servers.json :

{
  "servers": [
    {
      "name": "mcp-hub-tools",
      "command": ["npx", "@aimcp/tools"],
      "environment": {
        "MCP_HUB_API_KEY": "YOUR_API_KEY"
      }
    }
  ]
}
  1. Starten Sie das Tool mit Bezug auf diese Konfiguration:

cline --mcp-servers-config ./servers.json

Für Tools, die Remote-MCP-Server unterstützen

Einige neuere MCP-Clients unterstützen direkte HTTP-Verbindungen. Konfigurieren Sie sie mit:

{
  "mcpServers": {
    "mcp-hub-http": {
      "url": "https://mcp.aimcp.info/api/open/v1/streamable",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Für Tools mit dateibasierter Konfiguration (Cursor usw.)

  1. Erstellen Sie eine Konfigurationsdatei:

{
  "mcpServers": {
    "mcp-hub": {
      "command": "npx",
      "args": ["@aimcp/tools"],
      "environment": {
        "MCP_HUB_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
  1. Verweisen Sie in den Einstellungen Ihres Tools auf diese Datei oder starten Sie sie mit dem entsprechenden Konfigurationsparameter.

Manuelle Ausführung

Sie können den stdio-basierten Server auch manuell zum Testen ausführen (stellen Sie sicher, dass MCP_HUB_API_KEY in Ihrer Umgebung festgelegt ist):

export MCP_HUB_API_KEY="YOUR_API_KEY_HERE"
npx @aimcp/tools

API-Schnittstelle

Dieser Server interagiert mit dem folgenden MCP Hub-API-Endpunkt:

  • Endpunkt: GET https://www.aimcp.info/api/open/v1/search

  • Authentifizierung: Erfordert ein Bearer-Token im Authorization unter Verwendung des MCP_HUB_API_KEY .

  • Abfrageparameter: keywords (Zeichenfolge)

Verwenden der HTTP-basierten MCP-API

MCP Hub bietet einen HTTP-basierten MCP-Server unter /api/open/v1/streamable der das Model Context Protocol implementiert. Dadurch können KI-Assistenten und -Tools nach MCPs suchen und MCP-Informationen direkt abrufen.

Verbindungsschritte

  1. Stellen Sie zunächst eine Verbindung her, um eine Sitzungs-ID zu erhalten:

GET /api/open/v1/streamable
Authorization: Bearer YOUR_API_KEY

Antwort:

{
  "success": true,
  "sessionId": "194830ab-eb0b-4d17-a574-af96705276c2",
  "message": "Connection established. Use this sessionId for subsequent calls."
}
  1. Rufen Sie ein Tool mit der Sitzungs-ID auf:

POST /api/open/v1/streamable?sessionId=194830ab-eb0b-4d17-a574-af96705276c2
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY

{
  "jsonrpc": "2.0",
  "method": "callTool",
  "params": {
    "name": "search_mcp_hub",
    "arguments": {
      "keywords": "example"
    }
  },
  "id": "call-1"
}

Entwicklung und Bereitstellung

Entwicklung

  1. Abhängigkeiten installieren: pnpm install

  2. Build: pnpm run build (kompiliert TypeScript in JavaScript in build/ )

  3. Überwachungsmodus: pnpm run watch (kompiliert bei Änderungen automatisch neu)

  4. Testen mit Inspector: pnpm run inspector (führt den Server mit dem MCP Inspector-Tool aus)

Erstellen Sie Ihren eigenen stdio-basierten MCP-Server

Wenn Sie Ihren eigenen stdio-basierten MCP-Server erstellen möchten, führen Sie die folgenden Schritte aus:

  1. Richten Sie Ihr Projekt ein:

    mkdir my-mcp-server
    cd my-mcp-server
    npm init -y
    npm install @modelcontextprotocol/sdk
  2. Erstellen Sie Ihre Serverimplementierung:

// index.ts
import { Server } from '@modelcontextprotocol/sdk/server';
import { 
  CallToolRequestSchema, 
  ListToolsRequestSchema,
  McpError,
  ErrorCode
} from '@modelcontextprotocol/sdk/types';
import { StdioTransport } from '@modelcontextprotocol/sdk/transports/stdio';

// Create an MCP server instance
const server = new Server(
  {
    name: "my-mcp-server",
    version: "1.0.0"
  },
  {
    capabilities: {
      tools: {},
    }
  }
);

// Set up tool handlers
server.setRequestHandler(ListToolsRequestSchema, async () => ({
  tools: [
    {
      name: 'my_tool',
      description: 'Description of my tool',
      inputSchema: {
        type: 'object',
        properties: {
          param1: {
            type: 'string',
            description: 'Description of param1',
          },
        },
        required: ['param1'],
      },
    },
  ],
}));

server.setRequestHandler(CallToolRequestSchema, async (request) => {
  // Extract tool name and arguments
  const toolName = request.params.name;
  const args = request.params.arguments;
  
  if (toolName === 'my_tool') {
    // Validate arguments
    if (typeof args !== 'object' || args === null || typeof args.param1 !== 'string') {
      throw new McpError(
        ErrorCode.InvalidParams,
        'Invalid arguments. Requires "param1" (string).'
      );
    }
    
    try {
      // Implement your tool logic here
      const result = `Processed: ${args.param1}`;
      
      return {
        content: [
          {
            type: 'text',
            text: result,
          },
        ],
      };
    } catch (error) {
      return {
        content: [
          {
            type: 'text',
            text: `Error: ${error instanceof Error ? error.message : String(error)}`,
          },
        ],
        isError: true,
      };
    }
  } else {
    throw new McpError(
      ErrorCode.MethodNotFound,
      `Unknown tool: ${toolName}`
    );
  }
});

// Connect the server to stdin/stdout
const transport = new StdioTransport();
server.connect(transport).catch(console.error);
  1. Kompilieren und starten Sie Ihren Server:

    npx tsc
    node dist/index.js
  2. Testen Sie Ihren Server mit dem MCP Inspector-Tool:

    npx @modelcontextprotocol/inspector

Einsatz

  1. Stellen Sie sicher, dass der Server erstellt ist ( pnpm run build ).

  2. Das build -Verzeichnis enthält die erforderlichen JavaScript-Dateien.

  3. Der Server kann mit node build/index.js oder dem Befehl mcphub_tools ausgeführt werden, wenn das Paket entsprechend installiert ist (z. B. global oder verknüpft).

  4. Konfigurieren Sie Ihren MCP-Client/Manager so, dass er auf die ausführbare Datei des Servers verweist, und geben Sie die Umgebungsvariable MCP_HUB_API_KEY an.

Sie können Ihren MCP-Server auch auf npm veröffentlichen, damit andere ihn installieren und verwenden können.

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.
    49 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