# Mcpreflight

> Mcpreflight is an open-source MCP server for developer tools. Read-only preflight checks for MCP and x402 endpoints before an agent depends on them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, self-hosted
- **Website:** https://xka0085-byte.github.io/mcpreflight/
- **Repository:** https://github.com/xka0085-byte/mcpreflight
- **MCP Registry name:** io.github.xka0085-byte/mcpreflight
- **Categories:** developer tools, security
- **Listing updated:** 2026-11-14

## About

mcpreflight answers one question about a deployed endpoint: will it answer an agent, and does its payment challenge still hold? It runs the MCP initialize handshake and tools/list validation, or inspects an HTTP 402 / x402 payment document, using only what the endpoint sends to any anonymous caller. It never invokes tools, accepts credentials or makes payments, and its docs say PASS is an observed-check result, not a security certification or trust score.

The CLI prints PASS, FAIL or UNKNOWN with exit codes 0, 1 and 2 so CI can gate on it, and a GitHub Action fails a pull request when a handshake, tool schema or x402 challenge drifts. In MCP server mode it exposes schema_check and x402_inspect so an agent can vet an endpoint before connecting.

The project also publishes a weekly sweep of the official MCP Registry. As of 2026-11-09 it reported 35,327 remote endpoints, 20,672 PASS (58.5%), 151 FAIL and 14,504 with no anonymous handshake, with per-endpoint reports and JSON APIs in its Trust Directory.

## Features

- **Handshake and schema check:** Validates initialize and tools/list, including tool schemas and required fields.
- **x402 inspector:** Reads 402 challenge shape, accepts[] and discovery manifests without paying.
- **CI-friendly exit codes:** Exit 0, 1 or 2 maps to PASS, FAIL or UNKNOWN.
- **GitHub Action:** Fails a pull request when an endpoint drifts.
- **Trust Directory:** Weekly per-server reports and JSON APIs for registry endpoints.
- **Strictly read-only:** No tool calls, credentials, wallets or payments.

## Good for

- Test a remote MCP server before connecting an agent
- Gate a pull request on an endpoint still passing
- Watch an x402 payment challenge for drift
- Look up the weekly status of a registry server

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcpreflight -- npx -y @eidonze/mcpreflight
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcpreflight": {
      "command": "npx",
      "args": [
        "-y",
        "@eidonze/mcpreflight"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcpreflight": {
      "command": "npx",
      "args": [
        "-y",
        "@eidonze/mcpreflight"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcpreflight": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@eidonze/mcpreflight"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcpreflight": {
      "command": "npx",
      "args": [
        "-y",
        "@eidonze/mcpreflight"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcpreflight": {
      "command": "npx",
      "args": [
        "-y",
        "@eidonze/mcpreflight"
      ]
    }
  }
}
```

## Tools

- `schema_check`: Runs the initialize and tools/list checks on an endpoint.
- `x402_inspect`: Inspects an endpoint's HTTP 402 payment challenge without paying.

## FAQ

### Does it call my tools?

No. It reads only the handshake, tools/list and the 402 payment document.

### How do I run it?

npx -y @eidonze/mcpreflight schema <url>, or via Homebrew, the GitHub Action or the stdio server.

### Is PASS a security audit?

No. It is a deterministic result of the checks in that version, not a certification or trust score.

### How are authenticated endpoints counted?

As AUTH_GATED rather than failures.

### Is Mcpreflight free?

Yes. Mcpreflight is open source, so you can use and self-host it for free.

### How do I add Mcpreflight to Claude Code?

Run this command in your terminal: claude mcp add mcpreflight -- npx -y @eidonze/mcpreflight

### What are the best alternatives to Mcpreflight?

The closest alternatives to Mcpreflight are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcpreflight
