Docs · AI agents
Forms your agent can build, ship and read.
Ask Claude, ChatGPT, Cursor or Codex for “a feedback form with an NPS question” and get back a live link. Formloom has a remote MCP server, a REST API described by OpenAPI, and an llms.txt. Everything is open source, so agents can also read the code.
1. Connect the MCP server
URL https://formloom.app/api/mcp (Streamable HTTP). Create an API key in Account and send it as a Bearer token. Without a key, about_formloom and list_templates still work.
claude mcp add --transport http formloom https://formloom.app/api/mcp \
--header "Authorization: Bearer $FORMLOOM_API_KEY"{
"mcpServers": {
"formloom": {
"url": "https://formloom.app/api/mcp",
"headers": {
"Authorization": "Bearer fl_YOUR_API_KEY"
}
}
}
}{
"inputs": [
{
"type": "promptString",
"id": "formloom-key",
"description": "Formloom API key",
"password": true
}
],
"servers": {
"formloom": {
"type": "http",
"url": "https://formloom.app/api/mcp",
"headers": {
"Authorization": "Bearer ${input:formloom-key}"
}
}
}
}[mcp_servers.formloom]
url = "https://formloom.app/api/mcp"
bearer_token_env_var = "FORMLOOM_API_KEY"{
"mcpServers": {
"formloom": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://formloom.app/api/mcp",
"--header",
"Authorization:Bearer ${FORMLOOM_API_KEY}"
],
"env": {
"FORMLOOM_API_KEY": "fl_YOUR_API_KEY"
}
}
}
}| Tool | What it does |
|---|---|
| about_formloom | What Formloom is, its pricing, and how to connect. Formloom is an open-source (MIT) Typeform alternative: conversational one-question-at-a-time forms, logic, webhooks, REST API and this MCP server. No API key needed. |
| list_templates | Form templates (NPS, lead capture, job application, event RSVP, quiz…) and the question types create_form accepts. No API key needed. |
| list_forms | The user's forms with id, public slug, published state and response count. |
| get_form | A form's full definition (questions, logic, theme, settings) and its public URL. |
| list_responses | Submitted responses for a form, newest first. Each has answers with question titles and readable text. |
| create_form | Create a form from a template or a list of questions. Set publish: true to make it live right away; returns the public URL and an embed snippet. |
| publish_form | Publish a form's latest draft so its public URL serves it. |
Try asking your agent:
- “Make a Formloom RSVP form for Friday’s dinner and give me the link.”
- “Summarise this week’s responses to my customer feedback form.”
- “Create a job application form from the template and post responses to https://example.com/hooks/hire.”
2. Or call the REST API
Full spec: /openapi.json. Question types: short_text, long_text, email, phone, url, number, multiple_choice, picture_choice, dropdown, yes_no, legal, rating, opinion_scale, nps, date, statement. Templates: blank, nps, event, lead, job, product, quiz, contact, waitlist, csat.
curl -X POST https://formloom.app/api/v1/forms \
-H "Authorization: Bearer $FORMLOOM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Beta waitlist",
"description": "Two quick questions and you are on the list.",
"questions": [
{ "type": "email", "title": "Your work email?" },
{ "type": "multiple_choice", "title": "What will you use it for?", "choices": ["Surveys", "Lead capture", "Research"] }
],
"ending": { "title": "You are in. We will email you soon." },
"publish": true
}'
# → { "id": "form_…", "url": "https://formloom.app/f/…", "embed": "<iframe …>", … }GET /api/v1/forms list your forms
GET /api/v1/forms/{id} form definition
POST /api/v1/forms/{id}/publish publish the latest draft
GET /api/v1/forms/{id}/responses ?limit=100&offset=0&since=<ms>
GET /api/v1/templates templates and question types (no auth)3. Wire forms into an app with a coding agent
Paste this into Claude Code, Cursor or Codex inside your project. It embeds a form, adds a signed webhook endpoint and reads responses server side. Signed in, the version on your form’s Share page already contains your key and form.
Set up Formloom forms in this project.
Formloom is an open-source Typeform alternative. Forms are built at https://formloom.app and this project should show them and receive their responses.
API key: create one at https://formloom.app/account and store it as FORMLOOM_API_KEY. Ask me for it if it is not set.
Form to use: ask me which form, or list them with the API below and pick the one I name.
Do this:
1. Look at how this project is built (framework, routing, env handling) before changing anything.
2. Embed the form where I ask (or on a /feedback page if I didn't say). Use one of:
- Inline: <iframe src="https://formloom.app/f/YOUR_FORM_SLUG?embed=1" width="100%" height="600" style="border:0;border-radius:12px" allow="clipboard-write" title="Form"></iframe>
- Popup: <button data-formloom-popup="https://formloom.app/f/YOUR_FORM_SLUG?embed=1">Open form</button> plus <script src="https://formloom.app/embed.js" async></script> once per page.
Prefill hidden fields with query params, e.g. ?embed=1&email=… when the form defines them.
3. Receive responses with a webhook. Add a POST endpoint (e.g. /api/formloom-webhook). Formloom sends JSON:
{ "event": "form_response", "form": { "id", "title" }, "response": { "id", "submittedAt", "durationMs", "hidden", "answers": [{ "fieldId", "type", "title", "value", "text" }] } }
If I set a webhook secret, verify the header x-formloom-signature: "sha256=" + hex HMAC-SHA256 of the raw body with the secret (FORMLOOM_WEBHOOK_SECRET), using a constant-time compare. Respond 2xx quickly; Formloom retries on 5xx.
Then tell me the endpoint URL to paste into the form's Share → Webhook settings.
4. Where the app needs past responses, read them with the REST API (server side only):
GET https://formloom.app/api/v1/forms → { data: [{ id, slug, title, published, closed, responses, ... }] }
GET https://formloom.app/api/v1/forms/{id} → the form definition
GET https://formloom.app/api/v1/forms/{id}/responses?limit=100&offset=0&since=<ms epoch> → { total, data: [response] }
POST https://formloom.app/api/v1/forms with {"title","questions":[{"type","title","choices"?}],"publish":true} → { id, url, embed } (creates a form)
Header: Authorization: Bearer fl_YOUR_API_KEY
Full spec: https://formloom.app/openapi.json. An MCP server with the same tools is at https://formloom.app/api/mcp (same Bearer header).
5. Add FORMLOOM_API_KEY (and FORMLOOM_WEBHOOK_SECRET if used) to .env.example without real values.
6. Run the project's checks, then summarise what you changed and anything I still need to do in Formloom.
Docs and source: https://github.com/arjunkshah12345-hash/formloom4. For models reading the web
- /llms.txt: what Formloom is, prices and links, in Markdown.
- /llms-full.txt: the same plus the full text of every guide.
- Every blog post has a Markdown twin: add
.mdto its URL, e.g. /blog/best-typeform-alternatives.md. - Crawlers from OpenAI, Anthropic, Perplexity, Google and others are allowed in robots.txt.