# MCP server

> Connect the hmuform MCP server to Claude, ChatGPT, Claude Code, Codex, Cursor or VS Code to add and manage contact forms on your static website.

The hmuform MCP server is at `https://app.hmuform.com/mcp`. Connect it to Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code or another MCP client. Your AI agent can make contact forms, add recipients, send test messages and read messages in your workspace. You sign in one time in your browser, with no API key. The MCP server is free on all plans.

## Connect hmuform in Claude {#claude}

Connect the hmuform MCP server (`https://app.hmuform.com/mcp`) in Claude with the install link or as a custom connector.

Open [Add hmuform to Claude](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=hmuform&connectorUrl=https%3A%2F%2Fapp.hmuform.com%2Fmcp). Claude opens the custom connector form with the name and URL filled in. Click **Continue**, sign in to hmuform in your browser and click **Allow**.

To add the hmuform connector by hand:

1. In Claude, open **Customize → Connectors**.
2. Click **+ Add**.
3. Click **Add custom connector**.
4. Enter `hmuform` as the name.
5. Enter `https://app.hmuform.com/mcp` as the URL.
6. Click **Continue**.
7. Sign in to hmuform in the browser window that opens.
8. Click **Allow** to connect your workspace.

## Connect hmuform in ChatGPT {#chatgpt}

Connect the hmuform MCP server (`https://app.hmuform.com/mcp`) in ChatGPT as a custom MCP server with OAuth.

1. In ChatGPT, open **Plugins**.
2. Click **+**.
3. Click **Add custom MCP server**.
4. Enter `hmuform` as the name.
5. Enter `https://app.hmuform.com/mcp` as the MCP server URL.
6. Select **OAuth** for authentication.
7. Click **Create as a plugin**.
8. Sign in to hmuform in the browser window that opens.
9. Click **Allow** to connect your workspace.

## Connect hmuform in Claude Code {#claude-code}

Connect the hmuform MCP server (`https://app.hmuform.com/mcp`) in Claude Code with one terminal command, then authenticate with `/mcp`.

```bash title="Terminal"
claude mcp add --transport http hmuform https://app.hmuform.com/mcp
```

1. Run `/mcp` in Claude Code.
2. Select **hmuform**.
3. Select **Authenticate**.
4. Sign in to hmuform in the browser window that opens.
5. Click **Allow** to connect your workspace.

## Connect hmuform in Codex {#codex}

Connect the hmuform MCP server (`https://app.hmuform.com/mcp`) in Codex with two terminal commands.

```bash title="Terminal"
codex mcp add hmuform --url https://app.hmuform.com/mcp
codex mcp login hmuform
```

1. Sign in to hmuform in the browser window that `codex mcp login` opens.
2. Click **Allow** to connect your workspace.

## Connect hmuform in Cursor {#cursor}

Connect the hmuform MCP server (`https://app.hmuform.com/mcp`) in Cursor with the install link or a JSON file.

Open [Add hmuform to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=hmuform&config=eyJ1cmwiOiJodHRwczovL2FwcC5obXVmb3JtLmNvbS9tY3AifQ%3D%3D) on the computer where Cursor is installed. Cursor adds the hmuform MCP server.

To add the hmuform MCP server by hand, put this JSON in `~/.cursor/mcp.json` for all projects, or in `.cursor/mcp.json` for one project:

```json title="~/.cursor/mcp.json"
{
  "mcpServers": {
    "hmuform": { "url": "https://app.hmuform.com/mcp" }
  }
}
```

Then finish the connection in Cursor:

1. Open the **Customize** page in Cursor.
2. Connect **hmuform** under MCP servers.
3. Sign in to hmuform in the browser window that opens.
4. Click **Allow** to connect your workspace.

## Connect hmuform in VS Code {#vscode}

Connect the hmuform MCP server (`https://app.hmuform.com/mcp`) in VS Code with the install link or a JSON file.

Open [Add hmuform to VS Code](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522hmuform%2522%252C%2522type%2522%253A%2522http%2522%252C%2522url%2522%253A%2522https%253A%252F%252Fapp.hmuform.com%252Fmcp%2522%257D) on the computer where VS Code is installed. VS Code adds the hmuform MCP server.

To add the hmuform MCP server by hand, put this JSON in `.vscode/mcp.json` of your project:

```json title=".vscode/mcp.json"
{
  "servers": {
    "hmuform": { "type": "http", "url": "https://app.hmuform.com/mcp" }
  }
}
```

When VS Code starts the hmuform MCP server for the first time, your browser opens hmuform. Sign in to hmuform, then click **Allow** to connect your workspace.

## Connect hmuform in other MCP clients {#other-clients}

