Browse and search developers

MCP server

Connect Cursor to FormitAI

Add the FormitAI MCP server to Cursor’s mcp.json with OAuth sign-in or a workspace API key header.

On this page
  1. Where the config goes
  2. Option 1: OAuth (recommended)
  3. Option 2: workspace API key
  4. Check the connection
  5. Tips for agent sessions

Cursor connects to remote MCP servers listed in an mcp.json file. Add FormitAI there and Cursor’s agent can read, build and publish forms in your workspace. Use OAuth unless you need a headless or header-only setup. The OAuth config has no secret, so it is safe to share in a project.

Where the config goes

  • Global, for every project: ~/.cursor/mcp.json.
  • One project: .cursor/mcp.json in the project root. Only commit it if it contains no API key.

If the file already has an mcpServers object, add the formit entry next to your other servers.

Copy the "Cursor / Claude (OAuth - no API key)" snippet from Dashboard, Settings, API keys & MCP, or use this:

.cursor/mcp.json
{
  "mcpServers": {
    "formit": {
      "url": "https://api.formitai.com/api/v1/mcp"
    }
  }
}
  1. Save the file. Cursor tries to connect, gets a 401 from FormitAI, and finds the OAuth server from the WWW-Authenticate header.
  2. Cursor registers itself through dynamic client registration and shows that the formit server needs authentication. Start the sign-in from Cursor’s MCP settings.
  3. A browser opens on FormitAI. Sign in, choose the workspace on the Connect MCP screen, and select Allow.
  4. Cursor receives the token and lists FormitAI’s tools. Access tokens last one hour and Cursor renews them with the refresh token.

Option 2: workspace API key

Use a key when you want Cursor to connect without a browser sign-in. An Owner or Admin creates the key under Workspace keys on the same settings page. The "Cursor (mcp.json)" snippet in the Connect an MCP client card fills in a newly created key for you.

~/.cursor/mcp.json
{
  "mcpServers": {
    "formit": {
      "url": "https://api.formitai.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer fmt_live_YOUR_KEY"
      }
    }
  }
}

Check the connection

  1. Open Cursor’s MCP settings and confirm formit shows as connected with its tools listed.
  2. In an agent chat, ask "List my FormitAI forms". Cursor should call list_forms.
  3. If you see 401, sign in again (OAuth) or check the key. A FORBIDDEN tool error means the connected role cannot do that action.

Tips for agent sessions

  • Mutations are live and count toward a limit of 120 per workspace per hour. Ask the agent to plan the whole form first, then write it in one pass.
  • Destructive tools (delete_question, publish_form, unpublish_form, delete_webhook, rotate_webhook_secret) need confirm: true. Keep Cursor’s tool-call approval on for them.
  • If a tool returns recoverable: false, the agent should stop rather than repeat the same call.

Ready?

Build your first AI form in minutes.

No credit card. Generate from a prompt, enable follow-ups, and publish a link or embed the same day.