Purpose
mcp-server-mcpindex is an "MCP server for finding MCP servers." It enables AI agents to discover, compare, install, and preflight other MCP servers within their own run loop. The tool is powered by mcpindex.ai, the agent-native MCP server index of the official registry, screened and drift-monitored daily.
Key capabilities
- Discovery and recommendation: By describing a task, an agent can call
recommend_mcp_for_taskto get the top three ranked servers and installation commands. - Search and comparison: Provides the ability to search and compare MCP servers.
- Trust preflight:
check_tool_trustis the directory client integration interface, allowing agent frameworks (such as Composio, Mastra, LangChain, DSPy, or raw LLM tool-calling loops) to request an advisory screening verdict before dispatching a call. The v1 version returns REVIEW or UNVERIFIED, not a security clearance. - Protocol compatibility: Supports both protocol eras on stdio: the 2026-07-28 revision (
server/discover, per-request_metaenvelope) and theinitializehandshake used by all current clients (2025-11-25 through 2024-10-07), selected per connection. - Remote connection: Provides a hosted remote MCP server with Streamable HTTP support, no credentials required, and the same six tools as the npm package.
Usage
Install and run
Requires Node 20+. Can be run via npx:npx mcp-server-mcpindex.
Use in Claude Desktop
Add the following to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mcpindex": {
"command": "npx",
"args": ["-y", "mcp-server-mcpindex@latest"]
}
}
}
After restarting Claude Desktop, you can ask: "Find me an MCP server that can read PDFs and write the contents to S3." Claude will call recommend_mcp_for_task and return the top three ranked servers and installation commands.
Use in Cursor
Add to .cursor/mcp.json.
Use in Cline
Add to Cline settings.
Remote connection (no installation required)
Point a client that supports remote MCP (such as Claude connectors, Cursor, etc.) at the remote MCP server address, using Streamable HTTP, with no credentials required.
Agent framework integration: advisory pre-call screening
check_tool_trust is the directory client integration interface (not the in-path mcpindex-gate). It lets agent frameworks request an advisory screening verdict before dispatching a call. The v1 version will see REVIEW or UNVERIFIED, not a security clearance.
When using Mastra, the sibling package @mcp-index/mastra provides this screening as a ready-made beforeToolCall hook:npm i @mcp-index/mastra, with no additional wiring required.
Use the library directly (without MCP)
The trust client is also exported as a plain ES module. By default it calls https://mcpindex.ai, which can be overridden via MCPINDEX_API_BASE=... for self-hosting.
Verdict contract (v1)
Free-tier verdicts include instructions, dimensions, and freshness. Evidence citations, LLM rationale, and chain history are paid-tier content and are intentionally omitted here.
Every v1 verdict comes with the following three caveats, which your gating interface should display on every dispatch decision:
conformance_monitored_not_enforced: Publisher self-declared; mcpindex monitors drift but does not block at the network layer.calibrated_false_v1: Dimension severity has not yet been calibrated against real incident data.advisory_deployment: Verdicts are advisory; the agent (or the human reviewing the agent) is the decision-maker.
Historical anchoring: OTS Bitcoin anchoring history; finalized on Bitcoin after N=6 confirmations (about 1 hour); pending within about 10 minutes. Sub-window precision is an assertion, not proven.
Integration Patterns and Key Rules
Never fail open: If the verdict endpoint is unreachable, returns 404, times out, returns malformed JSON, or that server has no verdict record yet,check_tool_trust returns directive: "UNVERIFIED" + status: "ERROR". It will never silently force to ALLOW. Your gating code should treat UNVERIFIED as "needs human review," not as "looks fine, safe to ship."
status is telemetry about screening completeness, distinct from the instruction trust decision: EVALUATED (complete screening), PARTIAL (only part of the surface, e.g. description level), STALE (verdict older than the freshness window), ERROR (unreachable/no verdict record). PARTIAL screening is never reported as EVALUATED.
This behavior is tested, see test/trust.test.mjs.
Applicable Scenarios
- When an agent needs to dynamically discover and install MCP servers.
- When an agent framework needs advisory trust screening before calling a tool.
- When a developer wants to quickly find an MCP server suitable for a specific task.
Limitations
- The free tier is rate-limited to 60 requests/minute/IP. Paid keys can obtain higher throughput and full-evidence verdicts (evidence citations, LLM rationale, chain history).
- v1 verdicts are advisory, not security clearance, and dimension severities are uncalibrated.
- There is no in-install-path drift gating; that feature requires installation via
curl -fsSL https://mcpindex.ai/install.sh | sh. - Not affiliated with Anthropic.
Related Packages
@mcp-index/mastra: uses advisory screening as Mastra'sbeforeToolCallhook.@mcp-index/sdk: locally asks "has this tool's contract changed since it was pinned?"
The three are complementary and do not depend on each other.