Prefer to use a long-lived token instead (for scripts, CI, or a client that doesn’t support OAuth yet)?
Formbricks API keys still work as a fallback — see the MCP server technical
handbook.
The MCP server URL
Point your client at your Formbricks app’s/api/mcp endpoint:
How the connection works
You don’t need to understand the details to connect, but here’s what happens under the hood when you add the server to a client:- Discovery — the client reads the server’s OAuth metadata to find where to sign in.
- Registration — the client registers itself automatically using Dynamic Client Registration (DCR). There’s no client ID or secret for you to manage.
- Sign in & consent — your browser opens to Formbricks. You log in (if you aren’t already) and approve the requested access on a consent screen.
- Token — the client receives a short-lived access token it sends on every request, plus a refresh token so it can stay connected without asking you to sign in again.
What the agent can do
The MCP server exposes survey, creative, workflow, response, feedback-record, chart and dashboard tools, grouped into authorization scopes. Read tools require the matching:read scope; tools that create, update, or
delete require the :write scope. Everything below is offered on the consent screen:
¹
test_workflow is a dry-run (no changes are saved), so it only needs the workflows:read scope — but because it evaluates the live workflow definition, it requires write or manage permission on the workspace. A read-only member will get a 403 even though the scope matches.
² Changing a record that already exists is held to a higher bar than creating one, because a feedback dataset shared across workspaces has no way to tell whose records are whose. Connected over OAuth (the flow on this page), both tools require you to be an organization owner or manager. Authenticated with an API key instead, they require the dataset to be assigned to a single workspace — a workspace-scoped key cannot be shown to own a record in a shared one — and delete_feedback_record additionally requires manage permission, matching DELETE elsewhere in the API. Creating, reading and searching are unaffected either way.
³ get_chart_data reads a saved chart’s numbers. Pass dashboardId to read it through a dashboard it sits on,
exactly as the dashboard shows it, with the dashboard’s filters (picks); without it the chart is read on its
own, as before. list_dashboard_filter_fields lists the embedded-data fields a dashboard can be filtered on, and
list_dashboard_filter_values the values a dashboard filter offers, to pass as picks. All three need
feedbackRecords:read as well, except for a Dashboard viewer: its client holds only dashboards:read and reads
charts, filter fields and filter values through their dashboards with that alone. Running a query of your own (preview_chart) or listing a field’s stored values (list_chart_field_values) always needs
feedbackRecords:read — a dashboards grant alone never runs arbitrary queries over feedback. All three also need
read access to the chart’s feedback dataset.
A response is someone’s submitted answers, so grant responses:read deliberately — it is respondent
data, which surveys:read never exposes. An integration you connected before these scopes existed
keeps working with the access it already has. If it requests the scopes the server advertises, as MCP
clients like Claude Code do, it asks you to approve the response scopes the next time it signs in.
Scope groups are independent — a client can be granted feedback-record access without survey access, or
the other way around. list_workspaces is available to any read scope, since every other tool needs a
workspace id.
The feedback-record tools work with Unify Feedback data and need the Enterprise Edition
(
feedbackDirectories), plus a feedback dataset assigned to the workspace. Without the entitlement or a
directory, those tools return an authorization or validation error while the survey tools keep working.The chart and dashboard tools need the Dashboards feature (an add-on on Formbricks Cloud, or an Enterprise
license that includes it). Without it they answer
dashboards_plan_required. A chart can sit on several
dashboards, so update_chart changes it on all of them; to change it on one, duplicate_chart and point that
dashboard’s widget at the copy with update_widget. duplicate_dashboard shares the original’s charts rather
than copying them, and remove_chart_from_dashboard keeps the chart.The creative tools manage Creatives, the feedback buttons and banners on your
website. They need a self-hosted instance whose Enterprise license includes Creatives; elsewhere they answer
creatives_not_entitled. If the license stops including Creatives, the tools can still list and read
creatives and pause, close or delete them. A creative is created as a draft unless create_creative sets
status, patch_creative replaces each group it sends as a whole, and restore_creative always brings a
creative back as a draft.count_feedback_records
answers “how many” without fetching the records themselves — so an agent can report totals without pulling
anyone’s feedback text into the conversation.
The two search tools match by meaning rather than keywords (“checkout is confusing” finds “I couldn’t
figure out how to pay”), and find_similar_feedback_records shows how widely one piece of feedback is
echoed by others. They rely on the feedback service having an embedding model configured; on
self-hosted installs without one they report that they are unavailable. Newly created records become
searchable a short while after they arrive, and records without text are never searchable.
Prerequisites
- A Formbricks account with access to the workspace whose surveys you want to work with. Read-only tasks need
read; creating or editing surveys needswriteormanage. - The MCP server URL for your instance (see the table above).
- An MCP client that supports remote HTTP servers with OAuth — see the setup guides for Claude Code, the Claude apps, and Codex.
Self-hosting? The OAuth provider is built in and enabled automatically — there’s nothing extra to turn
on. It just needs your instance to be served from a correct, public HTTPS base URL (set via
WEBAPP_URL
/ BETTER_AUTH_URL). The discovery metadata and browser redirects are built from that URL, so an
http://localhost or misconfigured origin will break the OAuth flow for remote clients. See the
self-hosting configuration.Kubernetes deployments that cannot reach their own public origin can set MCP_OAUTH_JWKS_URL to
the internal Formbricks /api/auth/jwks endpoint. This changes only the server-side key fetch;
OAuth discovery, issuers, redirects, cookies, and audiences remain on the public URL. The standard
path applies only when Formbricks is not mounted below a custom subpath. For an installation mounted
at /formbricks, configure the complete internal URL, for example
http://formbricks:3000/formbricks/api/auth/jwks.Next steps
Set up your MCP client
Copy-paste guides for Claude Code, the Claude apps (custom connectors), and Codex — plus how to manage and
revoke access.