MCP OAuth Metadata Linter
by gptenv
README.md
# MCP OAuth Metadata Linter
Statically checks caller-provided OAuth metadata documents used by HTTP MCP servers. Give it the exact MCP resource identifier, the RFC 9728 protected-resource metadata (PRM), and optionally the RFC 8414 authorization-server metadata (ASM). It checks the exact resource binding, advertised authorization-server issuer binding, URL requirements, selected field types, authorization-code response support, and MCP PKCE S256 advertisement.
This is a focused static lint report. It does not fetch endpoints, perform OAuth, validate signatures, inspect tokens, prove runtime configuration, or certify security/compliance. Never submit access tokens, client secrets, or private credentials. The data is processed in memory and is not stored.
## Free and paid
- Free `preview_check`: one metadata bundle.
- Paid `audit_checks`: up to 20 bundles for **$0.01 USDC on Base** through x402.
- Optional Stripe Checkout: C$0.50 one-time batch, enabled only after setting the SaladFinder Stripe secret in Worker configuration.
## MCP
```json
{"mcpServers":{"mcp-oauth-metadata-linter":{"type":"streamable-http","url":"https://mcp-oauth-metadata-linter.defcronyke.workers.dev/mcp"}}}
```
## HTTP API
POST to `/v1/audit` with an x402 V2 client:
```json
{"cases":[{"resource_url":"https://api.example.com/mcp","resource_metadata":{"resource":"https://api.example.com/mcp","authorization_servers":["https://auth.example.com"]},"authorization_server_metadata":{"issuer":"https://auth.example.com","authorization_endpoint":"https://auth.example.com/authorize","token_endpoint":"https://auth.example.com/token","response_types_supported":["code"],"code_challenge_methods_supported":["S256"]}}]}
```
The endpoint returns an x402 payment challenge without a valid payment. `/.well-known/x402` and `/openapi.json` describe the service. `GET /example` returns a sample report.
## Payment methods
Automatic x402 payment is $0.01 USDC on Base to `0x8CDcbCAC0453b1e94aFf0DDB552d409fea6b7F9F`. BTC, Interac e-Transfer, PayPal, or another EVM asset require prior arrangement by emailing `jeremy@jeremycarter.ca`; manual payments cannot be automatically verified or fulfilled. BTC address: `bc1q7x4n86m5u8lkekzlqjwqnx2fdjdzm0elgwuud5`.
Stripe Checkout code supports a C$0.50 one-time payment and releases results only after Stripe confirms payment, amount, currency, and the matching input hash. Configure `STRIPE_SECRET_KEY` as a Cloudflare Worker secret for the SaladFinder Stripe account. Stripe is not active until this is configured.
## Development
```sh
npm ci
npm test
npx wrangler dev
```
The service uses Cloudflare Workers, Hono, the official TypeScript MCP SDK, and x402. No database is required; checks are stateless.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues