Skip to main content
Glama
mcp-server-mcpindex

mcp-server-mcpindex

Official
by mcpindex-ai

mcp-server-mcpindex

mcpindex npm npm downloads servers indexed screened last commit Smithery Glama

一个用于查找 MCP 服务器的 MCP 服务器,并提供咨询性信任判定,供智能体框架在调用工具前查询——来自 mcpindex.ai。

一个即插即用的 MCP 服务器,让你的智能体能够在智能体循环内部发现、比较、安装和预检其他 MCP 服务器。由 mcpindex.ai 提供支持——这是官方注册表的智能体原生 MCP 服务器索引(实时数量见 mcpindex.ai/stats),每日进行筛查和漂移监控。

在线站点 · npx mcp-server-mcpindex · 远程 MCP · 安装门控 · 文档 · 信任

安装

npm install -g mcp-server-mcpindex

这是目录/咨询客户端(推荐、搜索、信任)。它不安装路径内漂移门控——那是 curl -fsSL https://mcpindex.ai/install.sh | sh。

需要 Node 20+。在 stdio 上同时支持两个协议时代:2026-07-28 修订版(server/discover,按请求的 _meta 信封)以及每个当前客户端都使用的 initialize 握手(2025-11-25 至 2024-10-07),按连接自动选择。

或远程连接(无需安装)

不想安装任何东西?mcpindex 也是一个托管的远程 MCP 服务器。将任何支持远程 MCP 的客户端(Claude connectors、Cursor 等)指向:

https://mcpindex.ai/api/mcp

Streamable HTTP,无需凭据。与 npm 包相同的六个工具。

Claude Code

claude mcp add --scope user mcpindex -- npx -y mcp-server-mcpindex@latest

Gemini CLI

gemini mcp add -s user mcpindex npx -y mcp-server-mcpindex@latest

Related MCP server: filesystem-mcp

从 Claude Desktop 使用

添加到 ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "mcpindex": {
      "command": "npx",
      "args": ["-y", "mcp-server-mcpindex@latest"]
    }
  }
}

@latest 让你保持最新:这是咨询性发现服务器(不是路径内漂移 门控),因此不携带版本锁定——npx 会在你下次重启主机时获取最新版本,无需手动升级步骤。

重启 Claude Desktop。然后询问:

"帮我找一个能读取 PDF 并将内容写入 S3 的 MCP 服务器。"

Claude 会调用 recommend_mcp_for_task 并返回排名前 3 的服务器及安装命令。

从 Cursor 使用

添加到 .cursor/mcp.json:

{
  "mcpServers": {
    "mcpindex": {
      "command": "npx",
      "args": ["-y", "mcp-server-mcpindex@latest"]
    }
  }
}

从 Cline 使用

添加到你的 Cline 设置中:

npx -y mcp-server-mcpindex@latest

暴露的工具

工具

功能

recommend_mcp_for_task

传入自然语言任务。返回排名前 3 的服务器,附带推理、安装命令和质量评分。

search_mcp_servers

在整个注册表中进行关键词 + 语义搜索。可选类别筛选。

get_install_command

获取服务器 + 客户端(Claude Desktop、Claude Code、Cursor、Gemini CLI、Cline、Zed)的精确安装 JSON/CLI。

compare_servers

2-5 个服务器的并排比较——质量评分、安装路径、环境变量。

check_tool_trust

针对服务器上特定工具的调用前咨询性判定。失败-关闭:当没有存档判定时返回 UNVERIFIED。

assess_server

针对服务器上所有工具的聚合预检判定。与 check_tool_trust 形状相同。

智能体框架集成:咨询性调用前筛查

check_tool_trust 是目录客户端集成面(不是路径内 mcpindex-gate)。它让智能体框架(Composio、Mastra、LangChain、DSPy、原始 LLM 工具调用循环)在派发调用前请求咨询性筛查判定。在 v1 中你会看到 REVIEW 或 UNVERIFIED——而不是安全许可。

使用 Mastra? 姊妹包 @mcp-index/mastra 将此筛查作为现成的 beforeToolCall 钩子提供——npm i @mcp-index/mastra,无需任何接线。

判定契约(v1)

