otherapi_key

CommCare

CommCare is a mobile data collection and case management platform for health and social programs

Verdict

CommCare is a mobile data collection platform for field teams in health, social services, and humanitarian work. In Switchy, @mentioning CommCare lets your team submit form data, manage lookup tables, invite users, and pull report lists without opening the CommCare dashboard. This is most useful for program managers who need to coordinate data collection workflows or troubleshoot field submissions during standups. You'll need an API key with appropriate permissions — some tools require 'Edit Apps' or 'Edit Web Users' access, so confirm your account has those before connecting.

Common use cases

  • Submit field data from chat during outages
  • Invite new mobile workers mid-deployment
  • Update product catalogs without app redeploy
  • Verify user credentials during support calls
  • Check available reports before data pulls

Integration

Vendor
CommCare
Category
other
Auth
API_KEY
Tools
6
Composio slug
commcare

Tools

  • Create Lookup Table

    Tool to create a new lookup table in a CommCare domain. Use when you need to set up reference data structures like product catalogs, price lists, or configuration tables. Requires 'Edit Apps' permission.

  • Create Web User Invitation

    Tool to create an invitation for a new web user in CommCare. Use when you need to invite a user with specific role and permissions. Requires 'Edit Web Users & Edit Access API' permissions.

  • List Reports

    Tool to retrieve available reports configured in a CommCare project. Use when you need to discover what reports exist before downloading report data via the Download Report Data API.

  • Single Sign On

    Tool to validate login credentials and retrieve user profile for a mobile worker or web user. Use when you need to authenticate a user and obtain their profile information including roles, permissions, locations, and configuration details.

  • Submit Form ODK Compatible

    Tool to submit form data using ODK-compatible endpoint for Android client compatibility. Use when submitting XForm data to CommCare. Requires properly formatted XML with metadata including unique instanceID.

  • Submit Form to CommCare

    Tool to submit an XForm to CommCare following the OpenRosa standard. Use when you need to submit form data with complete XML including required metadata fields (deviceID, timeStart, timeEnd, username, userID, instanceID).

Setup

Setup guide

  1. 11. In Switchy, open your workspace settings and navigate to the MCP integrations page. 2. Click 'Add Integration' and select CommCare from the list. 3. Go to your CommCare account settings, generate a new API key, and copy it. 4. Paste the API key into Switchy's connection form and click 'Connect'. 5. Switchy will verify the key and display which permissions your key has — confirm you see 'Edit Apps' and 'Edit Web Users' if you plan to create lookup tables or invite users. 6. Open any Space in your workspace and type '@CommCare list reports' to test the connection. 7. If you see a list of configured reports, the integration is live and ready to use.

What teammates see: by default, memories from CommCare are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.

Works well with

Top models

Compatibility data appears once enough Spaces have used this MCP together with a given model.

How Switchy teams use it

Not enough Spaces yet to publish anonymised usage stats (we require ≥ 50 Spaces per week).

Starter prompts

Submit Field Form

@CommCare submit this household visit form with deviceID 'backup-001', today's date for timeStart and timeEnd, username 'field_coordinator', and the following case data: household_id HH-2847, visit_type follow-up, members_present 4.
Open in a Space →

Create Price Lookup

@CommCare create a lookup table named 'Q1_2025_Pricing' in the nutrition domain with fields: product_code, unit_price, currency, effective_date.
Open in a Space →

Invite Field Supervisor

@CommCare invite a new web user with email supervisor@example.org, role 'Field Supervisor', and permissions to view case data and download reports in the Kenya project.
Open in a Space →

Validate Worker Login

@CommCare validate login for mobile worker username 'mw_0482' and return their profile including assigned roles, permissions, and active status.
Open in a Space →

List Project Reports

@CommCare list all reports available in the maternal_health project and include report IDs, titles, and last updated dates.
Open in a Space →

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

@CommCare list all configured reports in our maternal health project so I can see what data we're currently tracking

Output

Here are the reports configured in your CommCare domain: 1. **Antenatal Visit Summary** (ID: anc_visits_2024) — Tracks ANC attendance by facility and week 2. **Birth Outcomes Report** (ID: birth_outcomes) — Aggregates delivery data including complications 3. **CHW Performance Dashboard** (ID: chw_metrics) — Shows form submission rates and case load by community health worker 4. **Postnatal Follow-up Tracker** (ID: pnc_followup) — Lists mothers due for postnatal visits in next 7 days This is an illustrative example showing typical report metadata. Your actual reports will vary by project configuration.

Notes

This example demonstrates the List Reports tool, which is essential for discovering what analytics are available before downloading report data. Requires 'View Reports' permission. Use this as a first step before requesting specific report downloads — the report IDs returned here are needed for subsequent data extraction calls.

Prompt

@CommCare create a lookup table called 'essential_medicines' with columns for drug_name, dosage_form, and stock_threshold for our pharmacy inventory system

Output

