FormFor MCP Server
Enables AI clients to create multi-field forms, send approval requests via email, and retrieve structured human responses. It facilitates human-in-the-loop workflows by allowing agents to collect data and check form completion status.
README
FormFor MCP Server
Remote MCP (Model Context Protocol) server for FormFor. Runs on Cloudflare Workers as a McpAgent Durable Object with SSE transport. Lets any MCP-compatible AI client create forms, collect data, and check responses.
Quick Start
Connect any MCP client to:
https://mcp.formfor.ai/sse
With header:
Authorization: Bearer ff_live_...
Tools
| Tool | Description |
|---|---|
formfor_ask |
Ask a human a yes/no question. Sends an email, returns { approved: true/false }. |
formfor_collect |
Collect structured data via a multi-field form. Supports 14 field types. |
formfor_check |
Check if a form has been completed and retrieve the response data. |
formfor_list |
List recent forms with optional status filter. |
formfor_ask
{
"question": "Deploy to production?",
"to": "ops@company.com",
"context": "All tests passing on staging",
"expires": "4h"
}
formfor_collect
{
"title": "Bug Report Triage",
"to": "eng@company.com",
"fields": [
{ "id": "severity", "type": "select", "label": "Severity", "options": ["P0", "P1", "P2"] },
{ "id": "description", "type": "textarea", "label": "Description", "required": true }
],
"expires": "24h"
}
formfor_check
{
"form_id": "form_abc123"
}
formfor_list
{
"status": "pending",
"limit": 10
}
Architecture
MCP Client --> SSE (/sse) --> FormForMCP (McpAgent Durable Object)
|
+-- API (service binding) -- form CRUD
+-- Agents (service binding) -- agent state
+-- D1 -- API key auth
Auth Flow
- MCP client connects to
/ssewithAuthorization: Bearer ff_live_... - Worker authenticates the API key against D1 (SHA-256 hash lookup)
- Auth header is captured in
onConnectand forwarded to API service binding on every tool call
Transport
SSE (Server-Sent Events) via the Agents SDK McpAgent.serveSSE(). CORS is configured for cross-origin access.
Development
npm install
npm run dev
Deployment
npm run deploy
Environment Variables
Bindings
| Binding | Type | Description |
|---|---|---|
MCP_AGENT |
Durable Object | FormForMCP class |
DB |
D1 | API key authentication |
API |
Service | formfor-api worker |
AGENTS |
Service | formfor-agents worker |
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.