{
  "directive": "ALLOW" | "DENY" | "REVIEW" | "UNVERIFIED",
  "status":    "EVALUATED" | "PARTIAL" | "STALE" | "ERROR",
  "granularity": "description-level" | null,  // scope of a PARTIAL screen
  "dimensions": [
    { "id": "tool_safety", "verdict": "PASS", "severity": "INFO" }
  ],
  "expires_at": "2026-06-30T00:00:00Z",
  "honest_limits": [
    "conformance_monitored_not_enforced",
    "calibrated_false_v1",
    "advisory_deployment"
  ],
  "verdict_contract_version": "1.0.0",
  "server_id": "github",
  "tool_name": "create_pull_request",
  "source_url": "https://mcpindex.ai/api/v1/trust/tool/github/create_pull_request",
  "fetched_at": "2026-05-28T18:42:11.118Z"
}

免费层判定附带指令 + 维度 + 新鲜度。证据引用、LLM 推理和链历史是付费层表面,此处有意省略。

诚实的限制(将这些固定到你的门控 UI 上)

每个 v1 判定都附带以下三个注意事项,你的门控应该在每次派发决策时展示它们:

  1. conformance_monitored_not_enforced - 发布者自行声明;mcpindex 监控漂移但不在网络层阻止。

  2. calibrated_false_v1 - 维度严重性尚未针对真实世界事件数据进行校准。

  3. advisory_deployment - 判定是咨询性的;智能体(或审查智能体的人类)才是决策者。

历史锚定:OTS 比特币锚定历史;在 N=6 次确认(约 1 小时)时比特币最终确定;约 10 分钟内待定。子窗口精度为断言而非证明。

集成模式(LangChain 风格,直接 LLM 工具调用约定)

import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';

const mcpindex = new Client({ name: 'gate', version: '1.0.0' }, { capabilities: {} });
await mcpindex.connect(new StdioClientTransport({
  command: 'npx', args: ['-y', 'mcp-server-mcpindex@latest'],
}));

// gateToolCall wraps any agent tool dispatch. Plug it in front of
// the LangChain / DSPy / Mastra / Composio tool-call hook.
async function gateToolCall({ serverId, toolName, invoke, askHuman }) {
  const res = await mcpindex.callTool({
    name: 'check_tool_trust',
    arguments: { server_id: serverId, tool_name: toolName },
  });
  const verdict = JSON.parse(res.content[0].text);

  // Pin the v1 caveats in the audit log no matter what.
  audit.log({ verdict, caveats: verdict.honest_limits });

  switch (verdict.directive) {
    case 'REVIEW':
      // Fail-CLOSED to human. Do NOT auto-execute on REVIEW.
      // At v1 this is the common screened outcome (semantic-only).
      return askHuman({ verdict, action: `${serverId}/${toolName}` });

    case 'UNVERIFIED':
      // No verdict on file (or upstream unreachable). Fail-CLOSED.
      // Recommend human review. Do NOT fail-open to invoke().
      return askHuman({
        verdict,
        action: `${serverId}/${toolName}`,
        note: 'No trust verdict on file. Human review required before first use.',
      });

    case 'ALLOW':
      // Reserved in the contract — not produced by the v1 public screen.
      // Keep the branch for future conformance-earned ALLOW; do not expect it today.
      return invoke();

    case 'DENY':
      // Reserved in the contract — not produced by the v1 public screen.
      throw new Error(
        `mcpindex denied ${serverId}/${toolName}: ${JSON.stringify(verdict.dimensions)}`,
      );

    default:
      // Unknown directive. Fail-CLOSED.
      return askHuman({ verdict, action: `${serverId}/${toolName}` });
  }
}

承重规则:绝不失败-开放

如果判定端点不可达、返回 404、超时、返回格式错误的 JSON,或该服务器尚无存档判定,check_tool_trust 返回 directive: "UNVERIFIED" + status: "ERROR"。它绝不会静默强制转换为 ALLOW。你的门控代码应该将 UNVERIFIED 视为"需要人工审查",而不是"看起来没问题,放行吧"。

