Motivation Form Docs

MCP integration — Generic

Protocol reference for connecting any MCP-compatible client to Motivation Form.

This guide covers the Motivation Form MCP server protocol for any MCP-compatible client — Cursor, Windsurf, or a custom agent you build yourself.

Server endpoint

POST https://form.motivationlabs.ai/api/mcp

The server speaks MCP over HTTP using JSON-RPC 2.0.

Authentication

Pass your API key as a Bearer token in every request:

Authorization: Bearer YOUR_API_KEY

Get an API key from your account settings.

Client configuration

Cursor

Add to .cursor/mcp.json in your project or ~/.cursor/mcp.json globally:

{
  "mcpServers": {
    "motivation-form": {
      "url": "https://form.motivationlabs.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Windsurf / Codeium

Add to your Windsurf agent config:

{
  "mcp_servers": [
    {
      "name": "motivation-form",
      "url": "https://form.motivationlabs.ai/api/mcp",
      "auth": {
        "type": "bearer",
        "token": "YOUR_API_KEY"
      }
    }
  ]
}

Custom client

Send a JSON-RPC request to the MCP endpoint:

curl -X POST https://form.motivationlabs.ai/api/mcp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "list_forms",
      "arguments": {}
    }
  }'

Tool schema discovery

List all available tools:

curl -X POST https://form.motivationlabs.ai/api/mcp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

MCP discovery

The server publishes a discovery document at:

GET https://form.motivationlabs.ai/.well-known/mcp.json

MCP-aware clients can auto-discover the server URL and available tools from this endpoint.

Available tools (summary)

ToolDescription
create_formCreate a new form
update_formPatch an existing form's config
add_fieldAppend a field
deploy_formMake the form live
get_formFetch config and stats
list_formsList all forms
list_submissionsPaginated submissions with optional date filter
get_submissionSingle submission by ID
get_form_statsViews, submissions, completion rate
get_submission_reportStructured Markdown report
export_submissionsCSV, JSON, or Markdown export

OpenAPI spec

The REST API is fully documented at:

GET https://form.motivationlabs.ai/api/openapi.json

On this page