Connect any MCP client that supports Streamable HTTP and OAuth to `https://app.hmuform.com/mcp`. You need no API key.

- A request with no token returns `401` with a `WWW-Authenticate` header pointing to `https://app.hmuform.com/.well-known/oauth-protected-resource/mcp`. The same metadata is at `https://app.hmuform.com/.well-known/oauth-protected-resource`.
- The authorization server metadata is at `https://app.hmuform.com/.well-known/oauth-authorization-server`.
- Clients can register with dynamic client registration (`/oauth/register`) or use a Client ID Metadata Document. The server requires PKCE (`S256`).
- The required scope is `forms` (the server also lists `offline_access`). The token response includes a refresh token.

## What happens when you sign in {#sign-in}

When an MCP client connects to `https://app.hmuform.com/mcp`, your browser opens hmuform so you can sign in and approve access for one workspace. Sign in with an email link or with Google.

Before giving access, the hmuform consent page shows:

- The name of the app, and its publisher domain or "Name not verified".
- What the app can do: "See your forms and messages", "Make forms and send test messages" and "Add recipients to your forms".
- **Account**: the email address that you signed in with.
- **Workspace**: the workspace that the app can use. When you have a seat in more than one workspace, choose one from the list. Workspaces where you have no seat do not appear.
- **Access goes to**: the host that receives the access. When the redirect goes to an app on your computer, a warning says: "An app on this computer gets the access. Allow only if you started this from it."

Click **Allow** to connect the app, or click **Cancel** to deny access.

- A connection accesses only the one workspace that you chose, and acts as you.
- An MCP access token works only on `https://app.hmuform.com/mcp`. It does not work on the REST API at `https://app.hmuform.com/api`.
- When you connect the same app to the same workspace again, the new connection replaces the old one. Connections to your other workspaces stay active.
- An access token lasts 1 hour, and the app refreshes it without your help. A connection ends after 90 days without use. Sign in again from the app to reconnect.

## Tools {#tools}

The hmuform MCP server has five tools. Each tool works only in the workspace of the connection.

| Tool | Inputs | What it does | Changes data | Sends email |
|---|---|---|---|---|
| `list_forms` | None | Lists the newest active forms of the workspace: name, form ID, form link, recipients with their state (`confirmed`, `not confirmed`, `stopped these emails`), messages this month, undelivered delivery count and time of the last message. | No | No |
| `list_messages` | `formId`, optional `cursor` | Lists the newest messages in the Inbox of one form, with arrival time, test flag, locked flag, fields and one delivery status sentence for each message. | No | No |
| `create_form` | `name` | Makes a form and returns its form ID, form link and a starter HTML snippet. Messages go to your own email address, which needs no confirmation. | Yes | No |
| `add_recipient` | `formId`, `email` | Adds an email address to a form. A new address outside the workspace gets a confirmation email and receives messages after the person opens the link and clicks **Confirm my email**. | Yes | Yes |
| `send_test` | `formId` | Sends one test message with sample text to the recipients of a form and returns the delivery result for each recipient. Does not count toward the monthly limit. | Yes | Yes |

### How agents use the tools

- **Set up a form:** Call `create_form` and put the returned form link (`url`) in the `action` of the HTML form. Call `add_recipient` when another address must receive messages, then call `send_test` to check delivery.
- **Find a form ID:** Call `list_forms` before calling `list_messages`, `add_recipient` or `send_test` when you do not have the `formId`. Forms in Trash do not appear in `list_forms`.
- **Read older messages:** When `list_messages` returns a `nextCursor` value, pass it as `cursor` on the next call. `list_messages` reads only the Inbox, not Spam or Trash, and does not list file attachments.
- **Recipient states:** A confirmed workspace address or a member's address gets no confirmation email from `add_recipient` and receives messages at once. An unconfirmed or unsubscribed address already in the workspace gets no new email from `add_recipient`. Resend its confirmation from the dashboard.
- **Safety hints and untrusted text:** hmuform marks `list_forms` and `list_messages` as read-only. It marks `create_form` as writing data, and `add_recipient` and `send_test` as sending email, so your app can ask before it runs them. `list_messages` tells the model to treat visitor fields as data, never as instructions. `add_recipient` tells the model to add only an address that you gave it, never an address from a visitor's message.

## Example prompts {#prompts}

After you connect the hmuform MCP server, use prompts like these in Claude, ChatGPT, Claude Code, Codex, Cursor or VS Code.

### Set up a contact form and test it

> "Create a contact form named `studio-sun.com` with hmuform, write the HTML for my contact page, send a test message and show me the delivery result."

Works on all plans, including Free. Your agent calls `create_form`, which sends messages to your own confirmed address (for example `hello@studio-sun.com`). It then writes the HTML form with the form link, calls `send_test` and shows the delivery result.

