mcp-authprobe
Run active OAuth security checks against remote MCP servers you own
mcp-authprobe is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Linux, macOS
- Runs
- Locally
- Version
- 0.10.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-authprobe --env MCP_AUTHPROBE_SECRET='<MCP_AUTHPROBE_SECRET>' -- npx -y mcp-authprobeAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-authprobe": {
"command": "npx",
"args": [
"-y",
"mcp-authprobe"
],
"env": {
"MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add mcp-authprobe --env MCP_AUTHPROBE_SECRET='<MCP_AUTHPROBE_SECRET>' -- npx -y mcp-authprobeOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-authprobe]
command = "npx"
args = ["-y", "mcp-authprobe"]
env = { MCP_AUTHPROBE_SECRET = "<MCP_AUTHPROBE_SECRET>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-authprobe": {
"command": "npx",
"args": [
"-y",
"mcp-authprobe"
],
"env": {
"MCP_AUTHPROBE_SECRET": "<MCP_AUTHPROBE_SECRET>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
MCP_AUTHPROBE_SECRET_FILEPath to the ownership secret (create it with `mcp-authprobe ownership init <host>`). Without a secret, only discovery runs.MCP_AUTHPROBE_SECRETOwnership secret, if not read from MCP_AUTHPROBE_SECRET_FILE.MCP_AUTHPROBE_CREDENTIALS_FILEPath to a test grant written by `mcp-authprobe login`, for the refresh token checks. It is consumed by a scan.MCP_AUTHPROBE_ALLOW_PRIVATESet to 1 to allow loopback and private targets (local labs only).MCP_AUTHPROBE_LAB_ORIGINSComma-separated lab origins exempt from the ownership proof, e.g. http://127.0.0.1:8080.MCP_AUTHPROBE_TIMEOUT_MSPer-request timeout in milliseconds (default 10000).MCP_AUTHPROBE_BEARER_FILEPath to a static API key (one line, mode 600) for a server authenticated without OAuth. Needs MCP_AUTHPROBE_BEARER_TARGET.MCP_AUTHPROBE_BEARER_TARGETThe exact MCP URL the static key may be used for.MCP_AUTHPROBE_BEARER_HEADERHeader for the static key (default Authorization, sent as Bearer).
About mcp-authprobe
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.
What it does
- 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
Pricing
Open source
Open source npm package; licence file referenced in the README
mcp-authprobe 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.



