Coda MCP Integration with Claude Code | Composio

For AI agents: how to sign up

If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev.

Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.

How to integrate Coda MCP with Claude Code

Connect Claude Code to Coda MCP. Duplicate your project tracker document, add a new permission for this doc, and more using natural language, with authentication handled for you.

Coda

Api Key

Coda is a collaborative workspace that turns documents into powerful tools for teams. It's designed to boost productivity by combining docs, spreadsheets, and apps in a single platform.

109 Tools4 Triggers

Managed auth

Connect Coda without auth hassles

We manage OAuth, API keys, token refresh, and scopes — you just build.

Introduction

Markdown

Manage your Coda directly from Claude Code with zero worries about OAuth hassles, API-breaking issues, or reliability and security concerns.

You can do this in two different ways:

  1. Via Composio Connect - Direct and easiest approach
  2. Via Composio SDK - Programmatic approach with more control

Also integrate Coda with

OpenAI Agents SDK Claude Agent SDK Claude Cowork Codex OpenClaw Hermes Google ADK LangChain Vercel AI SDK Mastra AI LlamaIndex CrewAI Pydantic AI AutoGen

Why use Composio?

Connecting Coda to Claude Code using Composio

1. Add the Composio MCP to Claude

Terminal

Generate MCP URL

2. Start Claude Code

bash

Copy

claude

3. Open your MCP list

bash

Copy

/mcp

4. Select Composio and click on Authenticate

5. This will redirect you to the Composio OAuth page. Complete the flow by authorizing Composio and you're all set.

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

The Coda MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Coda account. It provides structured and secure access to your workspaces and docs, so your agent can automate Coda document creation, manage permissions, export content, and streamline your team’s productivity tools—all on your behalf.

Connecting Coda via Composio SDK

Composio SDK is the underlying technology that powers these integrations. It provides a universal gateway with full programmatic control. You can programmatically generate an MCP URL with the app you need (hereCoda) for even more tool search precision. It's secure and reliable.

How the Composio SDK works

The Composio SDK follows a three-phase workflow:

  1. Discovery: Searches for tools matching your task and returns relevant toolkits with their details.
  2. Authentication: Checks for active connections. If missing, creates an auth config and returns a connection URL via Auth Link.
  3. Execution: Executes the action using the authenticated connection.

Step-by-step Guide

Step by step10 STEPS

1

Prerequisites

Before starting, make sure you have:

2

Install Claude Code

bash

Copy

# macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash

# Windows PowerShell
irm https://claude.ai/install.ps1 | iex

# Windows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

To install Claude Code, use one of the following methods based on your operating system:

3

Set up Claude Code

bash

Copy

cd your-project-folder
claude

Open a terminal, go to your project folder, and start Claude Code:

4

Set up environment variables

bash

Copy

COMPOSIO_API_KEY=your_composio_api_key_here
USER_ID=your_user_id_here

Create a .env file in your project root with the following variables:

5

Install Composio library

TypescriptPython

Copy

npm install @composio/core dotenv

Install the Composio TypeScript library to create MCP sessions.

6

Generate Composio MCP URL

TypescriptPython

Copy

import 'dotenv/config';
import { Composio } from '@composio/core';

const { COMPOSIO_API_KEY, USER_ID } = process.env;

if (!COMPOSIO_API_KEY || !USER_ID) {
  throw new Error('COMPOSIO_API_KEY and USER_ID required in .env');
}

const composioClient = new Composio({ apiKey: COMPOSIO_API_KEY });

const composioSession = await composioClient.create(USER_ID, {
  toolkits: ['coda'],
});

const composioMcpUrl = composioSession?.mcp.url;

console.log(`MCP URL: ${composioMcpUrl}`);
console.log(`\nUse this command to add to Claude Code:`);
console.log(`claude mcp add --transport http coda-composio \