Skip to main content
Glama

Kobo MCP

PyPI version

An MCP server for KoboToolbox that enables Claude to deploy surveys and fetch submissions.

Documentation

Requires Python 3.10+

Quick Start with Claude Code

Set your KoboToolbox API token, then register the server with a single command:

export KOBO_API_TOKEN="your-token-here"
claude mcp add kobotoolbox -- env KOBO_API_TOKEN=$KOBO_API_TOKEN uvx kobo-mcp

For the EU server, also pass the server URL:

export KOBO_API_TOKEN="your-token-here"
claude mcp add kobotoolbox -- env KOBO_API_TOKEN=$KOBO_API_TOKEN KOBO_SERVER=https://eu.kobotoolbox.org uvx kobo-mcp

That's it -- restart Claude Code and you can start managing KoboToolbox surveys directly from the CLI.

To get your API token, go to KoboToolbox -> Account Settings -> Security -> API Key.

Related MCP server: fillout-mcp-server

Features

  • info - Get help and discover workflows (translate, deploy, data export)

  • list_forms - List all KoboToolbox surveys

  • get_form - Get detailed form structure (JSON)

  • resolve_form - Find the form UID for an Enketo submission URL

  • export_form - Download an existing form as XLSForm (.xlsx)

  • get_submissions - Fetch survey responses with optional filtering

  • deploy_form - Upload and deploy new XLSForm files

  • replace_form - Update existing forms preserving submissions

  • set_validation_status - Approve, reject, or flag submissions

  • export_data - Export data as CSV or Excel

Installation

pip install kobo-mcp

Or run directly with uvx (no install needed):

uvx kobo-mcp

Configuration

Manual JSON configuration

If you prefer to configure Claude manually instead of using claude mcp add, add to ~/.claude.json:

{
  "mcpServers": {
    "kobotoolbox": {
      "type": "stdio",
      "command": "uvx",
      "args": ["kobo-mcp"],
      "env": {
        "KOBO_API_TOKEN": "your-token-here"
      }
    }
  }
}

For the EU server, add "KOBO_SERVER": "https://eu.kobotoolbox.org" to the env block.

Using with Claude Desktop

Add the same JSON block above to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Development

git clone https://github.com/bbdaniels/kobo-mcp.git
cd kobo-mcp
pip install -e .

Troubleshooting

"KOBO_API_TOKEN not set"

The server requires a KOBO_API_TOKEN environment variable. Make sure it is passed in the env block of your MCP configuration, or exported in your shell before running claude mcp add.

To get your token: log in to KoboToolbox -> Account Settings -> Security -> API Key.

Server not appearing in Claude Code

After running claude mcp add, restart Claude Code for the change to take effect. You can verify the server is registered by running:

claude mcp list

Connection errors or timeouts

  • Check that your API token is valid and has not been revoked.

  • If you are on the EU server (eu.kobotoolbox.org), make sure you set the KOBO_SERVER environment variable to https://eu.kobotoolbox.org.

  • The default server is https://kf.kobotoolbox.org. If your organization uses a custom KoboToolbox instance, set KOBO_SERVER to its URL.

"uvx: command not found"

Install uv first:

curl -LsSf https://astral.sh/uv/install.sh | sh

Or install with pip/pipx:

pip install uv

Python version errors

Kobo MCP requires Python 3.10 or later. Check your version with:

python3 --version

License

MIT

Available Tools

10 tools
deploy_formA

Upload and deploy a NEW XLSForm to KoboToolbox.

Creates a new form and makes it live. The XLSForm can include multiple languages via label::Language (code) columns.

To update an EXISTING form, use replace_form() instead — it preserves the form UID and all existing submissions.

Args: file_path: Path to the XLSForm (.xlsx) file. form_name: Optional name for the form (defaults to filename).

Returns: JSON object with uid, enketo_url (web form link), and management_url.

Inputs: file_path (required), form_name. Returns: result

export_dataB

Create and download a data export for a form.

Args: form_uid: The unique identifier (uid) of the form. export_type: Export format - 'csv' or 'xls' (default 'csv'). include_labels: Include question labels in headers (default True).

Returns: JSON object with export download URL or the data itself for small exports.

Inputs: form_uid (required), export_type, include_labels. Returns: result

export_formA

Download an existing form as an XLSForm (.xlsx) file.

This is essential for modifying existing forms — for example, adding translations. The typical workflow is:

  1. export_form() to get the .xlsx

  2. Edit the .xlsx (e.g., add label::Language columns for translations)

  3. replace_form() to redeploy with changes

Note: get_form() returns the JSON representation, not the XLSForm. Use this tool when you need the actual .xlsx to edit and re-upload.

