# How to connect CommCare to Grok Bot

```json
{
  "title": "How to connect CommCare to Grok Bot",
  "toolkit": "CommCare",
  "toolkit_slug": "commcare",
  "framework": "Grok Bot",
  "framework_slug": "grok-bot",
  "url": "https://composio.dev/toolkits/commcare/framework/grok-bot",
  "markdown_url": "https://composio.dev/toolkits/commcare/framework/grok-bot.md",
  "updated_at": "2026-09-18T06:04:43.847Z"
}
```

## Introduction

Grok is xAI's assistant, and its bot builder lets you create a personal agent that holds context, runs skills, and connects to the apps you already use through plugins.
This guide explains how to connect CommCare to a Grok bot using Composio Connect, which handles OAuth, token refresh, and reliability so you do not have to. You add Composio as a plugin, authenticate once, then ask your bot to work with CommCare in plain language.

## Also integrate CommCare with

- [OpenAI Agents SDK](https://composio.dev/toolkits/commcare/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/commcare/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/commcare/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/commcare/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/commcare/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/commcare/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/commcare/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/commcare/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/commcare/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/commcare/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/commcare/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/commcare/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/commcare/framework/crew-ai)
- [Pydantic AI](https://composio.dev/toolkits/commcare/framework/pydantic-ai)
- [AutoGen](https://composio.dev/toolkits/commcare/framework/autogen)

## TL;DR

Composio exposes 1,500+ apps to your Grok bot through a single connection, so you get:
- Connect to 1,500+ apps with on-demand tool loading, so you do not fill your context window with unnecessary tool definitions.
- Use programmatic tool calling through a remote workbench, letting the model write its own code to handle complex tool chaining. This reduces back-and-forth for frequent tool calls.
- Handle large tool responses outside the model context to keep conversations lean.

## Connect CommCare to Grok Bot

### Connecting CommCare to Grok Bot
Once Grok Bot is set up, you connect CommCare entirely from its interface, and the whole flow takes under a minute.
### Set up Grok Bot
Get access. Grok Bot is included with Cursor Ultra, Cursor Premium Teams, and SuperGrok Heavy. Get the desktop app for macOS or Windows from [x.ai/bot](https://x.ai/bot) and sign in. An iPhone companion app is also available, and your bots sync across devices.
Create a bot. Pick a suggested role or define your own, then give it a short name, one primary job, and a short description of how it should work. Focused bots work best, because a clear role gives the bot more useful context over time.
### Connect CommCare
### 1. Add the Composio plugin
Click the button. The Composio listing on x.ai opens and launches Grok Bot for you. If the app does not open on its own, click Add to Grok Bot.
[Add to Grok Bot](https://x.ai/bot/plugin/32661537)
Grok Bot opens the Composio plugin, showing its connector and skills. Click Add.
### 2. Authenticate
Go to the Installed section and click the Composio entry. You'll see its connector and skills listed.
Click Authenticate. You'll be taken to the Composio consent screen. Review the access it requests and click Authorize. Composio handles the OAuth handshake for you, so you never touch API keys or tokens.
### 3. Connect your CommCare account
Back in the chat, ask your bot to connect to CommCare or give it any CommCare task.
For example, ask it to:
- "List all open cases in malaria program"
- "Create a new case for patient registration"
- "Update follow-up status for tuberculosis cases"
It will prompt you to authenticate and authorize access.
That's it. Composio's tools are now available in your Grok bot, and your CommCare account is ready to use.

## What is Grok Bot?

Grok is xAI's assistant, available as a chat interface and a bot builder for creating personal agents that run skills and connect to external apps.
With Composio Connect, your Grok bot can securely access apps like CommCare through MCP without you sharing account credentials directly with the agent.

## What is the CommCare MCP server, and what's possible with it?

The CommCare MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your CommCare account. It provides structured and secure access so your agent can perform CommCare operations on your behalf.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `COMMCARE_CREATE_LOOKUP_TABLE` | 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. |
| `COMMCARE_CREATE_WEB_USER_INVITATION` | 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. |
| `COMMCARE_LIST_REPORTS` | 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. |
| `COMMCARE_SINGLE_SIGN_ON` | 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. |
| `COMMCARE_SUBMIT_FORM_TO_COMMCARE` | 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). |
| `COMMCARE_SUBMIT_FORM_ODK_COMPATIBLE` | 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. |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

Once connected, your Grok bot can access the CommCare MCP server through Composio to run the actions you authorize, using plain language in the chat.

## Complete Code

None listed.

## Conclusion

### Way Forward
Now that CommCare is connected, extend your setup by connecting the other apps you already use every day, so your Grok bot can run true cross-app workflows end to end.
- Connect Calendar to turn threads into scheduled meetings automatically.
- Connect Slack or Teams to post summaries, approvals, and alerts where your team works.
- Connect Notion, Linear, Jira, or Asana to convert requests into tickets, tasks, and docs.
- Connect Drive, Dropbox, or OneDrive to fetch, file, and share attachments without manual steps.
Start with one workflow you do repeatedly, then keep adding apps as you find new handoffs. With everything behind a single connection, your bot can coordinate multiple tools safely and reliably in one conversation.

## How to build CommCare MCP Agent with another framework

- [OpenAI Agents SDK](https://composio.dev/toolkits/commcare/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/commcare/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/commcare/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/commcare/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/commcare/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/commcare/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/commcare/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/commcare/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/commcare/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/commcare/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/commcare/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/commcare/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/commcare/framework/crew-ai)
- [Pydantic AI](https://composio.dev/toolkits/commcare/framework/pydantic-ai)
- [AutoGen](https://composio.dev/toolkits/commcare/framework/autogen)

## Related Toolkits

- [Google Sheets](https://composio.dev/toolkits/googlesheets) - Google Sheets is a cloud-based spreadsheet tool for real-time collaboration and data analysis. It lets teams work together from anywhere, updating information instantly.
- [Notion](https://composio.dev/toolkits/notion) - Notion is a collaborative workspace for notes, docs, wikis, and tasks. It streamlines team knowledge, project tracking, and workflow customization in one place.
- [Airtable](https://composio.dev/toolkits/airtable) - Airtable combines the flexibility of spreadsheets with the power of a database for easy project and data management. Teams use Airtable to organize, track, and collaborate with custom views and automations.
- [Asana](https://composio.dev/toolkits/asana) - Asana is a collaborative work management platform for teams to organize and track projects. It streamlines teamwork, boosts productivity, and keeps everyone aligned on goals.
- [Google Tasks](https://composio.dev/toolkits/googletasks) - Google Tasks is a to-do list and task management tool integrated into Gmail and Google Calendar. It helps you organize, track, and complete tasks across your Google ecosystem.
- [Linear](https://composio.dev/toolkits/linear) - Linear is a modern issue tracking and project planning tool for fast-moving teams. It helps streamline workflows, organize projects, and boost productivity.
- [Jira](https://composio.dev/toolkits/jira) - Jira is Atlassian’s platform for bug tracking, issue tracking, and agile project management. It helps teams organize work, prioritize tasks, and deliver projects efficiently.
- [Clickup](https://composio.dev/toolkits/clickup) - ClickUp is an all-in-one productivity platform for managing tasks, docs, goals, and team collaboration. It streamlines project workflows so teams can work smarter and stay organized in one place.
- [Monday](https://composio.dev/toolkits/monday) - Monday.com is a customizable work management platform for project planning and collaboration. It helps teams organize tasks, automate workflows, and track progress in real time.
- [Addressfinder](https://composio.dev/toolkits/addressfinder) - Addressfinder is a data quality platform for verifying addresses, emails, and phone numbers. It helps you ensure accurate customer and contact data every time.
- [Agiled](https://composio.dev/toolkits/agiled) - Agiled is an all-in-one business management platform for CRM, projects, and finance. It helps you streamline workflows, consolidate client data, and manage business processes in one place.
- [AirOps MCP](https://composio.dev/toolkits/airops_mcp) - AirOps MCP is AirOps' managed content platform exposing brand context, knowledge bases, and workflows. Use it to give agents brand-aware content, automate content workflows, and track Brand Kit edits.
- [Amazing Marvin](https://composio.dev/toolkits/amazing_marvin) - Amazing Marvin is a personal productivity app for tasks, projects, habits, planning, time tracking, and rewards. It helps you build a flexible workflow that matches how you actually work.
- [AnyDB](https://composio.dev/toolkits/any_db) - AnyDB is a flexible collaborative database platform for organizing records, files, and automated workflows. It helps teams centralize data, collaborate on records, and automate routine tasks.
- [ApptiveGrid](https://composio.dev/toolkits/apptivegrid) - ApptiveGrid is a collaborative no-code database and app platform for spaces, grids, forms, and structured records. It helps teams organize operational data, collect inputs, and build lightweight business apps without custom backend work.
- [Ascora](https://composio.dev/toolkits/ascora) - Ascora is a cloud-based field service management platform for service businesses. It streamlines scheduling, invoicing, and customer operations in one place.
- [Atlassian MCP](https://composio.dev/toolkits/atlassian_mcp) - Atlassian Rovo MCP connects agents to Jira, Jira Service Management, Confluence, Bitbucket, Compass, and Teamwork Graph workflows. It lets teams surface and act on Atlassian data while respecting existing user permissions.
- [Basecamp](https://composio.dev/toolkits/basecamp) - Basecamp is a project management and team collaboration tool by 37signals. It helps teams organize tasks, share files, and communicate efficiently in one place.
- [Breathe HR](https://composio.dev/toolkits/breathehr) - Breathe HR is cloud-based HR software for SMEs to manage employee data, absences, and performance. It simplifies HR admin, making it easy to keep employee records accurate and up to date.
- [Canny](https://composio.dev/toolkits/canny) - Canny is a platform for managing customer feedback and feature requests. It helps teams prioritize product decisions based on real user insights.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and CommCare MCP?

With a standalone CommCare MCP server, the agents and LLMs can only access a fixed set of CommCare tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from CommCare and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Grok Bot?

Yes, you can. Grok Bot fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right CommCare tools.

### Can I manage the permissions and scopes for CommCare while using Tool Router?

Yes, absolutely. You can configure which CommCare scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your CommCare data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
