A contact form Cursor's agent sets up for you
Ask Cursor's agent to add the form. It writes the code and gives you a link to switch it on. Add our MCP server to Cursor and it can change every setting afterwards.
Or let Cursor start without an account: it sends you the link.
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.
Set it up
-
1
Ask the agent
Paste the prompt into Cursor's agent in your site's project. It reads https://formhaven.net/llms.txt and reserves a form.
-
2
Review the change
The agent sets your form's action to the new address, names every input and adds the hidden spam trap.
-
3
Press Activate
Open the link the agent gives you, create an account or log in, and press the button.
-
4
Add the MCP server
Put the entry below in .cursor/mcp.json with the key, and the agent can change settings and read submissions.
Add FormHaven to .cursor/mcp.json
Cursor reads MCP servers from .cursor/mcp.json in your project, or ~/.cursor/mcp.json for every project. Keep the key in an environment variable so it stays out of the repository.
{
"mcpServers": {
"formhaven": {
"url": "https://formhaven.net/mcp",
"headers": {
"Authorization": "Bearer ${env:FORMHAVEN_KEY}"
}
}
}
}
Questions about this setup
- Where does Cursor read the MCP config from?
- From .cursor/mcp.json in the project, or ~/.cursor/mcp.json in your home folder, according to Cursor's MCP documentation (cursor.com/docs/context/mcp). ${env:NAME} is filled in from your environment.
- Which key goes in the config?
- The setup key the agent got when it reserved the form, for 30 days after you have pressed Activate, or a key you create on the API keys page of the dashboard, which does not expire.
- Does Cursor need an account with you first?
- No. The agent starts the form without one; you create the account when you press Activate.
- 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
Get your form address in a minute
14 days free, no card. Then €1 per form a month, €0.50 from the 11th form.