Args: form_uid: The unique identifier (uid) of the form. output_path: Local file path where the .xlsx will be saved.

Returns: JSON object with form_uid, output_path, and form name.

Inputs: form_uid (required), output_path (required). Returns: result

get_formA

Get a form's JSON structure including questions, choices, and settings.

Returns the internal JSON representation — useful for inspecting form structure. To get the editable XLSForm (.xlsx), use export_form() instead.

Args: form_uid: The unique identifier (uid) of the form.

Returns: JSON object with form details including questions/fields.

Inputs: form_uid (required). Returns: result

get_submissionsA

Get submissions (responses) for a form.

Args: form_uid: The unique identifier (uid) of the form. limit: Maximum number of submissions to return (default 100). start: Offset for pagination (default 0). query: Optional JSON query string to filter submissions (e.g., '{"field": "value"}').

Returns: JSON object with count and list of submissions.

Inputs: form_uid (required), limit, query, start. Returns: result

infoA

Get help and discover KoboToolbox MCP capabilities and workflows.

Call this tool to learn what tools are available and how to use them together for common tasks like translating forms, deploying surveys, or exporting data.

Args: topic: Optional topic for detailed guidance. One of: "overview" (default) — list all tools and workflows "translate" — step-by-step guide to adding form translations "deploy" — how to deploy a new XLSForm "data" — how to fetch and export submission data

Returns: Workflow documentation as text.

Inputs: topic. Returns: result

list_formsA

List all KoboToolbox forms/surveys.

Use this as a starting point to find form UIDs for other tools. Call info(topic="translate") or info(topic="data") for workflow guidance.

Args: search: Optional search term to filter forms by name.

Returns: JSON list of forms with uid, name, status, and submission count.

Inputs: search. Returns: result

replace_formA

Replace an existing form with a new XLSForm version.

Updates the form definition while preserving the form UID and all existing submissions. Use this for adding translations, modifying questions, or any update to a live form.

Typical translation workflow:

  1. export_form() → download the .xlsx

  2. Add label::Language (code) columns to survey and choices sheets

  3. replace_form() → redeploy with translations

Call info(topic="translate") for detailed guidance.

Args: form_uid: The unique identifier (uid) of the form to replace. file_path: Path to the new XLSForm (.xlsx) file.

Returns: JSON object with uid, enketo_url, and management_url.

Inputs: form_uid (required), file_path (required). Returns: result

resolve_formA

Find the form UID that corresponds to an Enketo submission URL.

Given an Enketo URL (e.g. https://ee.kobotoolbox.org/single/6F7QA1uJ), searches all deployed forms to find the one whose deployment links match. Returns the form UID, name, and all deployment links.

Args: enketo_url: The Enketo submission URL to look up.

Returns: JSON object with uid, name, and deployment_links, or an error if not found.

Inputs: enketo_url (required). Returns: result

set_validation_statusA

Set the validation status of submissions.

Use this to approve, reject, or flag submissions without deleting them. Useful for marking test/garbage data so it can be filtered out of analysis.

Args: form_uid: The unique identifier (uid) of the form. submission_ids: List of submission _id values to update. status: One of "approved", "not_approved", "on_hold".

Returns: JSON object with update status.

Inputs: status (required), form_uid (required), submission_ids (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 10 tools

    Disambiguation4/5

    Most tools target clearly distinct operations: form inspection vs export vs deployment vs replacement vs submission data are well separated. The only mild overlap is between get_submissions and export_data, since both retrieve submission data, but their descriptions distinguish row-level retrieval from bulk export.

    Naming Consistency4/5

    The set is mostly consistent snake_case verb_noun naming: get_form, export_form, deploy_form, replace_form, list_forms, get_submissions, set_validation_status, export_data. The lone meta-tool 'info' is a noun and breaks the pattern slightly, but the convention is still easy to follow.

    Tool Count5/5

    Ten tools is well-scoped for a Kobo forms/submissions server. Each tool maps to a meaningful lifecycle action or workflow aid, with no apparent padding.

    Completeness4/5

    The surface covers the core lifecycle: list/get forms, resolve Enketo URLs, export and deploy/replace XLSForms, fetch submissions, export data, and set validation status. Minor gaps remain around destructive/maintenance operations such as deleting forms or submissions, but typical agent workflows are covered.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      B
      quality
      Not graded
      maintenance
      A comprehensive Model Context Protocol server that enables Claude Desktop users to manage Tally forms with 23 powerful tools for creating, editing, and analyzing forms, submissions, questions, webhooks, and conditional logic.
      23
      1
      -