GUIDE · MCP

Claude MCP server tutorial: build a form by prompt, read the leads by question

5 min read·Updated 26 September 2026·Claude Code · claude.ai · MCP
Claude Code in a terminal (session translated from German): the prompt for a project-inquiry form called Projektanfrage, then the tool calls list_forms, list_organizations, create_form, update_form_settings, create_action twice for the e-mail and the auto-reply, and get_embed, then the changed files kontakt.astro and danke.astro and Claude's closing line that the form is created and built into kontakt.astro.

Every client site gets a proper form, yet the agency’s own contact page still says “just email us”. With Formdall’s MCP server, Claude fixes that in the same session in which it builds the rest of the site. This Claude MCP server tutorial walks through a real session: Claude Code creates a project-inquiry form and builds it into the page. On Monday, the managing director asks claude.ai which inquiries came in with a budget over 10,000 euros.

What MCP is, in three sentences

MCP (Model Context Protocol) is an open standard that lets Claude call the tools of another service. Formdall is such a service: our MCP server offers tools to create forms, actions and embed code. You connect it once, then you describe what you need, and Claude calls the right tools.

Connect the MCP server to Claude Code

In your website’s project folder:

Terminal
claude mcp add --transport http formdall https://app.formdall.de/mcp

Then start claude and run /mcp. Claude Code opens the browser, you sign in to Formdall and confirm the connection.

Formdall’s consent screen: Authorize Claude Code (formdall). The application may create and manage forms but cannot delete forms. Below it the signed-in address hallo@agentur.example and the unticked box Allow reading form submissions.

This screen holds the only decision you make: whether the connection may read submissions. For Claude Code we connect without the box. Whoever builds a form does not need to see the inquiries in it. Without the box, the two reading tools do not exist in this connection at all.

Build the form by prompt

The agency, based in Germany, writes one paragraph to Claude Code. The session ran in German; the prompt and Claude’s replies are translated here, the tool calls are shown as recorded:

Prompt in Claude Code
kontakt.astro is missing a form for project inquiries. Create a Formdall form
"Projektanfrage" with: name, email (required), project type (Website, Shop,
Relaunch, Other), budget (under 5k, 5-10k, 10-25k, over 25k), timeframe,
message. Send every inquiry to hallo@agentur.example, send senders a short
confirmation, turn on ALTCHA and only allow agentur.example. After submitting,
visitors should land on /danke. Then build the form into kontakt.astro.

That is why the field names and values in the calls below are German. Claude turned that into seven calls to Formdall:

  1. list_forms and list_organizations: Claude checks what already exists in the account and which workspace the form goes into.
  2. create_form: the form with six fields. Project type and budget are select fields with exactly the allowed values from the prompt. ALTCHA is on, and after submitting, visitors land on https://agentur.example/danke.
  3. update_form_settings: only agentur.example may submit the form.
  4. create_action, twice: an e-mail notification to hallo@agentur.example with the subject “Neue Projektanfrage”, and an auto-reply to the sender.
  5. get_embed: the endpoint, the ALTCHA URLs and a ready HTML snippet.

This is the call that created the form:

create_form
{
  "name": "Projektanfrage",
  "captcha": "altcha",
  "mode": "reject",
  "redirect_url": "https://agentur.example/danke",
  "fields": [
    { "name": "name", "type": "text", "required": false, "max_length": 200 },
    { "name": "email", "type": "email", "required": true },
    { "name": "projektart", "type": "select", "required": false, "allowed_values": ["Website", "Shop", "Relaunch", "Sonstiges"] },
    { "name": "budget", "type": "select", "required": false, "allowed_values": ["unter 5k", "5-10k", "10-25k", "über 25k"] },
    { "name": "zeitrahmen", "type": "text", "required": false, "max_length": 200 },
    { "name": "nachricht", "type": "text", "required": false, "max_length": 5000 }
  ]
}

mode: reject means Formdall turns down a submission whose budget is not on the list. Then Claude built the snippet into kontakt.astro, with labels, a multi-line message field and a thank-you page that did not exist yet. Shortened:

src/pages/kontakt.astro
---
const formAction = "https://api.formdall.de/api/v1/f/xxxx";
const altchaChallenge = "https://api.formdall.de/api/v1/altcha/challenge";
---