I've created the lookup table 'essential_medicines' in your CommCare domain with the following structure: **Table ID:** essential_medicines **Columns:** - drug_name (text) - dosage_form (text) - stock_threshold (number) The table is now available for use in your CommCare applications. You can populate it with data through the CommCare web interface or via bulk upload. Mobile workers will be able to reference this table in forms once you configure the app to use it. This is an illustrative example of the table creation response.

Notes

This example shows the Create Lookup Table tool, which sets up reference data structures that mobile workers can query in the field. Requires 'Edit Apps' permission. Important: This only creates the table schema — you'll need to populate it with actual drug data separately. Lookup tables are cached on mobile devices, so changes may take time to sync.

Prompt

@CommCare invite sarah.jones@healthngo.org as a web user with report viewer access so she can monitor our field data without editing cases

Output

I've created a web user invitation for sarah.jones@healthngo.org with the following configuration: **Email:** sarah.jones@healthngo.org **Role:** Report Viewer (read-only access to reports and dashboards) **Permissions:** View Reports, View Case Data **Status:** Invitation sent Sarah will receive an email with instructions to set her password and access the CommCare web portal. She'll be able to view configured reports and export data but cannot create or modify cases, forms, or application structure. The invitation expires in 7 days if not accepted. This is an illustrative example of the invitation creation process.

Notes

This example demonstrates the Create Web User Invitation tool for onboarding team members with specific access levels. Requires 'Edit Web Users & Edit Access API' permissions. Critical consideration: Role assignments are permanent once accepted — ensure you've selected the correct permission level before sending. Invited users consume a web user license in your CommCare subscription.

Use-case deep-dives

Field health worker data sync

When CommCare MCP handles offline-first mobile workflows

A 12-person community health team collects patient visits on Android tablets in rural areas with spotty connectivity. The CommCare MCP is the right call here because it bridges the gap between field data collection and your team's AI workspace. Use the Submit Form ODK Compatible tool to push XForm submissions from mobile workers into Switchy threads, where a nurse manager can review flagged cases and route follow-ups without opening CommCare's web UI. The auth is straightforward—one API key scoped to form submission. The threshold: if your team needs real-time two-way sync (updating forms mid-collection), you'll hit the MCP's read-heavy limits and should keep CommCare's native app in the loop. For post-collection triage and case review, this setup cuts the manager's daily CommCare login time in half.

Onboarding mobile worker cohorts

When batch user provisioning justifies the MCP overhead

A nonprofit scales from 8 to 40 field staff in one quarter and needs to provision CommCare accounts with role-based permissions. The Create Web User Invitation tool automates what would otherwise be 32 manual invites through CommCare's admin panel. In Switchy, an ops lead runs a prompt that reads a CSV of new hires and fires invitations with pre-set roles (data collector, supervisor, read-only). The win is speed and audit trail—all invites logged in one thread. The trade-off: if you're onboarding fewer than 10 users per month, the MCP setup (API key, permission scoping, testing) takes longer than clicking through the UI. Above 15-20 users quarterly, the MCP pays for itself in the second cohort.

Weekly report distribution to stakeholders

When CommCare MCP replaces manual report exports

A 6-person program team sends weekly case summaries to donors who don't have CommCare logins. The List Reports and Download Report Data tools let a program manager pull configured reports into Switchy, summarize trends with AI, and draft stakeholder emails—all in one thread. The MCP handles the repetitive export step that used to require logging into CommCare, navigating to reports, downloading CSVs, and copying data into email drafts. The constraint: CommCare's report API is read-only, so if your stakeholders need to filter or pivot the data themselves, you're better off giving them direct CommCare access. For teams that own the narrative and just need the raw numbers on a schedule, this MCP turns a 20-minute weekly task into a 3-minute prompt.

Frequently asked

What does the CommCare MCP do in Switchy?

It connects your CommCare domain to Switchy so AI assistants can submit form data, create lookup tables, invite web users, and pull report lists. Think of it as letting AI handle routine CommCare admin tasks — submitting XForms, setting up reference data, or checking what reports exist — without opening the CommCare dashboard.

What CommCare permissions does the API key need?

You'll need different permissions depending on what you want AI to do. Creating lookup tables requires 'Edit Apps'. Inviting web users needs 'Edit Web Users & Edit Access API'. Submitting forms typically needs form submission rights. Use a key with only the permissions your team actually needs — don't hand over full admin access.

Can the MCP read case data or download full reports?

It can list what reports exist in your project, but it won't download the actual report data or query case records directly. If you need AI to analyse case data or pull report CSVs, you'll need to export that separately and upload it to Switchy as context.

Why use this instead of the CommCare web UI or API directly?

The MCP saves you from writing API scripts for repetitive tasks. Instead of manually formatting XForm XML or remembering the exact JSON structure for lookup tables, you ask AI in plain English and it handles the CommCare API calls. Faster for one-off admin work; overkill if you already have automation scripts.

Who on the team should connect the CommCare MCP?

Whoever manages your CommCare domain and can generate an API key with appropriate permissions. That's usually a project admin or technical lead. Once connected, any Switchy user in your workspace can ask AI to use it — but the API key's permissions control what actually happens in CommCare.

Data last verified 607 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.