kobo-mcp

v0.2.1
kobo-mcp Checked 16 hours ago Published 26 days ago

MCP server for KoboToolbox - deploy surveys and fetch submissions

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

info

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: W…

ParameterTypeDescription
topic

list_forms

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.

ParameterTypeDescription
search

get_form

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.

ParameterTypeDescription
form_uid *string

resolve_form

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.

ParameterTypeDescription
enketo_url *string

export_form

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…

ParameterTypeDescription
form_uid *string
output_path *string

get_submissions

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.

ParameterTypeDescription
form_uid *string
limitinteger
query
startinteger

deploy_form

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.

ParameterTypeDescription
file_path *string
form_name

replace_form

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_p…

ParameterTypeDescription
file_path *string
form_uid *string

set_validation_status

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.

ParameterTypeDescription
form_uid *string
status *string
submission_ids *array

export_data

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.

ParameterTypeDescription
form_uid *string
export_typestring
include_labelsboolean