<form action={formAction} method="POST">
  <label>
    E-Mail *
    <input type="email" name="email" required autocomplete="email" />
  </label>

  <label>
    Budget
    <select name="budget" required>
      <option value="" disabled selected>Bitte wählen</option>
      <option>unter 5k</option>
      <option>5-10k</option>
      <option>10-25k</option>
      <option>über 25k</option>
    </select>
  </label>

  <!-- name, project type, timeframe, message and the spam-protection field left out -->

  <altcha-widget challenge={altchaChallenge} name="altcha"></altcha-widget>
  <button type="submit">Anfrage senden</button>
</form>

The whole session took just over a minute. Claude closed with a summary: which fields, where the e-mails go, what is protected, which files changed.

Test it

Send an inquiry from the published page. You land on /danke, hallo@agentur.example gets the notification, and the sender’s address gets the auto-reply. The test does not work on your own machine: the form only accepts submissions from agentur.example, not from localhost. Subdomains such as www.agentur.example are allowed along with it.

Monday: which inquiries are worth a call?

To read, the managing director connects Formdall to claude.ai: under Customize > Connectors, via Add, as a custom connector with the URL https://app.formdall.de/mcp. This time she ticks “Allow reading form submissions” on the consent screen. Only then does this connection have list_submissions and get_submission.

claude.ai with the question: which project inquiries came in last week with a budget over 10k, with a short summary of project type and timeframe. Below it the notes Searched available tools and Used Formdall integration. Claude answers that all stored submissions on the form Projektanfrage are timestamped today, not last week, and lists the ones over 10k anyway in a table: Lena Vogt, B2B shop, über 25k, Frühjahr. Sabine Kraus, relaunch with three languages, über 25k, Q1. Julia Becker, shop with about 400 items, 10-25k, bis Ende November.

claude.ai asks for permission before a Formdall tool runs. Choosing “Allow always” skips that prompt from then on. Claude first looked for the right form, then read the submissions. list_submissions returns each entry with its received_at date, and Claude checked it: our demo inquiries were only hours old, so none of them fell in last week. Claude said so, then listed the three with a budget over 10k anyway. That is the answer you want from an assistant: it answers the question you asked and says where the data does not fit it.

This works because Claude reads and filters, not the server. list_submissions has no date or field filter. It returns the latest 25 by default, up to 100 on request, each with sender and a short excerpt. To see the budget, Claude opens entries one by one. For an agency’s inbox that is plenty, but it is not an analytics tool. Also: reading over MCP marks nothing as read. The inquiries stay unread in the inbox until someone opens them there.

What the server cannot do

Delete. There is no tool for it, neither for forms nor for submissions. An assistant that gets it wrong can misconfigure a form or even deactivate it. It cannot remove anything for good, and everything can be turned back in the web app.

What you should still watch are actions. The server creates notifications to Slack, Discord, Telegram or ntfy without field values, with only the form name, the time and a link. Only you can switch the values on, in the web app. E-mail and webhook actions, on the other hand, send the full content to whatever address Claude enters. So after the session, check with list_actions or in the web app which actions were created. All tools at a glance are on the page AI integration over MCP.

Data protection: reading sends data to Anthropic

The build connection sends no inquiries to Claude. It only knows forms, fields and actions.

The reading connection does: whatever get_submission returns ends up in the conversation and is processed by Anthropic. Those are names, e-mail addresses and messages of people who wrote to you. Whether conversations are used for training depends on your plan and privacy setting. The agency remains responsible for that. Name this processing in your privacy policy, and check whether a data processing agreement with Anthropic covers your Claude plan. Anthropic says its DPA is part of the Commercial Terms, for example for Team, Enterprise and the API. For Free and Pro, Anthropic points to separate terms. What else a contact form needs is in our GDPR checklist for contact forms.

FAQ

Frequently asked questions

Does this work with Cursor, ChatGPT or other clients?

With any client that supports remote MCP servers with OAuth sign-in. We tested this example with Claude Code and claude.ai.

Do I need a particular Claude plan?

Any access that lets you use Claude Code works for the build part. Anthropic says custom connectors are available on all claude.ai plans, but Free is limited to one. On Team and Enterprise, an owner adds them in Organization settings.

Do I have to copy a token?

No. Sign-in runs over OAuth. You confirm the connection once in the browser, and there is no secret to keep.

Can Claude change an existing form?

Yes. update_form_fields changes the fields, update_form_settings changes settings such as allowed domains, captcha, redirect or retention period.

Can Claude delete anything?

No. The server has no tool that deletes a form or a submission. What should go, you delete in the web app, or it expires with the retention period.

Connect Formdall to Claude, in one command

Start for freeno credit card, ever
  • Free
  • 3 forms
  • 100 submissions/mo