API & MCP
Everything a person can do on OAuth Permission Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://oauthpermissionexplorer.usefulweb.site/api/v1/calculate– run OAuth Permission ExplorerGET https://oauthpermissionexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
OAuth Permission Explorer
Paste OAuth scopes or a full authorization URL for Google, GitHub, Microsoft Graph, Slack or generic OpenID Connect. Every scope is explained from the provider's official documentation with a sensitivity rating; risky combinations (read + send mail, offline access to files, push code + delete repositories, CI workflow edits) and unsafe request settings (implicit flow, missing PKCE or state, plain-HTTP redirect) are flagged. Unknown scopes are listed, never guessed.
| Field | Type | Default | Description |
|---|---|---|---|
request (required) | textarea | — | Scopes or authorization URL. Scopes separated by spaces or commas, or the whole URL from the consent link. |
provider | select (auto, google, github, microsoft, slack, oidc) | "auto" | Provider |
Example request
Google consent URL with Gmail + offline access
curl -X POST https://oauthpermissionexplorer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"request":"https://accounts.google.com/o/oauth2/v2/auth?client_id=123.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fapp.example%2Fcb&response_type=code&access_type=offline&prompt=consent&scope=openid%20email%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.send&state=xyz","provider":"auto"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://oauthpermissionexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
oauth_permission_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=oauth-permission-explorer
{
"mcpServers": {
"oauth-permission-explorer": { "type": "http", "url": "https://oauthpermissionexplorer.usefulweb.site/mcp" }
}
}