# mcp-authprobe

> mcp-authprobe is an open-source MCP server for security. Run active OAuth security checks against remote MCP servers you own. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows
- **Repository:** https://github.com/enigmacker/mcp-authprobe
- **MCP Registry name:** io.github.Enigmacker/mcp-authprobe
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

Most scanners only read what a remote MCP server announces. This one exercises the authorization server to confirm properties that can't be judged from metadata: whether refresh tokens rotate and old ones are refused, whether an unregistered redirect URI is rejected, whether PKCE is enforced, whether codes are single-use and whether a token meant for another server is accepted. Its README lists 19 checks, including Origin validation, tokens in URLs, session IDs used as credentials, CORS, throttling and consent CSRF tested in a real browser.

Because active checks change state on the target, it requires proof of ownership first. You create a secret with the ownership command, publish a proof as a well-known file or DNS TXT record, and without a secret only discovery runs. Private and loopback targets are blocked unless explicitly allowed for local labs. Results come out as JSON, SARIF and Markdown, and it also ships as a CLI and GitHub Action.

A bundled lab starts a deliberately vulnerable server and a secure profile to try every check, and servers using a static API key can be scanned with a bearer-file option. It needs Node.js 22.19 or later and works alongside the passive scanner mcp-posture.

## Features

- **Active OAuth checks:** 19 checks covering PKCE, redirect URIs, refresh rotation, audience and more.
- **Ownership proof:** Active tests run only after you prove ownership of the host.
- **Consent CSRF test:** Checks the consent page in a real browser.
- **Practice lab:** A vulnerable and a secure local server to try every check.
- **CI-friendly reports:** Outputs JSON, SARIF and Markdown, with a GitHub Action.
- **Static key support:** Scans servers authenticated by a fixed API key.

## Good for

- Audit your MCP server's OAuth setup before launch
- Add an authorization regression gate to CI
- Confirm refresh tokens rotate and replays are refused
- Produce SARIF findings for a security dashboard
- Learn how each check behaves using the local lab

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-authprobe --env MCP_AUTHPROBE_SECRET='<MCP_AUTHPROBE_SECRET>' -- npx -y mcp-authprobe
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-authprobe --env MCP_AUTHPROBE_SECRET='<MCP_AUTHPROBE_SECRET>' -- npx -y mcp-authprobe
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-authprobe]
command = "npx"
args = ["-y", "mcp-authprobe"]
env = { MCP_AUTHPROBE_SECRET = "<MCP_AUTHPROBE_SECRET>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MCP_AUTHPROBE_SECRET='<MCP_AUTHPROBE_SECRET>' mcp-authprobe npx -- -y mcp-authprobe

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "mcp-authprobe": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-authprobe"
      ],
      "env": {
        "MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
      }
    }
  }
}
```

## FAQ

### Can I scan any server?

No. The README says to test only servers you own or are authorised to test, and it enforces an ownership proof before active checks.

### What runs without a secret?

Only discovery.

### How many checks are there?

19, covering discovery, tokens, redirect URIs, PKCE, Origin, CORS, throttling and consent CSRF.

### What formats does mcp-authprobe report?

JSON, SARIF and Markdown.

### What does mcp-authprobe need?

Node.js 22.19 or later; it is run from npm over stdio.

### Is mcp-authprobe free?

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

### How do I add mcp-authprobe to Claude Code?

Run this command in your terminal: claude mcp add mcp-authprobe --env MCP_AUTHPROBE_SECRET='<MCP_AUTHPROBE_SECRET>' -- npx -y mcp-authprobe

### What are the best alternatives to mcp-authprobe?

The closest alternatives to mcp-authprobe are REA, AiSOC, x64dbg-mcp-server, redamon and Treasure Map.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [Treasure Map](https://ai-powered.com/mcp/treasure-map): Treasure Map is an open-source MCP server for security.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.
- [Runeward](https://ai-powered.com/mcp/runeward): Runeward is an open-source MCP server for developer tools.

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