Falkenstein, Germany · Hetzner Online GmbH
FormHaven

Let Claude Code add a contact form that works

Paste the prompt below into Claude Code in your site's folder. It writes the form into your site and gives you a link. You press Activate, and every message is stored in Germany and emailed to you.

Or let Claude Code start without an account: it sends you the link.

Paste into Claude Code
Add a working contact form to this site with FormHaven.
Read https://formhaven.net/llms.txt and follow
"Start without an account". Then give me the link
to switch the form on.

What happens

  1. 1

    Claude Code reads the instructions

    It fetches https://formhaven.net/llms.txt, which tells an agent how to reserve a form without an account.

  2. 2

    It reserves the form and writes the code

    One request returns the form address. Claude Code puts it in your contact form's action, with every input named and the hidden spam trap.

  3. 3

    You open the link and press Activate

    Create an account or log in, then press the button. Until then the form refuses posts and stores nothing.

  4. 4

    Send a test

    Fill in your form. The message lands in your inbox, with the visitor as the reply address.

Let it change settings afterwards

Once the form is active, the setup key Claude Code got works on our MCP server for 30 days. Add it once and ask in plain words: keep messages 90 days, send copies to my client, give me the privacy text in Dutch.

Terminal
claude mcp add --transport http formhaven https://formhaven.net/mcp \
  --header "Authorization: Bearer YOUR_KEY"

Ask for the privacy text too

Your privacy policy needs a paragraph about the form. Claude Code can fetch one filled in from the form's real settings and add it to your privacy page.

Paste into Claude Code
Get the FormHaven privacy text for our contact form in
English and add it to the privacy page. Put the notice
line above the form's Send button.

Questions about this setup

Do I need an API key first?
No. Claude Code starts the form without one, and the key it gets works for 30 days once you have pressed Activate. For longer, create a key in the dashboard and connect it yourself.
What does Claude Code change in my site?
The contact form's action address, the names of its inputs and one hidden input that traps bots. If you ask for it, the privacy page too. Review the diff like any other change.
Does it work with any framework?
Yes. The form posts to FormHaven, so it works in plain HTML, Astro, Next.js, Hugo or anything else that renders a form. Ask for React and it can fetch a ready component.
Can my client get the messages?
Yes. Add up to 5 more addresses to the form. Each one confirms by a link first, and their copy carries no FormHaven branding.
Where is the data stored?
On our server at Hetzner in Falkenstein, Germany, for as long as you set per form, or not at all. A data processing agreement covers every account.

More to read

Form backend for AI agentsEvery REST route and MCP tool Astro contact formA Contact.astro component for a static Astro site HTML form to emailOne line in the action, every message in your inbox Static site contact formOne form for Astro, Hugo, Eleventy, Jekyll or plain HTML Hugo contact formA partial and a shortcode for a static Hugo site Lovable contact formOne prompt for a site built with Lovable GDPR compliant contact formEU storage, a DPA and retention you set Kontaktformular nach DSGVOAuf Deutsch: gespeichert in Deutschland, mit AVV JavaScript contact formA fetch script that keeps the visitor on the page Vercel contact formFor plain HTML, Astro or Next.js hosted on Vercel FormSubmit not workingThe usual causes of a silent FormSubmit form Web3Forms not workingThe usual causes of a silent Web3Forms form Eleventy contact formAn include for a static Eleventy (11ty) site Formspree not workingThe usual causes of a silent Formspree form Export from FormspreeEvery Formspree submission, as a file Export from FormsparkEvery Formspark submission, as a file EmailJS not workingThe usual causes of a silent EmailJS form Cursor contact formThe prompt and the .cursor/mcp.json entry Contact form privacy policyThe paragraph to copy, in 8 languages GitHub Pages contact formFor user, organisation and project sites on github.io Cloudflare Pages contact formFor sites on pages.dev or your own domain Netlify contact formFor sites on netlify.app or your own domain React contact formOne component for Vite and other React apps Next.js contact formA client component that works with output: export Send form submissions to multiple emailsUp to 5 confirmed addresses per form, plus yours SvelteKit contact formOne Svelte 5 component, any adapter Nuxt contact formOne Vue component for Nuxt 4 and 3 Gatsby contact formOne component for a Gatsby 5 site HTML form webhookSigned JSON to your endpoint for every message Jekyll contact formAn include for Jekyll, on GitHub Pages or any host Angular contact formA standalone component that posts with HttpClient Contact form spamWhy forms get spam, and the layers that stop it Contact form honeypotThe hidden field that catches bots, and how to hide it Contact form without PHPFor hosts with no PHP, or mail() that lands in spam HTML form mailtoWhy action="mailto:" fails on webmail visitors, and the one-line fix Contact form templateThe same form in plain HTML Pricing€1 per form a month, €0.50 from the 11th

Get your form address in a minute

14 days free, no card. Then €1 per form a month, €0.50 from the 11th form.

Start your 14-day trial