Fillout MCP server

Integrates with Fillout API to create, manage, and analyze online forms and surveys for data collection.
Back to servers
Setup instructions
Provider
Daniel Ma
Release date
Jan 07, 2025
Language
TypeScript

The Fillout.io MCP Server enables interaction with the Fillout.io API, allowing you to manage forms, handle responses, and access analytics through a Model Context Protocol interface. This guide will help you set up and use the server effectively.

Token Setup

To get started with the Fillout.io MCP Server, you'll need an API key:

  1. Get your Fillout.io API Key:

    • Log in to your Fillout.io account
    • Go to Account Settings → API & Webhooks
    • Click "Create new API Key"
    • Copy your new API key
  2. API Key Information:

    • Production keys start with fo_live_
    • Test keys start with fo_test_
    • Test keys only work with test forms
    • API keys provide access to all resources in your account
  3. Replace your-fillout-api-key in the configuration with your API key.

⚠️ Security Notes:

  • Keep your API key secure and private
  • Use test keys for development
  • Store keys in environment variables
  • Rotate keys periodically
  • Never commit keys to version control

Token Troubleshooting

Common Error Messages

  1. "Invalid API key provided" or "Authentication failed"

    • Cause: API key is missing, malformed, or invalid
    • Solution:
      • Verify key starts with fo_live_ or fo_test_
      • Check for extra spaces or characters
      • Ensure environment variable is set correctly
      • Create a new key if necessary
  2. "Test mode key used with live form"

    • Cause: Using test key (fo_test_) with production form
    • Solution:
      • Use live key for production forms
      • Create test form for development
      • Switch to appropriate key type
  3. "Rate limit exceeded"

    • Cause: Too many API requests
    • Solution:
      • Implement request throttling
      • Check usage in dashboard
      • Optimize request patterns

Validation Steps

  1. Check API Key Format:

    • Key should start with 'fo_live_' or 'fo_test_'
    • Be approximately 50 characters
    • Contain only letters, numbers, and underscores
  2. Test API Key:

    curl -H "Authorization: Bearer your-api-key" \
      https://api.fillout.com/v1/api/forms
    

Features

Form Management

  • List all forms
  • Get form details
  • Create new forms
  • Delete forms
  • Update form settings

Response Handling

  • Submit form responses
  • Get form submissions
  • Filter responses
  • Export responses

Analytics

  • Response rates
  • Completion times
  • Submission trends

Tools

  1. list_forms

    • Get all accessible forms
    • Parameters:
      • limit (optional): Number of forms to return
      • offset (optional): Pagination offset
    • Returns: Array of form objects
  2. get_form

    • Get detailed form information
    • Parameters:
      • formId (string): Form identifier
    • Returns: Form details including questions and settings
  3. create_form

    • Create a new form
    • Parameters:
      • name (string): Form name
      • description (optional string): Form description
      • questions (array): Array of question objects
        • type: Question type (e.g., 'ShortAnswer', 'MultipleChoice')
        • name: Question text
        • required: Whether question is required
        • choices: Array of choices for multiple choice questions
    • Returns: Created form object
  4. get_form_responses

    • Get form submissions
    • Parameters:
      • formId (string): Form identifier
      • filters (optional): Response filters
      • pageSize (optional): Results per page
      • afterDate (optional): Filter by submission date
      • beforeDate (optional): Filter by submission date
      • status (optional): Filter by completion status
    • Returns: Array of form responses
  5. submit_form_response

    • Submit a new response
    • Parameters:
      • formId (string): Form identifier
      • responses (array): Array of answers
        • questionId: Question identifier
        • value: Response value
      • calculations (optional): Custom calculations
    • Returns: Submission confirmation

Setup

Usage with Claude Desktop

Docker Configuration

{
  "mcpServers": {
    "fillout": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "FILLOUT_API_KEY",
        "mcp/fillout"
      ],
      "env": {
        "FILLOUT_API_KEY": "your-fillout-api-key"
      }
    }
  }
}

NPX Configuration

{
  "mcpServers": {
    "fillout": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fillout"
      ],
      "env": {
        "FILLOUT_API_KEY": "your-fillout-api-key"
      }
    }
  }
}

Examples

Creating a Form

const form = await client.createForm({
  name: "Customer Feedback",
  description: "Please share your experience",
  questions: [
    {
      type: "ShortAnswer",
      name: "What did you like most?",
      required: true
    },
    {
      type: "MultipleChoice",
      name: "Would you recommend us?",
      required: true,
      choices: ["Yes", "No", "Maybe"]
    }
  ]
});

Submitting a Response

const response = await client.submitFormResponse(formId, {
  responses: [
    {
      questionId: "q1",
      value: "Great customer service!"
    },
    {
      questionId: "q2",
      value: "Yes"
    }
  ]
});

Error Handling

The server provides detailed error messages for common issues:

try {
  const forms = await client.listForms();
} catch (error) {
  if (error instanceof AuthenticationError) {
    // Handle invalid API key
  } else if (error instanceof FilloutError) {
    // Handle API-specific errors
  } else {
    // Handle unexpected errors
  }
}

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "fillout" '{"command":"npx","args":["-y","@modelcontextprotocol/server-fillout"],"env":{"FILLOUT_API_KEY":"your-fillout-api-key"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "fillout": {
            "command": "npx",
            "args": [
                "-y",
                "@modelcontextprotocol/server-fillout"
            ],
            "env": {
                "FILLOUT_API_KEY": "your-fillout-api-key"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "fillout": {
            "command": "npx",
            "args": [
                "-y",
                "@modelcontextprotocol/server-fillout"
            ],
            "env": {
                "FILLOUT_API_KEY": "your-fillout-api-key"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later