agentform-mcp
v1.0.0
Published
MCP server for AgentForm — fill forms via AI agents
Readme
AgentForm MCP Server
An MCP server that lets AI agents (Claude Code, Cursor, etc.) fill and submit AgentForm forms.
Tools
| Tool | Description |
|------|-------------|
| get_form | Retrieve form schema by URL or ID/slug |
| start_session | Start a new fill session |
| fill_form | Fill one or more fields (mergeable, call multiple times) |
| get_session | Review current session state before submitting |
| submit_form | Submit the completed form |
Setup
1. Build the server
cd mcp-server
npm install
npm run build2. Add to Claude Code (~/.claude/claude_desktop_config.json)
{
"mcpServers": {
"agentform": {
"command": "node",
"args": ["/absolute/path/to/AgentForm/mcp-server/dist/index.js"],
"env": {
"AGENTFORM_BASE_URL": "http://localhost:3000"
}
}
}
}3. Add to Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"agentform": {
"command": "node",
"args": ["/absolute/path/to/AgentForm/mcp-server/dist/index.js"],
"env": {
"AGENTFORM_BASE_URL": "http://localhost:3000"
}
}
}
}Restart your AI assistant after updating the config.
Usage example
In a Claude Code session:
I need to fill this form: http://localhost:3000/forms/my-form-abc1
Here's my context:
- Name: Jane Smith
- Email: [email protected]
- ...The agent will:
- Call
get_formto read the schema - Call
start_sessionto create a session - Call
fill_formwith inferred answers - Ask you for any missing required fields
- Call
get_sessionto review with you - Call
submit_formto submit
Environment variables
| Variable | Default | Description |
|----------|---------|-------------|
| AGENTFORM_BASE_URL | http://localhost:3000 | Base URL of the AgentForm app |
