Commcare MCP server

Connect Commcare to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Commcare MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the list mobile workers tool in Commcare
  • Use the get case tool in Commcare
  • Use the create or update group tool in Commcare
  • Use the list forms tool in Commcare
  • Use the update case tool in Commcare
  • Use the create case tool in Commcare

Supported Tools

list_mobile_workers

List Mobile Workers

Retrieve mobile workers (field users) in a CommCare project. Mobile workers are the users who collect data using the CommCare mobile app. Returns user details including username, name, contact info, groups, and custom user data.

get_case

Get Case

Retrieve a single case by its ID. Returns the full case record including all properties, indices (relationships to other cases), form submissions, and metadata.

manage_group

Create or Update Group

Create a new user group or update an existing one. Groups organize mobile workers for case sharing, reporting, and data access control. To create, provide a name. To update, provide the groupId along with the fields to change.

list_forms

List Forms

Search and retrieve submitted form data from a CommCare project. Forms capture data collected during a single interaction. Filter by form type (xmlns), date received, application, and more. Returns paginated results including form responses and metadata.

update_case

Update Case

Update an existing case in CommCare. Modify case properties, change ownership, update relationships (indices), or close the case. The JSON Case API cannot reopen an already closed case; false leaves an open case open.

create_case

Create Case

Create a new case in CommCare. Cases are the core data records used for longitudinal tracking (e.g., patients, households, facilities). Specify the case type, name, owner, and any custom properties. Optionally set relationships to other cases via indices.

list_web_users

List Web Users

Retrieve web users for a CommCare project. Web users are administrative users who access CommCare HQ via the web interface for project management, reporting, and configuration.

bulk_cases

Bulk Create or Update Cases

Create or update multiple cases in a single request. Each entry can either create a new case (omit caseId) or update an existing case (provide caseId). Supports up to 100 cases per request. Useful for batch imports, migrations, or synchronized updates.

list_applications

List Applications

Retrieve applications in a CommCare project. Applications define the forms, modules, and case structure used for data collection. Useful for understanding the data model and discovering form types available in the project.

send_sms

Send SMS

Send an SMS message through CommCare to a phone number. Useful for automated notifications, reminders, or follow-up messages. Requires an SMS gateway to be configured on the CommCare project.

get_form

Get Form

Retrieve a single submitted form by its ID. Returns the full form data including all question responses, metadata (device info, timestamps, submitting user), and application details.

list_lookup_tables

List Lookup Tables

Retrieve lookup tables (fixtures) in a CommCare project. Lookup tables store reference data used across forms and workflows, such as health facility names, geographic locations, or standardized options.

list_cases

List Cases

Search and retrieve cases from a CommCare project. Cases are the core longitudinal data records that track ongoing interactions (e.g., patients, households). Supports filtering by case type, owner, modification date, status, and more. Returns paginated results with case properties and metadata.

manage_mobile_worker

Create or Update Mobile Worker

Create a new mobile worker or update an existing one. Mobile workers are field users who collect data via the CommCare mobile app. To create, provide a username and password. To update, provide the userId of an existing worker along with the fields to change.

list_groups

List Groups

Retrieve user groups in a CommCare project. Groups organize mobile workers for case sharing, reporting, and access control.

get_current_user

Get Current User

Identify the authenticated CommCare web user and retrieve their name and email address.

bulk_get_cases

Bulk Get Cases

Retrieve specific CommCare cases in one request using case IDs, external IDs, or both. Missing cases are returned as error records alongside the cases that were found.

list_projects

List Projects

Discover CommCare project spaces available to the authenticated web user, including their domain names and project names.

Connect Commcare to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Commcare in Metorial. In your Metorial portal, enable the Commcare MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Commcare tools.

Run Commcare through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Commcare and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Commcare tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Commcare

Notion

Create, read, update, and archive pages and databases in a Notion workspace. Manage blocks (paragraphs, lists, headings, embeds, etc.) within pages. Query databases with filters and sorts across rich property types including text, numbers, dates, selects, relations, and formulas. Search across pages and databases by title. Add and read comments on pages and blocks. Upload files to pages. Manage workspace users and retrieve user profiles.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Microsoft Outlook

Send, read, reply to, forward, and manage email messages in user mailboxes. Organize messages into folders, apply categories, flags, and importance levels. Manage file and item attachments. Create, update, delete, and respond to calendar events and meetings. Find available meeting times, manage attendees, handle recurrence, and work with shared or delegated calendars. Create, read, update, and delete contacts, organize them into contact folders, and manage contact photos. Manage tasks and task lists via Microsoft To Do, including due dates, reminders, recurrence, and checklist items. Subscribe to webhook notifications for changes to messages, calendar events, and contacts. Support for Focused Inbox, @-mentions, mail tips, send-on-behalf, and send-as capabilities.

Linear

Create, read, update, and delete issues across teams with support for priorities, labels, assignees, due dates, and workflow states. Manage projects that group related issues, and organize work into time-boxed cycles (sprints). Create and manage documents, comments, and file attachments. Search issues using vector similarity or rich filters. Configure teams, workflow states, and labels. Track customers and link them to issues.

Technical notes for Commcare

Manage cases, forms, and users on CommCare, a mobile data collection and case management platform for frontline workers. Create, update, close, and query cases that track longitudinal records such as patients or households. Retrieve submitted form data and attachments, and submit new forms via the OpenRosa standard. Manage mobile workers, web users, and user groups. Access application structure and lookup table reference data. Send and receive SMS messages. Integrate with FHIR services for healthcare data interoperability. Configure webhooks for form submissions, case changes, and application updates.

Frequently asked questions

Common questions about connecting Commcare to AI agents with Metorial.

  1. How many tools does the Commcare MCP server have?
    The Commcare MCP server exposes 18 tools, including List Mobile Workers, Get Case, Create or Update Group. Each one is governed and traced through Metorial.
  2. Commcare exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Commcare MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Commcare and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Commcare MCP server yourself or use the hosted gateway.

Connect Commcare to production AI agents

See how Metorial gives your team governed access to Commcare, with tracing and security controls built in.