Core concepts

How to reach the server, how to authenticate against it, and the order things have to happen in.

Connecting to the Typeform MCP server

You can connect to the Typeform MCP server at this address:

https://api.typeform.com/mcp

Our MCP server only supports the newer streamable HTTP transport, and we don't offer an SSE endpoint. Clients configured for SSE will fail to connect.

Data residency

Typeform accounts are hosted in more than one region, and each region has its own MCP endpoint. If you're building a connector that serves multiple customers, you must send each request to the endpoint for that account's region — this is a routing requirement, not an edge case.

Account hostingMCP endpointAuthorization server
Defaulthttps://api.typeform.com/mcphttps://api.typeform.com
EU data center 1https://api.eu.typeform.com/mcphttps://api.typeform.com
EU data center 2https://api.typeform.eu/mcphttps://api.typeform.eu

The two EU endpoints are not interchangeable. api.eu.typeform.com is an EU resource served by the main authorization server. api.typeform.eu is a separate stack with its own issuer, authorization endpoint, token endpoint, and signing keys — an access token issued by one is not valid at the other.

Find out which region an account is in

EU data residency is an Enterprise plan feature. Customers in an Enterprise plan account can ask their Customer Success Manager for support.

accounts-list_accounts reports a region for each account it returns:

{
  "items": [
    { "account_id": "01JXM…RPSQ", "name": "Acme",    "region": null, "role": "owner" },
    { "account_id": "01KGE…K4R8", "name": "Acme US", "region": "us",  "role": "member" },
    { "account_id": "01JXC…GHMA", "name": "Acme EU", "region": "eu",  "role": "admin" }
  ]
}

A region of null means the default hosting. Treat the field as open-ended rather than matching on a fixed set: route on the value you get, and fall back to the default endpoint for anything you don't recognise.

Resolve it once, when the user authorizes, store it alongside their token, and route their subsequent calls to the matching endpoint. Don't infer the region per request, and don't try one endpoint and fall back on failure — to your customer, that reads as an outage.

If an account the user expects isn't in the list, don't conclude it doesn't exist. Ask which region they're in and try that endpoint — a listing from one endpoint may not include accounts hosted in another.

Authentication

The MCP server uses OAuth 2.0. When you connect, you should be prompted to grant OAuth access to your Typeform account with the required scopes.

Each tool's required scopes are listed in Supported tools. Currently, users can't customize the scopes they grant: they have to grant access to all the scopes to connect to the MCP server. The authoritative list of scopes the server accepts is the scopes_supported field of its metadata, described below; OAuth 2.0 scopes covers the REST APIs, and Applications covers registering an OAuth app by hand.

Discover the configuration, don't hard-code it

You don't need to hard-code endpoints, and you shouldn't — it's what makes a connector break when it meets an account in another region. An unauthenticated call to any MCP endpoint returns 401, and its WWW-Authenticate response header (auth scheme: Bearer) carries the pointer you need:

Header parameterValue
resource_metadatahttps://api.typeform.com/.well-known/oauth-protected-resource
scopeEvery scope that endpoint accepts, space-separated

The protected-resource document names the resource, the authorization server that protects it, and the scopes it accepts. The authorization server in turn publishes its own metadata at /.well-known/oauth-authorization-server, including its authorization, token, and CIMD support flag (client_id_metadata_document_supported: true).

Walking that chain is how a connector resolves an account's region correctly rather than guessing. Most MCP client libraries do it for you; if you're implementing the OAuth layer yourself, follow it.

Identify your client with a metadata document

Connectors identify themselves using a Client ID Metadata Document — a small JSON file hosted at a stable HTTPS URL. That URL is your client_id. The authorization server fetches the document at the start of each authorization flow and trusts it. No registration call, no provisioned secret.

PKCE (code_challenge_method=S256) is required for all CIMD clients. Most connectors use token_endpoint_auth_method: none (public client, PKCE only). Connectors that need stronger client authentication can use token_endpoint_auth_method: private_key_jwt and sign their token requests with an RS256 JWT — see Build an MCP connector. No client secret is ever accepted.

See Build an MCP connector for the document format, requirements, and a worked example.

If your client doesn't support CIMD yet, we may exceptionally add it to our Dynamic Client Registration (DCR) allowlist. Submit your request here.

Applications covers registering an OAuth app by hand for REST API use.

Ask for a refresh token if you need one

If your integration has to act after the initial access token expires, request the refresh-token scope — the authorization server advertises it as offline_access in its metadata — alongside the others. Without it you won't be issued a refresh token, and your connector will stop working partway through a user's session, usually well after you've stopped watching for it.

Resolve the account first

Almost every tool requires an account_id, and the access token alone doesn't imply one. Call accounts-list_accounts immediately after a user authorizes, and pass the result to subsequent calls. This is the most common cause of failed first calls.

Users may have access to more than one account. If your connector supports that, let the user choose rather than defaulting silently — operating on the wrong account is hard for them to detect afterwards.

