OAuth Auditor
MCP server that scans an MCP server's own authorization code for OAuth 2.1 anti-patterns named in the MCP spec's Security Considerations: token passthrough, missing audience validation, OAuth/OIDC discovery SSRF, missing PKCE, loose redirect_uri validation, and hardcoded client secrets

@guardbee/mcp-oauth-auditor scans for the OAuth 2.1 anti-patterns named in the MCP spec’s Security Considerations — especially token passthrough and missing audience validation.
What does it do?
Six categories: token-passthrough, token-validation (missing audience), discovery-ssrf, pkce, redirect-validation, secrets-exposure. Some rules look for an absence near a call site (audience / code_challenge).
Who is it for?
- Teams building MCP servers / OAuth resource servers
- DevSecOps reviewing OAuth/OIDC on every PR
- Developers who want this check inside Claude or Cursor
What it is not
- Generic web-app API-key scanning (use Secret Scanner)
- Live token abuse / red team (different from LLM Red Team)
- A formal OAuth certification
Features
| Feature | Description |
|---|---|
| Spec-aligned | MCP Security Considerations focus |
| Absence checks | audience / PKCE proximity analysis |
| 6 categories | passthrough → secrets |
| SARIF 2.1.0 | CI |
| guardbee.yml | fail-on, exclude |
MCP tools
| Tool | Description |
|---|---|
scan_text | Scan a snippet |
scan_file | Scan a single file |
scan_directory | Scan auth source |
list_patterns | List categories |
Install with npm
Global install (handy for Claude Desktop / Cursor):
<code class="language-bash">npm install -g @guardbee/mcp-oauth-auditor</code>or via npx (recommended with -y in config):
<code class="language-bash">npx -y @guardbee/mcp-oauth-auditor</code>npm: @guardbee/mcp-oauth-auditor
<code class="language-bash">npx @guardbee/mcp-oauth-auditor scan ./src --fail-on=high --format=sarif > results.sarif</code>Claude Desktop configuration
Config file paths:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Merge this block, then restart Claude Desktop:
<code class="language-json">{
"mcpServers": {
"guardbee-oauth-auditor": {
"command": "npx",
"args": [
"-y",
"@guardbee/mcp-oauth-auditor"
]
}
}
}</code>Cursor and other MCP clients
In Cursor, add the same command / args / env under Settings → MCP. stdio MCP servers use the same contract as Claude Desktop.
Example prompts in Claude
- “Is there token passthrough in this MCP auth code?”
- “Does jwt.verify check audience?”
- “Which OAuth anti-patterns do you support?”
Frequently asked questions
Why MCP-specific?+
The MCP spec explicitly names token passthrough and audience as resource-server risks.
API key?+
No — local source scanning.
Is PKCE always required?+
OAuth 2.1 expects it on authorization requests; absence is flagged.
More in this category
@guardbee/mcp-a2a-auditor
A2A Auditor
MCP server that scans Agent2Agent (A2A) protocol implementation code for anti-patterns found in the reference SDKs and sample agents: unauthenticated push-notification webhook fetches (SSRF), Agent Cards with no authentication requirement, and credentials embedded in publicly-served Agent Card metadata
Learn more@guardbee/mcp-agent-graph-auditor
Agent Graph Auditor
MCP server that builds a reachability graph across multi-agent orchestration configs (LangGraph, CrewAI, AutoGen/ag2) to find transitive excessive agency — an agent with no dangerous tool of its own that can still reach one through delegation or group membership
Learn more@guardbee/mcp-audit-gap-auditor
Audit Gap Auditor
MCP server that audits MCP server source for OWASP MCP08:2025 (Lack of Audit and Telemetry) — missing tool-call logging, raw args/results in logs, disabled audit sinks, and tool errors swallowed without a record
Learn more@guardbee/mcp-context-oversharing-auditor
Context Oversharing Auditor
MCP server that audits agent/MCP source for OWASP MCP10:2025 context oversharing — unrestricted session/memory dumps, cross-user shared context, system-prompt leakage via tools, and unscoped vector recalls
Learn more@guardbee/mcp-elicitation-auditor
Elicitation Auditor
MCP server that scans MCP server code for elicitation anti-patterns in the 2026-07-28 spec: form mode asking for secrets, URL mode pointed straight at a third-party authorize endpoint, and credentials or PII embedded in the elicitation URL
Learn more@guardbee/mcp-config-auditor
MCP Config Auditor
MCP config auditor for Cursor, Claude Desktop, Windsurf and VS Code: unpinned packages, secrets, auto-approve wildcards, typosquats, shadow MCP servers and agent skills
Learn more
See your security posture in minutes
Add your domain, run a read-only scan and get a prioritised list of fixes. No installation required.