---
title: 'MCP Server for Forms: Connect Claude, Cursor & VS Code'
description: 'Connect Claude, Cursor or VS Code to Deftform via the Model Context Protocol. Build forms, edit fields and analyze responses straight from your AI assistant.'
url: 'https://deftform.com/mcp-server'
updated_at: '2026-12-02'
---

Model Context Protocol

# Your forms, right inside your AI assistant

Connect Claude, Cursor or VS Code to Deftform. Build forms, update fields and dig into your responses by simply asking.

[Create a form](/register)
[Read the setup guide](https://help.deftform.com/mcp/using-the-deftform-mcp-server)

Works with the AI tools you already use

- Claude Code
- Claude Desktop
- Cursor
- VS Code
- and other MCP clients

What you can ask

## Just say what you need

Your assistant picks the right Deftform tools on its own. A few things our customers ask every day:

- ### Build forms

  “Create a registration form for our summer party with name, number of guests and food preferences.”

  create-form add-fields
- ### Refine fields

  “Make the phone number optional and move it below the email address.”

  update-field reorder-fields
- ### Analyze responses

  “How did sign-ups develop over the last three months, and what do people mention most?”

  get-response-stats
- ### Find answers

  “Show me all incomplete responses from last week.”

  list-responses get-response
- ### Share PDFs

  “Create a PDF of the latest application so I can forward it to the team.”

  get-response-pdf
- ### Test your forms

  “Submit a test response with realistic sample data.”

  get-form submit-response

14 tools

## Everything your assistant can do

Read tools are available with every token. Write tools only show up when your token has read & write access.

### Read

**get-workspace**

Workspace details, timezone and team members

**list-forms**

All forms with their response counts

**get-form**

Settings and fields of a form

**list-responses**

Responses filtered by completion and date

**get-response**

A single response with all answers

**get-response-stats**

Totals, trends, answer distributions and the AI summary

**get-response-pdf**

A PDF of a response, ready to download

### Read & write

**create-form**

A new form with name, description and messages

**update-form-settings**

Change settings or close a form

**add-fields**

Up to 50 fields at once, at any position

**update-field**

Labels, options, required status and more

**delete-field**

Remove a field, existing answers are kept

**reorder-fields**

Put all fields in a new order

**submit-response**

Send a response, e.g. to test a form

Setup

## Connected in three steps

1. 1
   ### Create an API token

   In your workspace settings under API, create a token with read access, or read & write if your assistant should create and change forms.
2. 2
   ### Add Deftform to your client

   Paste the server configuration into Claude Code, Claude Desktop, Cursor or VS Code and insert your token.
3. 3
   ### Start asking

   Every change your assistant makes shows up in Deftform right away, just as if you had made it yourself.

mcp.json

```
{
  "mcpServers": {
    "deftform": {
      "type": "http",
      "url": "https://deftform.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN"
      }
    }
  }
}
```

Some clients name the key “servers” instead of “mcpServers”. The setup guide has the details for each client.

## Security and control

- ### You decide what's allowed
  Read-only tokens can look, but never change anything.
- ### One workspace per token
  A token only ever sees the workspace it was created in.
- ### Revoke at any time
  Delete a token and access ends immediately.
- ### Hosted in Germany
  Your forms and responses stay on our servers in the EU.

FAQ

## Questions about the MCP server

### What is MCP?

The Model Context Protocol is an open standard that lets AI assistants use external tools. With the Deftform MCP server, your assistant can read and change your forms and responses on your behalf.

### Which AI assistants are supported?

Any MCP client that connects to remote servers with a token, for example Claude Code, Claude Desktop, Cursor and VS Code. ChatGPT and the claude.ai website are not supported yet, as they require signing in via OAuth instead of using a token.

### Can my assistant change or delete things?

Only with a token that has read & write access. With a read-only token, the write tools are not even visible to your assistant. Whole forms cannot be deleted via MCP, and when a field is deleted, existing responses keep their answers.

### Can it edit every field type?

Almost. HTML, image and embed fields can only be added and edited in the Deftform form builder.

### Does the MCP server cost extra?

No. The MCP server is included in Deftform. You only need an API token from your workspace settings.

[AI form builder
Prefer to stay in Deftform? Describe your form and get the fields in seconds.
Learn more](/ai-form-builder)