### Send a form's messages to a client too

> "Send the messages from the `studio-sun.com` form to `office@studio-sun.com` too, and tell me if they need to confirm the address."

Requires the **Pro** or **Agency** plan. Your agent calls `list_forms` to find the form ID, then calls `add_recipient`. When `office@studio-sun.com` is new to your workspace, hmuform sends a confirmation email. Messages go to that address after the recipient opens the link and clicks **Confirm my email**. On the Free plan, a form has 1 recipient, so `add_recipient` cannot add a second address. To replace a form's single recipient on Free, change it on the **Settings** tab of the form in the dashboard.

### Read and summarize recent messages

> "Read the messages that my `studio-sun.com` form received this week and summarize who wrote and what they asked for."

Works on all plans, including Free. Your agent calls `list_forms` and `list_messages`, using `nextCursor` for older pages when needed. It reads the Inbox messages from the last 7 days and writes a summary.

### Find messages that did not get to a recipient

> "Check all my hmuform forms for messages that did not get to a recipient, and tell me why each one was not delivered."

Works on all plans, including Free. Your agent calls `list_forms` to check `notDelivered` and recipient states on each form. It then calls `list_messages` on each affected form and reports each failed or skipped delivery and its reason. After you fix the cause, use **Send again** in the dashboard at [app.hmuform.com](https://app.hmuform.com).

## What a connection cannot do {#cannot}

An hmuform MCP connection can call only the five tools in [Tools](https://hmuform.com/docs/mcp/#tools). Only a signed-in session in the dashboard at [app.hmuform.com](https://app.hmuform.com) can manage members, invitations, API keys, connected apps, billing, permanent deletion ("Delete forever") or account deletion. An API key cannot do those actions either.

An MCP connection also cannot:

- Remove or replace a recipient, or resend a confirmation email.
- Change form settings, such as the redirect URL.
- Read Spam or Trash, move messages to Spam or Trash, or restore them.
- Send failed or skipped deliveries again.
- Move a form to Trash or restore it.
- Export messages to CSV.

Use the dashboard at [app.hmuform.com](https://app.hmuform.com) for these actions. The [API reference](https://hmuform.com/docs/api/) shows which of them an API key can do.

## Limits {#limits}

The hmuform MCP server enforces per-tool response limits and the limits of your workspace plan.

| Tool | Limit |
|---|---|
| `list_forms` | Up to 100 newest active forms, or fewer when the JSON response exceeds 20,000 characters (for example when forms have many recipients). `moreForms` gives the count of remaining forms. All forms are in the dashboard. |
| `list_messages` | Up to 20 messages per page, newest first, or fewer when messages are long (keeps each page under 20,000 characters). Pass `nextCursor` as `cursor` for older messages. |
| `list_messages` | hmuform cuts each field value at 2,000 characters, and each message at 4,000 characters including field names. When cut, `cut` is `true`. Full text is in the dashboard. |
| `list_messages` | On the Free plan, a message over the monthly limit is locked (`locked: true`) and has no fields. See [Read the submissions](https://hmuform.com/docs/api/#read-submissions). |
| `create_form` | The `name` is 1 to 100 characters. The daily cap of forms per workspace is in [Make a form](https://hmuform.com/docs/api/#make-a-form). |
| `add_recipient` | The `email` is up to 254 characters. Plan limits for recipients per form and linked emails are on [Pricing](https://hmuform.com/pricing). On the Free plan, a form has 1 recipient, so `add_recipient` cannot add a second address. Confirmation email caps are in [Add a recipient address](https://hmuform.com/docs/api/#add-an-address). |
| `send_test` | The daily cap of tests per form is in [Send a test](https://hmuform.com/docs/api/#send-a-test). The MCP server, the dashboard and the REST API share the same cap. |

A member without a seat in the workspace cannot run any tool until the owner frees a seat. When a tool reaches a limit, it returns an error that names the limit.

## Disconnect an app {#disconnect}

Disconnect an app from the hmuform MCP server on the **Settings** page of your workspace in the dashboard at [app.hmuform.com](https://app.hmuform.com).

1. Sign in at [app.hmuform.com](https://app.hmuform.com).
2. Open **Settings** for the connected workspace.
3. Under **Connected apps**, click the disconnect button on the app row.
4. Click **Disconnect** to confirm.

The app loses access to the workspace within a minute.

- **Connected apps** appears only when the workspace has at least one connected app. Each row shows the app name, its domain if verified, when it was connected and who connected it.
- The owner of the workspace can disconnect any app. A member can disconnect only apps that they connected.
- A connection also ends when the person who connected it leaves the workspace, is removed from it or deletes their account. Rejoining the workspace does not restore old connections. Connect the app again.