Call order

Some tools exist to be called before others. They return the vocabulary the other tools accept, so skipping them means guessing.

Before you…CallWhy
do anythingaccounts-list_accountsResolves the account_id almost every tool needs
build or edit a formforms-public_get_capabilitiesReturns supported field types, block operations, and logic operators
run any analytics queryinsights-public_discoverReturns the queryable fields, measures, and dimensions for that form. Field IDs are per form
edit a pagepages-public_list_pages or pages-public_create_pageReturns the variant ID every draft editing tool needs
add or edit a page blockpages-public_get_block_catalogReturns the valid block types, variants, content schemas, and editable paths

forms-public_get_capabilities, insights-public_discover, and pages-public_get_block_catalog are stable within a session and safe to cache.

Tools are prefixed by domain, which is the fastest way to route a request. One rule that catches people: reacting to a form submission is an automation, not a form.

Editing forms

Form editing is patch-based, and validation is a required step in the chain — not an optional dry run:

get_capabilities  →  validate_patch    →  patch_form       →  publish_form
                     returns a            requires that       makes changes
                     validation_token     validation_token    live
  1. forms-public_get_capabilities — once, cached. Build your ops using only the field types, operations, and operators it returns.
  2. forms-public_validate_patch — validates your ops against the form draft without saving. Returns a validation_token.
  3. forms-public_patch_form — applies the ops. Requires the validation_token from step 2. Saves to the draft.
  4. forms-public_publish_form — makes the draft live.

patch_form does not publish. A connector that stops there leaves the user's changes invisible, which reads as a bug in your product. Only publish when the user explicitly asks for the form to go live.

forms-public_update_form_metadata changes title without a patch operation.

Applying a theme to a form

Styling a form goes through the same chain. set_theme is a patch operation rather than its own tool: resolve a theme ID with themes-public_list_themes (or create one with themes-create_theme), then pass set_theme through forms-public_validate_patch and forms-public_patch_form, and publish when the user asks.

Reading form responses

Response data is read through the insights-* tools:

ToolUse for
insights-public_discoverRequired first — resolves the schema
insights-public_aggregateCounts, sums, averages, NPS
insights-public_toplistTop-N and rankings, grouped by one or two dimensions
insights-public_timeseriesMeasures bucketed from hour to year, with up to two breakdown dimensions
insights-public_listEvery answer to a single question
insights-public_list_responsesOne row per respondent: several questions side by side, plus submission time, device, and hidden fields

Insights queries support a filter grammar covering answers.<field_id>, hidden.<name>, tags, and response_type, with ranking and payment sub-paths and and/or filter groups.

Use insights-public_list_responses whenever you need two or more questions from the same respondent; joining paginated insights-public_list results yourself is slower and error-prone. For bulk export, response deletion, or the answer types list_responses doesn't return, use the REST Responses API — see Not yet supported.

Building pages

Pages follow the same draft-then-publish model as forms, without the validation token. Every edit goes to a variant's draft, and visitors see nothing until you publish it:

list_pages / create_page      returns the variant ID
          ↓
get_block_catalog             block types and content schemas
          ↓
get_draft                     view: skeleton returns the block IDs
          ↓
add_block, update_block,      edit the draft
remove_block, set_theme,
set_metadata, set_settings
          ↓
publish_variant               makes the draft live
  1. pages-public_list_pages returns each page's default_variant_id; pages-public_create_page returns variant.id for a new, empty page.
  2. pages-public_get_block_catalog — build initialContent and initialSettings from the schemas it returns, and use its editablePaths for pages-public_update_block.
  3. pages-public_get_draft with view: skeleton lists the existing blocks and their IDs, which you need for placement and edits.
  4. Edit the draft. Each editing tool validates before writing and applies its operations atomically. navbar must be first, hero directly after it, and footer last; each can appear only once.
  5. pages-public_publish_variant makes the draft live and returns the public URL. Publishing again with no new changes returns the same revision.

pages-public_get_page tells you whether a page is live and whether it has unpublished changes.

Applying a theme to a page

To style a page, apply a page theme with pages-public_set_theme. Page themes are separate from form themes and use different tools for now: list them with themes-list_page_themes or create one with themes-create_page_theme.

Connecting a custom domain

Serving a page on a customer's own domain takes two sets of tools: accounts-public_* tools own the domain, and pages-public_* tools route it to a page.

  1. accounts-public_create_domain with the customer's hostname. It returns the DNS records the customer has to add.
  2. The customer adds the records at their DNS provider. If the domain has setup.automatic_setup, give them the link from accounts-public_create_domain_setup_link instead, which configures DNS for them.
  3. accounts-public_revalidate_domain once DNS is in place. Propagation can take a while; it's safe to retry.
  4. When the status is verified, pages-public_create_page_domain_route serves a page at / or at a single-segment path. A route on an unverified domain fails with DOMAIN_NOT_VERIFIED.

A route only serves content once the page is published — check serves_content on the route.