# Formhaus

Checks Formhaus form definitions against the real engine and runs multi-step paths with test data. Works offline, no account needed.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 8 repo stars
- Author: formhaus-dev
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/formhaus-dev/formhaus/tree/HEAD/packages/mcp
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/formhaus

## What it does

The server brings ten tools: `validate_definition` finds errors in form JSON and returns patches for automatic fixes; `fix_definition` applies safe fixes right away; `simulate_path` runs a form fill with given answers, shows visible fields at each step, validation errors and final submit values. `capabilities` describes field types, rules and condition operators. Three tools — `translation_template`, `example_definitions` and `capabilities` — provide reference.

The other five tools (`publish_form`, `list_forms`, `get_submissions`, `update_form_settings`, `get_webhook`, `reveal_webhook_secret`) talk to Formhaus Cloud at `https://api.formhaus.dev`. They need `FORMHAUS_API_KEY` in the server environment: add it to the `env` field in `.mcp.json` or `claude_desktop_config.json`, then restart the server. An account key (`fh_live_...`) grants access to all forms and all six tools; an agent key (`fh_agent_...`) reaches only the forms it created, and the last three tools still require an account key. Without a key, `publish_form` will create a form and return an agent key once.

Requires Node 22.12 or later. The simulator does not run custom validators, `onStepValidate` or lifecycle hooks.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add formhaus -- npx -y @formhaus/mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp -- npx -y @formhaus/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@formhaus/mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@formhaus/mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp npx -y @formhaus/mcp
```

## When to use it
- check a form JSON schema and get a list of fixes
- run a multi-step form fill with test data
- publish a form to Formhaus Cloud and get an endpoint
- fetch submitted form data via API
- generate a translation template for a form in another language

## Example prompts
- Check the form schema in `contact.json` and apply all safe fixes
- Run the form from `survey.json` with answers `{"kind": "business"}` to the end
- Publish the form from `feedback.json` to Formhaus Cloud

## Similar
- [form-testing](https://affpapa.org/en/nevibecode/skills/form-testing.md) — skill · 493 installs
- [mantine-form](https://affpapa.org/en/nevibecode/skills/mantine-form.md) — skill · 2900 installs
- [regle](https://affpapa.org/en/nevibecode/skills/regle.md) — skill · 269 installs
- [collect-user-input](https://affpapa.org/en/nevibecode/skills/collect-user-input.md) — skill · 4100 installs
- [form-design](https://affpapa.org/en/nevibecode/skills/form-design.md) — skill · 2400 installs
- [safe-action-validation-errors](https://affpapa.org/en/nevibecode/skills/safe-action-validation-errors.md) — skill · 1200 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
