Build an MCP connector

Connectors use Client ID Metadata Documents (CIMD) to register with the Typeform authorization server. You host a small JSON file at an HTTPS URL you control, and that URL becomes your client_id. No allowlist request, no dynamic registration call — the authorization server fetches your document and trusts it.

Your client doesn't support CIMD yet? CIMD is the recommended way to connect, but we know not every MCP client supports it. If yours doesn't, we may exceptionally add you to our Dynamic Client Registration (DCR) allowlist. Submit your request here and we'll get back to you.

💡 Just want to use Typeform from an AI client yourself? You don't need these docs — see the Help Center links on the overview.

Step 1: Host a client metadata document

Create a JSON file and serve it at a stable, publicly reachable HTTPS URL. Example:

{
  "client_id": "https://connector.example.com/oauth/client-metadata.json",
  "client_name": "Acme Connector",
  "redirect_uris": [
    "https://connector.example.com/oauth/callback",
    "http://localhost:8080/oauth/callback"
  ],
  "token_endpoint_auth_method": "none"
}

The URL you serve the document from and the client_id value inside it must match exactly — including scheme, host, and path.

Document requirements

FieldRequirement
client_idThe exact HTTPS URL the document is served from. Must have a non-empty path (not just /). At most 255 characters. No fragment, no credentials.
client_nameNon-empty, at most 255 characters. Control characters and bidirectional overrides are stripped.
redirect_urisAt least one. Each must be HTTPS on the same host (and port) as client_id, or a loopback address (localhost, 127.0.0.1, ::1) on any port.
token_endpoint_auth_method"none" or omitted for public clients (PKCE only). "private_key_jwt" for clients that authenticate with a signed JWT — see private_key_jwt clients below. No client secret is ever accepted.
jwks_uriRequired when token_endpoint_auth_method is "private_key_jwt". Must be an HTTPS URL on the same host as client_id. No fragment, no credentials.
token_endpoint_auth_signing_algOptional when using private_key_jwt. When present, must be "RS256". Only RS256 is supported.

The document must not contain client_secret or client_secret_expires_at. The authorization server rejects any document that does.

Serving requirements

  • Respond with HTTP 200 directly. Redirects are not followed.
  • Content-Type must be application/json or a +json subtype.
  • Body must be 5 KB or smaller.
  • The URL must resolve to a public IP address. Private networks are blocked.

private_key_jwt clients

If your connector authenticates with a signed JWT rather than relying on PKCE alone, set token_endpoint_auth_method to "private_key_jwt" and add a jwks_uri pointing to your public keys:

{
  "client_id": "https://connector.example.com/oauth/client-metadata.json",
  "client_name": "Acme Connector",
  "redirect_uris": [
    "https://connector.example.com/oauth/callback"
  ],
  "token_endpoint_auth_method": "private_key_jwt",
  "jwks_uri": "https://connector.example.com/oauth/jwks.json",
  "token_endpoint_auth_signing_alg": "RS256"
}

The jwks_uri must be on the same host as client_id. The authorization server fetches it to verify your assertion signature. Only RS256 is supported.

Token endpoint call

When exchanging a code, add client_assertion_type and client_assertion to the token request instead of a client_secret:

POST https://api.typeform.com/oauth/token
Content-Type: application/x-www-form-urlencoded

grant_type=authorization_code
&client_id=https://connector.example.com/oauth/client-metadata.json
&redirect_uri=https://connector.example.com/oauth/callback
&code=<authorization code>
&code_verifier=<PKCE verifier>
&client_assertion=<signed JWT>
&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer

The assertion JWT must be signed with RS256 and include these claims:

ClaimValue
issYour client_id URL
subYour client_id URL
audThe token endpoint URL (https://api.typeform.com/oauth/token) or the issuer URL
expExpiry — at most 5 minutes from now
iatIssued-at time
jtiA unique value per request (prevents replay)

PKCE is still required — code_verifier must be present alongside the assertion.

Step 2: Use the URL as your client_id

Pass your document URL as client_id in every OAuth request. PKCE (code_challenge_method=S256) is required for CIMD clients — an authorization request without it is rejected with invalid_request.

Authorization request:

GET https://api.typeform.com/oauth/authorize
  ?response_type=code
  &client_id=https://connector.example.com/oauth/client-metadata.json
  &redirect_uri=https://connector.example.com/oauth/callback
  &scope=forms:read forms:write offline_access
  &code_challenge=<S256 challenge>
  &code_challenge_method=S256
  &state=<random state>

Token exchange:

POST https://api.typeform.com/oauth/token
Content-Type: application/x-www-form-urlencoded

grant_type=authorization_code
&client_id=https://connector.example.com/oauth/client-metadata.json
&redirect_uri=https://connector.example.com/oauth/callback
&code=<authorization code>
&code_verifier=<PKCE verifier>

Use the same client_id URL for token refresh calls.

Your document is fetched at the start of each authorization flow. Results are cached for up to one hour, so changes to your document may take up to an hour to apply.

What your users see

The Typeform consent screen shows:

  • Client name — the client_name from your document.
  • Client identity — the hostname of your client_id URL (for example, connector.example.com).

There is no logo on the CIMD consent screen.

One client_id across regions

Each Typeform authorization server fetches your document independently. A single client_id URL works with https://api.typeform.com and https://api.typeform.eu. Tokens remain scoped to the authorization server that issued them — they are not interchangeable across stacks.

See Data residency for endpoint routing.

Troubleshooting invalid_client

CauseFix
Document URL returns non-200 or redirectsServe the document directly at the client_id URL with 200 OK
Content-Type is not JSONSet Content-Type: application/json
client_id in the document doesn't match the fetch URLMake them identical, character for character
Redirect URI is not on the same host as client_idUse the same hostname, or use a loopback address for local testing
Document contains client_secretRemove it — CIMD clients never use a client secret; use private_key_jwt if you need stronger client authentication
token_endpoint_auth_method is private_key_jwt but jwks_uri is missingAdd jwks_uri — it is required for private_key_jwt clients
jwks_uri is on a different host than client_idThe jwks_uri must share the same hostname as client_id
Token request includes client_assertion but no client_assertion_typeSet client_assertion_type to urn:ietf:params:oauth:client-assertion-type:jwt-bearer
Assertion rejected with invalid_clientCheck that iss and sub equal your client_id, aud contains the token endpoint URL, exp is within 5 minutes, and jti is unique per request
Document exceeds 5 KBTrim it
URL resolves to a private IPThe authorization server blocks private networks; use a public host

Where to go next

Start with Core concepts: it covers the endpoints, data residency, and the OAuth flow you need before your first tool call, then the order the tools have to be called in.

From there, Supported tools is the full surface, and Not yet supported is what still needs the REST API — worth reading early, so you find the gaps before your users do.