# Grain

```json
{
  "name": "Grain",
  "slug": "grain",
  "url": "https://composio.dev/toolkits/grain",
  "markdown_url": "https://composio.dev/toolkits/grain.md",
  "logo_url": "https://logos.composio.dev/api/grain",
  "categories": [
    "collaboration & communication"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-14T06:01:17.838Z"
}
```

![Grain logo](https://logos.composio.dev/api/grain)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Grain MCP or direct API to search meetings, review transcripts, find key moments, and organize meeting insights through natural language.

## Summary

Grain is a meeting platform that records, transcribes, and organizes team conversations.
It helps teams review discussions, share key insights, and keep meeting content easy to find.

## Categories

- collaboration & communication

## Toolkit Details

- Tools: 17

## Images

- Logo: https://logos.composio.dev/api/grain

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for Grain.
  - Setup:
    - Configure Api Key credentials for Grain.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- List my latest Grain meeting recordings
- Find meetings discussing the product launch
- Summarize action items from recent meetings

## 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.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to Grain
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["grain"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["grain"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run Grain tools with your agent

Send a request, execute the Grain tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "List my five most recent Grain meeting recordings"}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "List my five most recent Grain meeting recordings" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to Grain and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["grain"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["grain"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a Grain request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to Grain tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("List my five most recent Grain meeting recordings")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "List my five most recent Grain meeting recordings",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native Grain Integration

- Supports both Grain MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for searching meetings, reading transcripts, and finding key moments in your Grain data

### 2. Managed Auth

- Securely stores and manages your Grain API keys
- Central place to manage, scope, and revoke Grain access
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access Grain
- Scoped, least privilege access to Grain resources
- Full audit trail of agent actions to support review and compliance

## Use Grain with any AI Agent Framework

Choose a framework you want to connect 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)
- [Atomic Agent](https://composio.dev/toolkits/grain/framework/atomic-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

### Do I need my own developer credentials to use Grain with Composio?

Yes, Grain requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

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