music nerd

MCP OAuthRegister a client

MCP OAuth

Register a client

Registers an MCP client (RFC 7591) and returns its client_id. Redirect URIs must use HTTPS, or HTTP on localhost or 127.0.0.1. Clients get no secret and prove themselves with PKCE instead.

POST/api/oauth/reg
POST/api/oauth/reg

Registers an MCP client (RFC 7591) and returns its client_id. Redirect URIs must use HTTPS, or HTTP on localhost or 127.0.0.1. Clients get no secret and prove themselves with PKCE instead.

Body
cURL
curl --request POST \
  --url 'https://musicnerd-api.vercel.app/api/oauth/reg' \
  --header 'Content-Type: application/json' \
  --data '{
  "client_name": "Claude",
  "redirect_uris": [
    "http://127.0.0.1:33418/callback"
  ]
}'

Send the request to see the live response here.

Authorizations

None. This endpoint is public.

Body

application/jsonrequired
client_namestring

The agent's name, shown when the user approves it. Not verified.

maxLength: 200

redirect_urisarray<string>required

Where to send the user back after approving.

minItems: 1

Item properties for redirect_uris

string

grant_typesarray<string>

Ignored; the client always gets authorization_code and refresh_token.

Item properties for grant_types

string

token_endpoint_auth_methodstring

Ignored; always none.

Response

application/json

Registered.

client_idstringrequired
client_namestring
redirect_urisarray<string>required
Item properties for redirect_uris

string

grant_typesarray<string>required
Item properties for grant_types

string

response_typesarray<string>required
Item properties for response_types

string

token_endpoint_auth_methodstring · enumrequired

Values: "none"