status 是关于筛查完整性的遥测,与 directive 信任决策不同:EVALUATED(完整筛查)、PARTIAL(仅部分表面,例如描述级别——见 granularity)、STALE(判定已超过新鲜度窗口)、ERROR(不可达 / 无存档判定)。PARTIAL 筛查绝不会报告为 EVALUATED。

这已经过测试。见 test/trust.test.mjs。

直接使用库(无需 MCP)

信任客户端也作为纯 ES 模块导出:

import { checkToolTrust, assessServer } from 'mcp-server-mcpindex/src/trust.mjs';

const verdict = await checkToolTrust({
  serverId: 'github',
  toolName: 'create_pull_request',
});

if (verdict.directive !== 'ALLOW') {
  // Hand to a human, log, or block.
}

后端

默认情况下,调用发送到 https://mcpindex.ai。如果你自托管,可用 MCPINDEX_API_BASE=... 覆盖。

免费层限速为 60 次请求/分钟/IP。付费密钥即将推出,用于更高吞吐量和完整证据判定(证据引用、LLM 推理、链历史)。

相关包

将 mcpindex 引入智能体的三种方式,适用于不同表面:

包

安装

功能

mcp-server-mcpindex (本包)

npm i -g mcp-server-mcpindex

目录 + 咨询筛查作为 MCP 服务器:按任务查找服务器,并在调用前使用 check_tool_trust。

@mcp-index/mastra

npm i @mcp-index/mastra

相同的咨询筛查,作为 beforeToolCall 钩子接入 Mastra(警告 / 强制)。

@mcp-index/sdk

npm i @mcp-index/sdk

路径内漂移门控:wrap() 一个 MCP 会话,当工具的契约偏离你的锁定版本时 HOLD 调用。

咨询筛查 vs 漂移门控: 本包和 @mcp-index/mastra 向 mcpindex 询问"这个工具是否经过审查?"(网络判定)。@mcp-index/sdk 在本地提出一个不同的问题:"这个工具的契约自锁定以来是否发生了变化?"两者互补,互不依赖。

许可证

MIT。

项目

非官方。与 Anthropic 无关联。

Available Tools

6 tools
assess_serverA

Aggregated pre-flight trust assessment across all tools on an MCP server. Same verdict shape as check_tool_trust. Use for "is THIS server worth integrating?" decisions. v1 advisory; conformance monitored not enforced; verdicts may be UNVERIFIED if not yet probed.

Inputs: server_id (required).

check_tool_trustA

Pre-invocation advisory screen for a specific tool on an MCP server. Returns an advisory verdict object (directive ALLOW | DENY | REVIEW | UNVERIFIED, dimensions, freshness). At v1 the public screen produces REVIEW or UNVERIFIED only — ALLOW/DENY are reserved. Not the in-path gate (mcpindex-gate). Agents SHOULD treat UNVERIFIED as "human review required", never as ALLOW.

Inputs: server_id (required), tool_name (required).

compare_serversA

Side-by-side comparison of 2-5 MCP servers - quality scores, install paths, transport types, env vars.

Inputs: slugs (required).

get_install_commandA

Get the exact install command for a given MCP server and client. Returns a JSON block ready to paste into the client config.

Inputs: client (required), server_slug (required).

recommend_mcp_for_taskA

Recommend the best MCP servers for a natural-language task. Returns top 3 ranked picks with reasoning, install commands, and quality scores. Use this when the user asks for the right MCP server for a task they want to do.

Inputs: task (required).

search_mcp_serversA

Keyword + semantic search across the full MCP server registry. Use when the user knows what tool category they want but not which server.

Inputs: query (required), limit, category.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a clearly distinct purpose: search, recommend, compare, install, and two levels of trust assessment (server-level and tool-level). Even the trust tools are well-differentiated by scope.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case: assess_server, check_tool_trust, compare_servers, get_install_command, recommend_mcp_for_task, search_mcp_servers.

    Tool Count5/5

    With 6 tools covering search, recommendation, comparison, installation, and trust, the number is well-scoped for a server registry/helper. No tools feel redundant or unnecessary.

    Completeness4/5

    The set covers the core workflow of finding, evaluating, and installing MCP servers. A minor gap is the lack of a tool to retrieve full metadata for a single server (e.g., description, version), but search and comparison partially fill that need.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers