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
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.jsonin 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.
Option 1: OAuth (recommended)
Copy the "Cursor / Claude (OAuth - no API key)" snippet from Dashboard, Settings, API keys & MCP, or use this:
{
"mcpServers": {
"formit": {
"url": "https://api.formitai.com/api/v1/mcp"
}
}
}- Save the file. Cursor tries to connect, gets a
401from FormitAI, and finds the OAuth server from theWWW-Authenticateheader. - Cursor registers itself through dynamic client registration and shows that the
formitserver needs authentication. Start the sign-in from Cursor’s MCP settings. - A browser opens on FormitAI. Sign in, choose the workspace on the Connect MCP screen, and select Allow.
- 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.
{
"mcpServers": {
"formit": {
"url": "https://api.formitai.com/api/v1/mcp",
"headers": {
"Authorization": "Bearer fmt_live_YOUR_KEY"
}
}
}
}Check the connection
- Open Cursor’s MCP settings and confirm
formitshows as connected with its tools listed. - In an agent chat, ask "List my FormitAI forms". Cursor should call
list_forms. - If you see
401, sign in again (OAuth) or check the key. AFORBIDDENtool 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) needconfirm: 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.
Related
Can't find what you need?