Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

Formhaus

@formhaus-devRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

Validate Formhaus form definitions and simulate multi-step paths against the real engine.

Forms & surveysv0.15.3MITTypeScript
Freeno charge per call

Runs on your machine from its package; the steps are below.

An agent publishes a waitlist form, the hosted form takes a response, and the agent reads it back
From the README · 1 of 3

What it does

  1. Reads
  2. Writes
  3. High impact

At most: creates or changes data: records, files, settings.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

npm@formhaus/mcpv0.15.3

Run

npx -y @formhaus/mcp

MCP client config

{
  "mcpServers": {
    "formhaus": {
      "command": "npx",
      "args": [
        "-y",
        "@formhaus/mcp"
      ]
    }
  }
}
README6 min read

Formhaus

Tests npm core size MIT license

Write your forms once, render everywhere.

One JSON definition holds fields, validation, conditions, steps and branching.
Render it in your React or Vue app, natively in Swift or Kotlin, or publish it as a hosted form.

React · Vue · Swift · Kotlin · MCP · Figma Plugin

Documentation · Get started · Playground · Formhaus Cloud


Add Formhaus to your coding agent

bash
npx formhaus

Adds the Formhaus MCP server to Claude Code, Codex, Cursor and Claude Desktop. Writes, checks and repairs definitions locally, with no account · Setup for each client

Two independent ways to use it:

  • Use the library. MIT, no account, no key. The core is framework-agnostic and runs the form in any app; React and Vue renderers are ready to use. Your submit handler sends the data wherever you want. CI tests React 18 and 19, and Vue 3.3 and 3.5.

    bash
    npm install @formhaus/core   # plus @formhaus/react or @formhaus/vue
    
  • Use Formhaus Cloud. A hosted form backend: a submission endpoint with server validation, a dashboard and webhooks, plus hosted links, embeds and a visual builder. The first form needs no account.

    Build in the browser at app.formhaus.dev, or add the remote MCP server and ask your agent: "Make me a waitlist form and give me the link."

    bash
    claude mcp add --transport http formhaus https://api.formhaus.dev/mcp
    

    Cloud quickstart · Connect Claude · Dashboard · Pricing

An agent publishes a waitlist form, the hosted form takes a response, and the agent reads it back

What you get

Feature
One definitionFields, validation, conditional fields, steps, branching routes, sections and repeatable groups in one JSON file you keep in git
React and VueNative renderers with accessible defaults, or your own components through components
ValidationBuilt-in rules and custom validators. validateSubmission() checks the same definition on the server
AgentsThe MCP server writes, validates and fixes definitions. Remote MCP publishes forms and reads responses
i18nTranslation catalogs and keys for labels, messages and options
AccessibilityLabels, error summary, focus management and live regions built in
Small coreZero dependencies, tree-shakable ESM
FigmaThe plugin renders mockups, flow maps and prototypes from the same definition
Cloud, optionalHosted links, embeds, a submission endpoint, CSV export and webhooks

What it's for

Example

Business accounts get a company step; everyone converges on review.

json
{
  "$schema": "https://formhaus.dev/schema/form-definition.json",
  "id": "signup",
  "title": "Sign up",
  "submit": { "label": "Create account" },
  "steps": [
    {
      "id": "account",
      "title": "Account",
      "fields": [
        { "key": "email", "type": "email", "label": "Email", "validation": { "required": true } },
        { "key": "kind", "type": "radio", "label": "Account type", "autoAdvance": true,
          "options": [{ "value": "personal", "label": "Personal" }, { "value": "business", "label": "Business" }] }
      ],
      "routes": [
        { "to": "company", "show": [{ "field": "kind", "eq": "business" }] },
        { "to": "review" }
      ]
    },
    { "id": "company", "title": "Company", "routes": [{ "to": "review" }],
      "fields": [{ "key": "company", "type": "text", "label": "Company name", "validation": { "required": true } }] },
    { "id": "review", "title": "Review",
      "fields": [{ "key": "terms", "type": "checkbox", "label": "I accept the terms", "validation": { "required": true } }] }
  ]
}
tsx
import { FormRenderer } from '@formhaus/react';
import definition from './signup.json';

<FormRenderer definition={definition} onSubmit={save} />;

Compare with react-hook-form, react-jsonschema-form, JSON Forms and SurveyJS →

Packages

PackageDescriptionnpm
@formhaus/coreZero-dependency form engine: types, validation, visibility, multi-stepnpm i @formhaus/core
@formhaus/reactReact adapter with native HTML defaults and custom component supportnpm i @formhaus/core @formhaus/react
@formhaus/vueVue 3 adapter with native HTML defaults and custom component supportnpm i @formhaus/core @formhaus/vue
@formhaus/mcpMCP server: validate definitions and simulate paths from AI agentsclaude mcp add formhaus -- npx -y @formhaus/mcp

