Skip to content
Skills Library
Security · Review & audit

oauth21-implementation

/oauth21-implementation

Enforce OAuth 2.1 implementation in authorization servers for MCP ecosystems. Use when building, configuring, or reviewing authorization servers that serve MCP clients and servers.

Licence
Apache-2.0
Last repository change
15.07.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 15.07.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Enforce OAuth 2.1 implementation in authorization servers for MCP ecosystems. Use when building, configuring, or reviewing authorization servers that serve MCP clients and servers.

Original author description

Enforce OAuth 2.1 implementation in authorization servers for MCP ecosystems. Use when building, configuring, or reviewing authorization servers that serve MCP clients and servers.

How it works

  1. Security Requirement
  2. Key OAuth 2.1 Requirements
  3. Required Grants for MCP Ecosystem
  4. Implementation Checklist
Original SKILL.md headings · 39 lines, 280 words
SKILL.md preview
---
name: oauth21-implementation
description: Enforce OAuth 2.1 implementation in authorization servers for MCP ecosystems. Use when building, configuring, or reviewing authorization servers that serve MCP clients and servers.
category: "secure_development"
subcategory: "authorization-server"
---

# OAuth 2.1 Implementation for Authorization Servers

## Security Requirement

Authorization servers MUST implement OAuth 2.1 for both confidential and public clients. OAuth 2.1 consolidates security best practices from OAuth 2.0 and its extensions into a single specification.

## Key OAuth 2.1 Requirements

| Requirement | Details |
|---|---|
| **PKCE required** | All authorization code grants MUST use PKCE (RFC 7636), even for confidential clients |
| **Redirect URI exact matching** | Redirect URIs MUST be compared using exact string matching |
| **No implicit grant** | The implicit grant type is removed |
| **No resource owner password grant** | The ROPC grant type is removed |
| **Refresh token rotation** | Refresh tokens MUST be sender-constrained or one-time use |
| **Bearer token usage** | Per RFC 6750 with additional security requirements |

## Required Grants for MCP Ecosystem

The authorization server MUST support:

- **`authorization_code` + PKCE**: For human users via MCP clients (public clients)
- **`client_credentials`**: For service-to-service MCP communication (confidential clients)
- **`device_code`**: For CLI tools and headless MCP clients
- **Token Exchange** (RFC 8693): For MCP servers accessing downstream tools

## Implementation Checklist

- [ ] Implement OAuth 2.1 compliant authorization code flow with mandatory PKCE
- [ ] Enforce exact redirect URI matching
- [ ] Remove or disable implicit and ROPC grant types
- [ ] Implement refresh token rotation (one-time use or sender-constrained)
- [ ] Support `client_credentials` grant for confidential clients
- [ ] Support `device_code` grant for CLI/headless clients
- [ ] Implement Token Exchange (RFC 8693)
- [ ] Issue short-lived access tokens (TTL ≤15min recommended)
- [ ] Support resource indicators (RFC 8707) for multi-resource environments

Versions

The database has no other skills named oauth21-implementation.

Database snapshot: 13.11.2026 · package version 1f9657a2738e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90oauth21-resource-server
    Enforce MCP servers to act as OAuth 2.1 resource servers by default. Use when building, configuring, or reviewing MCP server authentication and authorization defaults.
  • 100protected-resource-metadata
    Enforce OAuth 2.0 Protected Resource Metadata implementation in MCP servers. Use when building, configuring, or reviewing MCP server authentication and authorization discovery.
  • 90configuring-oauth2-authorization-flow
    Configures secure OAuth 2.0 authorization flows, including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant, covering flow selection, PKCE implementation, token lifecycle management, and scope design per OAuth 2.1. Use when implementing or…
  • 100mcp-auth-oauth
    Implement OAuth 2.1 + PKCE authentication for remote MCP servers, including dynamic client registration, token refresh, and scope design. Covers the 2025 MCP auth spec that Claude Desktop, Claude Code, and ChatGPT use. Use this skill when building a remote MCP server that needs…
  • 100mcp-reference-servers
    Guidance on using and integrating official reference servers. Use when building custom servers or deploying standard configurations. For server listings, see mcp-server-registry.
  • 100oauth
    Expert OAuth 2.0 / 2.1 protocol assistance covering Authorization Code Flow with PKCE, Client Credentials, and token exchange. Use when implementing third-party logins, securing API endpoints, or configuring OAuth servers.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.