# Preflight MCP Server

TrustPilot for APIs, built for AI agents. Independent reliability ratings for every API and MCP server — powered by synthetic probes and crowdsourced agent telemetry.

## Install

```bash
pip install preflight-mcp
```

## Usage

### As a standalone MCP server

```bash
preflight-mcp
```

### With Claude Desktop

Add to your Claude Desktop MCP config:

```json
{
  "mcpServers": {
    "preflight": {
      "command": "preflight-mcp"
    }
  }
}
```

### With Claude Code

```bash
/plugin install preflight@claude-plugins-official
```

## Tools

### check_reliability

Look up the independent reliability rating for any service.

```
check_reliability(service="openai-api")
```

### compare_services

Compare ratings side by side to pick the most reliable provider.

```
compare_services(services=["openai-api", "anthropic-api"])
```

### report_outcome

Leave a review — report what happened when you called a service. Improves ratings for everyone.

```
report_outcome(service="openai-api", outcome="success", latency_ms=200)
```

## Configuration

| Variable | Default | Description |
|----------|---------|-------------|
| `PREFLIGHT_API_URL` | `https://preflight.beamt.io` | API base URL |
| `PREFLIGHT_API_KEY` | (none) | API key for authenticated requests |

Get a free API key at [beamt.io/preflight](https://beamt.io/preflight).

## License

MIT
