Skip to main content
Glama
hekmon8
by hekmon8

mcphub_tools MCP-сервер

Инструменты mcp, работающие на aimcp, найдите mcps, что хотите. Этот сервер позволяет искать MCP Hub для доступных MCP.

Открытый протокол

Этот сервер реализует протокол контекста модели (MCP) . Он действует как сервер MCP, к которому могут подключаться клиенты MCP (например, совместимые помощники ИИ или инструменты разработки).

Related MCP server: Glama MCP Server Search

Введение

mcphub_tools — это сервер MCP, предназначенный для взаимодействия с MCP Hub . Его основная функция — предоставить инструмент, позволяющий пользователям искать MCP (Model Context Protocols/Servers), зарегистрированные на концентраторе, на основе ключевых слов.

Инструменты

Этот сервер предоставляет следующий инструмент:

search_mcp_hub

  • Описание: Поиск MCP в MCP Hub.

  • Схема ввода:

    {
      "type": "object",
      "properties": {
        "keywords": {
          "type": "string",
          "description": "Keywords to search for MCPs"
        }
      },
      "required": ["keywords"]
    }
  • Вывод: возвращает строку JSON, содержащую результаты поиска из API MCP Hub.

get_mcp_info

  • Описание: Получает подробную информацию о конкретном MCP.

  • Схема ввода:

    {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "MCP identifier (UUID)"
        }
      },
      "required": ["id"]
    }
  • Вывод: возвращает строку JSON, содержащую подробную информацию об указанном MCP.

Варианты реализации

MCP Hub поддерживает два различных способа реализации MCP-серверов:

1. Стандартный сервер MCP на базе stdio

Это традиционная реализация, в которой сервер MCP взаимодействует с клиентами через стандартный ввод/вывод (stdio). Этот подход идеально подходит для автономных инструментов командной строки, которые могут быть интегрированы с клиентами MCP, такими как Claude Desktop.

Самый простой способ использовать реализацию на основе stdio — через наш опубликованный пакет:

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

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

2. MCP-сервер на базе HTTP

MCP Hub также предоставляет реализацию на основе HTTP, которая позволяет помощникам AI и другим инструментам подключаться к серверу MCP по HTTP. Это реализовано в API MCP Hub в /api/open/v1/streamable .

Конечная точка HTTP доступна по адресу:

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

Использование

Предпосылки

  • Для реализации на основе stdio установлены Node.js и npm (или pnpm/yarn).

  • API-ключ от MCP Hub ( https://www.aimcp.info ).

Как получить API-ключ

  • Перейдите по ссылке https://www.aimcp.info .

  • Зарегистрируйтесь или войдите в систему.

  • Перейдите в свой профиль или настройки учетной записи.

  • Найдите возможность сгенерировать или получить свой ключ API.

  • Или вы можете зайти сюда , чтобы сгенерировать ключ API. ПРИМЕЧАНИЕ: Ключ API имеет ограничение по частоте запросов — 20 в час.

Аутентификация

API MCP требует аутентификации с действительным ключом API. Этот ключ должен быть предоставлен через:

  1. Для реализации на основе stdio: переменная среды MCP_HUB_API_KEY .

  2. Для реализации на основе HTTP: заголовок Authorization как токен носителя.

Authorization: Bearer YOUR_API_KEY

Интеграция с помощниками на основе искусственного интеллекта и клиентами MCP

Конфигурация рабочего стола Клода

Чтобы использовать MCP Hub с Claude Desktop:

  1. Найдите файл конфигурации Claude Desktop:

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

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

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

  2. Добавьте следующую конфигурацию:

{
  "mcpServers": {
    "mcp-hub": {
      "command": "npx",
      "args": ["@aimcp/tools"],
      "environment": {
        "MCP_HUB_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
  1. Перезапустите Claude Desktop, чтобы изменения вступили в силу.

  2. В своем разговоре вы можете получить доступ к инструментам MCP Hub, набрав «@mcp-hub».

Cline и другие инструменты CLI

Для инструментов на основе командной строки, таких как Cline:

  1. Создайте файл конфигурации с именем servers.json в каталоге вашего проекта:

{
  "servers": [
    {
      "name": "mcp-hub-tools",
      "command": ["npx", "@aimcp/tools"],
      "environment": {
        "MCP_HUB_API_KEY": "YOUR_API_KEY"
      }
    }
  ]
}
  1. Запустите инструмент, используя следующую конфигурацию:

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

Для инструментов, поддерживающих удаленные серверы MCP

Некоторые новые клиенты MCP поддерживают прямые HTTP-соединения. Настройте их с помощью:

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

Для инструментов, использующих файловую конфигурацию (курсор и т. д.)

  1. Создайте файл конфигурации:

{
  "mcpServers": {
    "mcp-hub": {
      "command": "npx",
      "args": ["@aimcp/tools"],
      "environment": {
        "MCP_HUB_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
  1. Укажите этот файл в настройках вашего инструмента или запустите его с соответствующим параметром конфигурации.

Запуск вручную

Вы также можете запустить сервер на основе stdio вручную для тестирования (убедитесь, что в вашей среде установлен MCP_HUB_API_KEY ):

export MCP_HUB_API_KEY="YOUR_API_KEY_HERE"
npx @aimcp/tools

API-интерфейс

Этот сервер взаимодействует со следующей конечной точкой API MCP Hub:

  • Конечная точка: GET https://www.aimcp.info/api/open/v1/search

  • Аутентификация: требуется токен Bearer в заголовке Authorization с использованием MCP_HUB_API_KEY .

  • Параметр запроса: keywords (строка)

Использование API MCP на основе HTTP

MCP Hub предоставляет HTTP-сервер MCP в /api/open/v1/streamable , который реализует протокол контекста модели. Это позволяет помощникам и инструментам ИИ искать MCP и напрямую получать информацию MCP.

Этапы подключения

  1. Сначала установите соединение, чтобы получить идентификатор сеанса:

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

Ответ:

{
  "success": true,
  "sessionId": "194830ab-eb0b-4d17-a574-af96705276c2",
  "message": "Connection established. Use this sessionId for subsequent calls."
}
  1. Вызовите инструмент с идентификатором сеанса:

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"
}

Разработка и внедрение

Разработка

  1. Зависимости установки: pnpm install

  2. Сборка: pnpm run build (компилирует TypeScript в JavaScript в build/ )

  3. Режим наблюдения: pnpm run watch (автоматически перекомпилирует при изменениях)

  4. Тестирование с помощью Inspector: pnpm run inspector (запускает сервер с помощью инструмента MCP Inspector)

Создание собственного сервера MCP на базе stdio

Если вы хотите создать свой собственный сервер MCP на базе stdio, выполните следующие действия:

  1. Настройте свой проект:

    mkdir my-mcp-server
    cd my-mcp-server
    npm init -y
    npm install @modelcontextprotocol/sdk
  2. Создайте свою реализацию сервера:

// 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. Скомпилируйте и запустите свой сервер:

    npx tsc
    node dist/index.js
  2. Проверьте свой сервер с помощью инструмента MCP Inspector:

    npx @modelcontextprotocol/inspector

Развертывание

  1. Убедитесь, что сервер собран ( pnpm run build ).

  2. Каталог build содержит необходимые файлы JavaScript.

  3. Сервер можно запустить с помощью node build/index.js или команды mcphub_tools , если пакет установлен соответствующим образом (например, глобально или связан).

  4. Настройте клиент/менеджер MCP так, чтобы он указывал на исполняемый файл сервера, и укажите переменную среды MCP_HUB_API_KEY .

Вы также можете опубликовать свой сервер MCP в npm, чтобы другие могли установить и использовать его.

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