
Other Tools
v1.0.0
active
mcp-oauth-security-auditor
io.github.caliberfoundry/mcp-oauth-security-auditor
Audit remote MCP Streamable HTTP servers for OAuth 2.1, CORS, token bloat, and tool poisoning.
Documentation
MCP Endpoint & OAuth 2.1 Security Auditor
Audit any remote Model Context Protocol (MCP) server (Streamable HTTP) for OAuth 2.1 compliance (RFC 9728, RFC 8414, PKCE S256), CORS / DNS-rebinding security, schema token bloat, and tool-poisoning prompt injection risks in seconds.
Built by Caliber Foundry (https://caliberfoundry.com/). Works both as a scheduled Apify Batch Actor and as a real-time Apify Server Actor (/mcp) via https://mcp.apify.com.
What This Actor Checks
- OAuth 2.1 & Discovery Compliance:
- Unauthenticated
POST /mcpchallenge (401 Unauthorized+WWW-Authenticate: Bearer resource_metadata="..."). - RFC 9728 Protected Resource Metadata (
/.well-known/oauth-protected-resource) validation. - RFC 8414 / OIDC Authorization Server discovery (
authorization_endpoint,token_endpoint,registration_endpoint). - Mandatory PKCE
S256check (code_challenge_methods_supported) and deprecated implicit grant (response_type="token") detection.
- Unauthenticated
- Transport & DNS-Rebinding Security:
- Enforces HTTPS posture in production and blocks SSRF targets (
127.0.0.0/8,10.0.0.0/8,169.254.169.254). - Probes CORS with an untrusted
Originheader to flag wildcard*or reflected origin vulnerabilities.
- Enforces HTTPS posture in production and blocks SSRF targets (
- Tool Surface, Token Bloat & Tool-Poisoning Scan:
- Connects via Streamable HTTP (
initialize+tools/list) when unauthenticated or when an optional Bearer token is supplied. - Estimates total schema token footprint (flagging
> 8,000/> 20,000context bloat). - Scans tool names, descriptions, and JSON schemas for invisible Unicode / BiDi steganography,
<IMPORTANT>/"ignore previous instructions"prompt injections, credential path harvesting (.ssh,.aws,.env), and missingreadOnlyHint/destructiveHintannotations.
- Connects via Streamable HTTP (
Example Input JSON
{
"targetUrls": [
"https://mcp.apify.com"
],
"probeTools": true,
"timeoutMs": 10000
}
Example Output JSON
{
"targetUrl": "https://mcp.apify.com",
"auditedAt": "2026-11-28T14:30:00.000Z",
"score": 96,
"grade": "A",
"authMode": "oauth21_compliant",
"oauth21": {
"challengeStatus": 401,
"wwwAuthenticatePresent": true,
"rfc9728Found": true,
"rfc8414Found": true,
"pkceS256Supported": true,
"dynamicClientRegistrationSupported": true
},
"transport": {
"httpsEndpoint": true,
"acceptsStreamableHttp": true,
"allowsUntrustedOrigin": false
},
"toolsAudit": {
"inspected": false,
"toolCount": 0,
"estimatedSchemaTokens": 0,
"poisoningFindingCount": 0
},
"findings": [],
"recommendedFixes": []
}
Connect via Apify MCP (mcp.apify.com)
{
"mcpServers": {
"mcp-security-auditor": {
"url": "https://mcp.apify.com/?tools=caliberfoundry/mcp-oauth-security-auditor"
}
}
}
Pricing (Pay-Per-Event)
mcp-endpoint-audited:$0.03per audited MCP endpoint (zero Actor start fee; free preview runs are capped cleanly by yourmaxTotalChargeUsd).
FAQ
- Are Bearer tokens stored or logged? No. Optional
bearerTokeninputs are flaggedisSecret: truein.actor/input_schema.jsonand used strictly in memory for the singletools/listprobe. - Does this work against private localhost endpoints? No; production SSRF guards block private/loopback/metadata IP ranges (
127.0.0.1,169.254.169.254, RFC 1918).
No installation packages available.