@formhaus/figma generates form mockups on the Figma canvas. It is not on Figma Community yet; build it locally, then import packages/figma/manifest.json.

Svelte, Solid, or anything else: use @formhaus/core directly. See the Svelte recipe.

Install

bash
npm install @formhaus/core

If you need a framework adapter:

bash
npm install @formhaus/core @formhaus/react   # React
npm install @formhaus/core @formhaus/vue     # Vue

Or use @formhaus/core directly with any framework. See the Svelte recipe.

Quick start

Define a form

Write the JSON by hand, or use the /formhaus:formhaus-create-form Claude Code skill to generate it from a text description, a CSV table, or a screenshot of an existing form.

json
{
  "$schema": "https://formhaus.dev/schema/form-definition.json",
  "id": "contact",
  "title": "Contact Us",
  "submit": { "label": "Send" },
  "fields": [
    {
      "key": "name",
      "type": "text",
      "label": "Name",
      "placeholder": "Your name",
      "validation": { "required": true, "minLength": 2 }
    },
    {
      "key": "email",
      "type": "email",
      "label": "Email",
      "placeholder": "you@example.com",
      "validation": {
        "required": true,
        "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
        "patternMessage": "Please enter a valid email address"
      }
    },
    {
      "key": "message",
      "type": "textarea",
      "label": "Message",
      "placeholder": "How can we help?",
      "rows": 4,
      "validation": { "required": true }
    }
  ]
}

React

bash
npm install @formhaus/core @formhaus/react
tsx
import { FormRenderer } from '@formhaus/react';
import definition from './contact-form.json';

function ContactPage() {
  async function handleSubmit(values: Record<string, unknown>) {
    await fetch('/api/contact', {
      method: 'POST',
      body: JSON.stringify(values),
    });
  }

  return <FormRenderer definition={definition} onSubmit={handleSubmit} />;
}

Vue

bash
npm install @formhaus/core @formhaus/vue
vue
<script setup lang="ts">
import { FormRenderer } from '@formhaus/vue';
import definition from './contact-form.json';

async function handleSubmit(values: Record<string, unknown>) {
  await fetch('/api/contact', {
    method: 'POST',
    body: JSON.stringify(values),
  });
}
</script>

<template>
  <FormRenderer :definition="definition" @submit="handleSubmit" />
</template>

By default, both adapters render native HTML inputs. A step can hide Next with next: false, and cancellable async hooks run before and after navigation and submission. See lifecycle hooks.

Custom components

Both adapters accept a components prop (a FieldComponentMap) that lets you swap native HTML inputs for your own UI kit.

React
tsx
import type { FieldComponentMap, FieldComponentProps } from '@formhaus/react';

function MyTextInput({ field, value, error, onChange, onBlur }: FieldComponentProps) {
  return (
    <div>
      <label>{field.label}</label>
      <input
        type={field.type}
        value={(value as string) ?? ''}
        placeholder={field.placeholder}
        onChange={(e) => onChange(e.target.value)}
        onBlur={onBlur}
      />
      {error && <span className="error">{error}</span>}
    </div>
  );
}

const components: FieldComponentMap = {
  text: MyTextInput,
  email: MyTextInput,
};

<FormRenderer definition={definition} onSubmit={handleSubmit} components={components} />;
Vue
vue
<!-- MyTextInput.vue -->
<script setup lang="ts">
import type { FieldComponentProps } from '@formhaus/vue';

const props = defineProps<FieldComponentProps>();
const emit = defineEmits<{ (e: 'update:modelValue', value: unknown): void }>();
</script>

<template>
  <label>{{ props.field.label }}</label>
  <input
    :value="(props.modelValue as string) ?? ''"
    @input="emit('update:modelValue', ($event.target as HTMLInputElement).value)"
  />
</template>
vue
<!-- Usage -->
<script setup>
import { FormRenderer } from '@formhaus/vue';
import MyTextInput from './MyTextInput.vue';
</script>

<template>
  <FormRenderer
    :definition="definition"
    :components="{ text: MyTextInput, email: MyTextInput }"
    @submit="handleSubmit"
  />
</template>

Each field component receives the full FormField descriptor, the current value, and any validation error. Implement as many or as few field types as you need. Unmapped types fall back to native HTML.

Figma plugin

@formhaus/figma renders form definitions in Figma with built-in Material 3 and iOS-like kits or with your own components. Branching forms get a flow map, multi-step forms a clickable prototype, and a generated form can be selected, edited and updated in place.

The Formhaus plugin editing a branching form next to its flow map

Clicking through a generated prototype

The /formhaus:formhaus-figma-connect Claude Code skill binds your library's components to the plugin. See the plugin guide for local installation.

Contributing

See CONTRIBUTING.md.

License

MIT

Similar modules

Browse Forms & surveys