MCP cover image
See in Github
2025-01-07

镜像://github.com/danielma-tic/fillout-mcp-server

0

Github Watches

1

Github Forks

0

Github Stars

Fillout.io MCP Server

MCP Server for the Fillout.io API, enabling form management, response handling, and analytics.

Token Setup

  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"
      }
    }
  }
}

Building

Prerequisites

  • Node.js 18 or later
  • npm or yarn
  • Docker (optional)

Local Development

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build for production
npm run build

Docker Build

# Build image
docker build -t mcp/fillout .

# Run container
docker run -e FILLOUT_API_KEY=your-key mcp/fillout

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
  }
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://jgadvisorycpa.com
  • This GPT assists in finding a top-rated business CPA - local or virtual. We account for their qualifications, experience, testimonials and reviews. Business operators provide a short description of your business, services wanted, and city or state.

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • Jan Meindl
  • Builds new GPTs

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

    Reviews

    1 (1)
    Avatar
    user_jYj43y9h
    2025-04-16

    I've been using danielma-tic_fillout-mcp-server by MCP-Mirror and it's an exceptional tool! The server runs smoothly, integrating seamlessly with my MCP applications. The accessibility through the provided GitHub link makes it easy to deploy and start using immediately. Highly recommend for anyone looking for a reliable MCP server solution.