Browse and search developers
MCP server
Connect Claude to FormitAI
Add the FormitAI MCP server to Claude with OAuth sign-in or a workspace API key, using the config FormitAI generates in Settings.
On this page
Claude can build and publish FormitAI forms through the FormitAI MCP server. The recommended setup is OAuth: you give Claude the MCP URL, sign in to FormitAI in your browser and pick a workspace, and no secret is stored on your machine. If your Claude setup only supports a static header, use a workspace API key instead.
Before you start
- A FormitAI account that is a member of the workspace you want Claude to use.
- To publish forms through Claude, an Owner or Admin role in that workspace. Members can create and edit but not publish.
- The MCP URL:
https://api.formitai.com/api/v1/mcp. It is also shown on Dashboard, Settings, API keys & MCP.
Option 1: OAuth (recommended)
Add FormitAI as a remote MCP server using only the URL. In clients that take a JSON config, this is the "Cursor / Claude (OAuth - no API key)" snippet from the OAuth / Connect card in FormitAI settings:
{
"mcpServers": {
"formit": {
"url": "https://api.formitai.com/api/v1/mcp"
}
}
}For Claude Code, add the same URL from the terminal and then authenticate from inside Claude Code:
claude mcp add --transport http formit https://api.formitai.com/api/v1/mcp
# then, inside Claude Code, run /mcp and choose formit to sign in- Claude makes its first request with no token. FormitAI answers
401with aWWW-Authenticateheader that points to its OAuth metadata. - Claude registers itself with FormitAI and opens a FormitAI sign-in page in your browser.
- Sign in with your existing FormitAI account. On the Connect MCP screen, choose the workspace Claude should work in and select Allow.
- Your browser returns to Claude, which now holds a one-hour access token and renews it automatically.
Option 2: workspace API key
- In FormitAI, open Dashboard, Settings, API keys & MCP. An Owner or Admin creates a key under Workspace keys and copies the secret, which is shown once.
- Copy the "Claude Desktop (claude_desktop_config.json)" snippet from the Connect an MCP client card. If you just created a key, the snippet already contains it. Otherwise replace
fmt_live_YOUR_KEY. - Add the
formitentry undermcpServersin your Claude config file and restart Claude.
{
"mcpServers": {
"formit": {
"url": "https://api.formitai.com/api/v1/mcp",
"headers": {
"Authorization": "Bearer fmt_live_YOUR_KEY"
}
}
}
}claude mcp add --transport http formit https://api.formitai.com/api/v1/mcp \
--header "Authorization: Bearer fmt_live_YOUR_KEY"The key acts as the person who created it, with that person’s current workspace role. Keep the config file private, never commit it, and revoke the key in FormitAI settings when you no longer need it.
Check the connection
Ask Claude something like "List the FormitAI block types" or "Show my FormitAI forms". Claude should call list_block_types or list_forms. If you see a 401, reconnect (OAuth) or check that the key has not been revoked or mistyped. A FORBIDDEN tool error means your role does not allow the action.
Working with Claude safely
- Changes apply to the form right away. Ask Claude to create a new draft form instead of editing a live one.
- Publishing, unpublishing and deleting questions need
confirm: true. Claude will usually ask you first. Approve only what you expect. - Ask Claude to run
validate_publishbefore publishing so plan or permission problems show up before anything changes.
Related
Can't find what you need?