3.0.0
The fastmcp auth commands help with CIMD (Client ID Metadata Document) management — part of MCP’s OAuth authentication flow. A CIMD is a JSON document you host at an HTTPS URL to identify your client application to MCP servers.
Creating a CIMD
fastmcp auth cimd create generates a CIMD document:
client_id — update it to match the URL where you’ll host the document before deploying.
Options
| Option | Flag | Description |
|---|---|---|
| Name | --name | Required. Human-readable client name |
| Redirect URI | --redirect-uri | Required. Allowed redirect URIs (repeatable) |
| Client URI | --client-uri | Client’s home page URL |
| Logo URI | --logo-uri | Client’s logo URL |
| Scope | --scope | Space-separated list of scopes |
| Output | --output, -o | Save to file (default: stdout) |
| Pretty | --pretty | Pretty-print JSON (default: true) |
Example
Validating a CIMD
fastmcp auth cimd validate fetches a hosted CIMD and verifies it conforms to the spec:
client_id matches the URL, and no shared-secret auth methods are used.
On success:
| Option | Flag | Description |
|---|---|---|
| Timeout | --timeout, -t | HTTP request timeout in seconds (default: 10) |

