# How to integrate Grain MCP with Atomic Agent

```json
{
  "title": "How to integrate Grain MCP with Atomic Agent",
  "toolkit": "Grain",
  "toolkit_slug": "grain",
  "framework": "Atomic Agent",
  "framework_slug": "atomic-agent",
  "url": "https://composio.dev/toolkits/grain/framework/atomic-agent",
  "markdown_url": "https://composio.dev/toolkits/grain/framework/atomic-agent.md",
  "updated_at": "2026-11-14T06:01:17.838Z"
}
```

## Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,700+ apps through Composio, including Grain.
This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Grain account. See the [Atomic Agent documentation](https://atomicagent.io/docs/?cta_placement=atomic-agent-docs) for installation instructions.
For exact tool slugs and parameter tables, see the [tool catalog in the Composio docs](https://docs.composio.dev/toolkits/grain).

## Also integrate Grain with

- [ChatGPT](https://composio.dev/toolkits/grain/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/grain/framework/claude-cowork)
- [Grok Bot](https://composio.dev/toolkits/grain/framework/grok-bot)
- [Hermes](https://composio.dev/toolkits/grain/framework/hermes-agent)

## TL;DR

### How Atomic Agent connects to Grain
Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.
Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

## Connect Grain to Atomic Agent

### Connect Grain to Atomic Agent
- Sign up or sign in to the [Composio dashboard](https://dashboard.composio.dev/?cta_placement=atomic-agent-api-key). Copy your API key.
- In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
- Ask Atomic Agent to do something in Grain. It searches Composio for the right tool.
- On first use, open the sign-in link returned in the chat. Connect your Grain account, then return to Atomic Agent to continue.
### Headless setup
Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

```bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY
```

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

The Grain MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Grain account. It provides structured and secure access to meeting recordings, transcripts, uploads, sharing controls, tags, and webhook subscriptions, so your agent can find recordings, review conversations, organize meeting content, manage uploads, and control access on your behalf.
- Meeting recording search and review: Have your agent find Grain recordings, retrieve meeting details, expand participant and summary information, and download original audio or video.
- Transcript access and formatting: Let the agent retrieve recording transcripts as speaker segments, plain text, WebVTT, or SRT for review and reuse.
- Meeting organization: Direct your agent to rename recordings and add or remove tags so meeting content stays easy to find.
- Upload and promotion management: Instruct your agent to create transcript or media uploads, update their attributes, check processing status, list uploads, and promote staged uploads into recordings.
- Sharing and event notifications: Have your agent share recordings with Grain users or teams, remove their access, and create, review, or delete webhook subscriptions for Grain events.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `GRAIN_CREATE_HOOK` | Create Hook | Create a Grain webhook subscription after Grain verifies that the public HTTPS callback returns a 2xx response. |
| `GRAIN_CREATE_UPLOAD` | Create Upload | Create a Grain transcript upload or an audio/video upload slot. Transcript content is submitted in this call. By default, Grain automatically promotes the completed upload into a recording; set auto_promote=false to stage it instead. Automatic promotion creates a recording that cannot be undone through Grain's documented API. Audio/video responses provide signed PUT instructions, but this action does not transfer media bytes. |
| `GRAIN_DELETE_HOOK` | Delete Hook | Permanently delete one Grain webhook subscription. |
| `GRAIN_DOWNLOAD_RECORDING` | Download Recording | Download a recording's original audio or video media through Composio file storage. Use the transcript action instead when transcript text is needed. |
| `GRAIN_GET_CONNECTION_INFO` | Get Connection Info | Identify the connected Grain user or workspace and report the connection's authentication type, scope, and expiry without exposing credentials. |
| `GRAIN_GET_RECORDING` | Get Recording | Get one Grain recording by ID, optionally including participants, summaries, notes, and other expanded meeting data. |
| `GRAIN_GET_RECORDING_TRANSCRIPT` | Get Recording Transcript | Get a Grain recording transcript as structured speaker segments, plain text, WebVTT, or SRT. |
| `GRAIN_GET_UPLOAD` | Get Upload | Get one Grain upload by ID, including its processing status and optional attributes or transcript data. |
| `GRAIN_LIST_HOOKS` | List Hooks | List Grain webhook subscriptions, optionally filtering by event type or enabled state. |
| `GRAIN_LIST_RECORDINGS` | List Recordings | Return one page of recordings visible to the connected Grain user, with optional search filters and expanded meeting data. |
| `GRAIN_LIST_REFERENCE_DATA` | List Reference Data | List visible Grain users, teams, or meeting types and return their IDs for recording filters, sharing, and upload metadata. |
| `GRAIN_LIST_UPLOADS` | List Uploads | Return one page of Grain uploads, optionally filtered by media type and expanded with attributes or transcript data. |
| `GRAIN_PROMOTE_UPLOAD` | Promote Upload | Start promotion of a manually staged Grain upload into a recording. This creates a recording and cannot be undone through Grain's documented API. |
| `GRAIN_UPDATE_RECORDING_ACCESS` | Update Recording Access | Share a recording with one Grain user or team, or remove that user or team's access. |
| `GRAIN_UPDATE_RECORDING_TAG` | Update Recording Tag | Add or remove one tag on a Grain recording. |
| `GRAIN_UPDATE_RECORDING_TITLE` | Update Recording Title | Replace the title of an existing Grain recording. |
| `GRAIN_UPDATE_UPLOAD` | Update Upload | Replace attributes on an awaiting or manually staged Grain upload before it is promoted. |

## Supported Triggers

None listed.

## Troubleshooting

### Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

### Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

### Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See [Composio pricing](/pricing/platform) for the current limits that apply to your connection.

## Complete Code

None listed.

## Conclusion

### Use Grain from Atomic Agent
With your account connected, ask Atomic Agent to work with Grain in natural language. You can connect more apps through the same Composio integration as you need them.
Visit the [Atomic Agent website](https://atomicagent.io/?cta_placement=atomic-agent-site) or inspect the [Atomic Agent source code](https://github.com/AtomicBot-ai/atomic-agent?cta_placement=atomic-agent-repo).

## How to build Grain MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/grain/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/grain/framework/claude-cowork)
- [Grok Bot](https://composio.dev/toolkits/grain/framework/grok-bot)
- [Hermes](https://composio.dev/toolkits/grain/framework/hermes-agent)

## Related Toolkits

- [Gmail](https://composio.dev/toolkits/gmail) - Gmail is Google's email service with powerful spam protection, search, and G Suite integration. It keeps your inbox organized and makes communication fast and reliable.
- [Outlook](https://composio.dev/toolkits/outlook) - Outlook is Microsoft's email and calendaring platform for unified communications and scheduling. It helps users stay organized with powerful email, contacts, and calendar management.
- [Slack](https://composio.dev/toolkits/slack) - Slack is a channel-based messaging platform for teams and organizations. It helps people collaborate in real time, share files, and connect all their tools in one place.
- [Gong](https://composio.dev/toolkits/gong) - Gong is a platform for video meetings, call recording, and team collaboration. It helps teams capture conversations, analyze calls, and turn insights into action.
- [Microsoft teams](https://composio.dev/toolkits/microsoft_teams) - Microsoft Teams is a collaboration platform that combines chat, meetings, and file sharing within Microsoft 365. It keeps distributed teams connected and productive through seamless virtual communication.
- [Slackbot](https://composio.dev/toolkits/slackbot) - Slackbot is a conversational automation tool for Slack that handles reminders, notifications, and automated responses. It boosts team productivity by streamlining onboarding, answering FAQs, and managing timely alerts—all right inside Slack.
- [2chat](https://composio.dev/toolkits/_2chat) - 2chat is an API platform for WhatsApp and multichannel text messaging. It streamlines chat automation, group management, and real-time messaging for developers.
- [Agent mail](https://composio.dev/toolkits/agent_mail) - Agent mail provides AI agents with dedicated email inboxes for sending, receiving, and managing emails. It empowers agents to communicate autonomously with people, services, and other agents—no human intervention needed.
- [AgentPhone](https://composio.dev/toolkits/agentphone) - AgentPhone is a communications platform for AI-powered phone numbers, voice calls, messaging, and WhatsApp. It helps you manage agent conversations, contacts, webhooks, and usage from one place.
- [Aircall](https://composio.dev/toolkits/aircall) - Aircall is a cloud-based phone and call-center platform for business communications. It centralizes calls, contacts, teams, numbers, and tags in one place.
- [Android Texter](https://composio.dev/toolkits/android_texter) - Android Texter is an API service that connects Android phones to SMS, MMS, contacts, and device data. Use it to automate mobile messaging without building your own phone-to-API bridge.
- [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.
- [Blooio](https://composio.dev/toolkits/blooio) - Blooio is a stable v2 API platform for messaging, chats, contacts, groups, phone numbers, and account analytics. It gives teams a clean way to build reliable communication workflows without stitching together fragile custom APIs.
- [Callback24](https://composio.dev/toolkits/callback24) - Callback24 is a telephony API for managing phone calls, users, services, and routing groups. It centralizes call control and routing to automate voice workflows and operations.
- [CallOnTheGo](https://composio.dev/toolkits/callonthego) - CallOnTheGo is a telephony API for managing phone numbers, caller IDs, suppression lists, audio assets, contact lists, and Voice AI campaigns. It provides programmatic control over calling infrastructure and campaign automation for scalable voice outreach.
- [Carbon Voice MCP](https://composio.dev/toolkits/carbon_voice_mcp) - Carbon Voice MCP is a voice-first collaboration platform for messages, conversations, and workflows. Use it to centralize voice communications and streamline team collaboration.
- [CardClan](https://composio.dev/toolkits/cardclan) - CardClan is a digital card platform for creating and sending personalized team cards. Use it to celebrate moments, share card links, and manage card workflows without extra coordination.
- [Chatwork](https://composio.dev/toolkits/chatwork) - Chatwork is a team communication platform with group chats, file sharing, and task management. It helps businesses boost collaboration and streamline productivity.
- [Clickmeeting](https://composio.dev/toolkits/clickmeeting) - ClickMeeting is a cloud-based platform for running online meetings and webinars. It helps businesses and individuals host, manage, and engage virtual audiences with ease.
- [Confluence](https://composio.dev/toolkits/confluence) - Confluence is Atlassian's team collaboration and knowledge management platform. It helps your team organize, share, and update documents and project content in one secure workspace.

## Frequently Asked Questions

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

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

### Can I use Tool Router MCP with Atomic Agent?

Yes, you can. Atomic Agent 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 Grain tools.

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

Yes, absolutely. You can configure which Grain 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 Grain data and credentials are handled as safely as possible.

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