Table of contents

Add secure integrations to your products and AI agents with ease via Merge.
Get a demo

How to connect a Coda MCP with Claude Code (4 steps)

Jon Gitlin
Senior Content Marketing Manager
at Merge

Developers building agents that need to read from or write to Coda tables, retrieve page content, or update rows based on external events have to navigate Coda's doc-page-table hierarchy, manage OAuth token storage, and wire up API calls before a single tool can be invoked.

To help your developers query documents, read and update table data, and surface structured Coda content from the terminal with ease, we'll show you how to connect Coda with Merge Agent Handler's Coda MCP server.

How it works

Merge Agent Handler connects Claude Code to the Coda API through a single CLI setup.

You install the Merge CLI, authenticate once with your Merge Agent Handler account, and register the connection with one command.

Merge handles Coda's OAuth credentials on your behalf, so you never store API tokens locally or manage credential rotation across environments.

Here's the command that registers the connection:

claude mcp add 
--transport http agent-handler https://ah-api.merge.dev/mcp

Prerequisites

Before getting started, you'll need the following:

  • A Merge Agent Handler account
  • Claude Code installed (run claude --version to confirm)
  • pipx installed (run pipx --version to confirm, or install via pip install pipx)
  • A Coda account with access to the docs and tables you want to connect

If you want to connect Merge Agent Handler's Coda MCP with internal or customer-facing agentic products, you can follow the steps in our docs.

1. Install the Merge CLI

Install with pipx: pipx install merge-api

How to add pipx install merge-api in Claude Code

Then confirm the installation: merge --version

Related: How to use a Trello MCP in Claude Code

2. Configure the CLI and log in

Run the interactive setup: merge configure

This walks you through linking the CLI to your Merge account by prompting for your API key and setting your default workspace preferences.

Then log in: merge login

This authenticates your session so the CLI can make authorized requests on your behalf going forward.

3. Add Agent Handler to Claude Code

Register the Agent Handler MCP server with Claude Code:

claude mcp add 
--transport http agent-handler https://ah-api.merge.dev/mcp

Open Claude Code and run: /mcp

agent-handler should appear under Local MCPs with a connected status.

Verifying the connection registered

4. Authenticate Coda

Select agent-handler from the MCP list. This opens a browser window where you select which integrations to authenticate. Choose Coda and complete the OAuth flow. Merge stores and manages the credentials going forward.

The first time you use a Coda tool in a Claude Code session, a Magic Link may appear to complete connector authentication.

Coda auth UI

Once authenticated, you won't need to re-authenticate unless you revoke access.

To confirm the connector is accessible, open a Claude Code session and run a command like: "List all rows in my "Q3 OKRs" table in Coda, including the owner, status, and progress percentage for each row."

You should see an output like the following:

Screenshot of using Coda MCP in Claude Code

{{this-blog-only-cta}}

Coda MCP FAQ

In case you have more questions on setting up and using the Coda MCP in Claude Code, we've addressed several more commonly-asked questions below.

What can you do once the Coda MCP is connected to Claude Code?

With Coda connected, Claude Code can:

  • List and search docs: retrieve all docs accessible to the authenticated account and search across them by name or keyword, without opening the Coda UI
  • Read page content: pull the text content of any page in a doc, useful for agents that need to summarize internal documentation or extract context before taking action
  • Query table rows: retrieve rows from any Coda table with filtering by column value, enabling agents to read structured data the same way they would from a database
  • Create and update rows: insert new rows into a table or update existing ones when triggered by an external event, such as a new entry in a form or a status change in another system
  • List table columns: retrieve the column schema for any table, useful for agents that need to understand the data model before reading or writing rows
  • Delete rows: remove rows from a table programmatically, enabling agents to clean up stale records or process items as part of a larger workflow

Why use Merge Agent Handler vs. a self-hosted Coda MCP server?

You can build a self-hosted MCP server on top of Coda's REST API. Coda's API is well-documented, and for a developer with a single workspace and a specific table in mind, the initial setup is manageable: generate an API token from your Coda account settings, define tool schemas for the endpoints you need, and connect it to Claude Code.

The problem is that Coda API tokens carry broad access across every doc and table the user can reach.

A self-hosted setup has no mechanism to restrict an agent to specific docs or tables, no way to prevent a read-only summarization agent from also writing or deleting rows, and no record of what it accessed. As the number of agents or users grows, that lack of scoping becomes a real operational risk.

Merge Agent Handler addresses this by adding tool-level scoping on top of Coda's API.

An agent that generates weekly summaries from a tracker table, for example, can use tools like rows_list and docs_list. But it can be blocked from invoking tools like rows_delete or rows_upsert.

Agent Handler also logs every tool call with the timestamp, tool name, and inputs, giving teams a full audit trail without any custom instrumentation.

Why connect Coda to Claude Code?

Coda holds two kinds of data that agents frequently need: structured table data that functions like a lightweight database, and prose documentation that provides context for decisions. Developers who need agents to read from or write to either of those currently have to build and maintain a dedicated Coda integration for each workflow.

With the Coda MCP connected, Claude Code can query tables, retrieve page content, and update rows without leaving the terminal.

This matters most when Coda data drives a downstream step: pulling the current status of every project in a tracker before generating a stakeholder update, writing a new row when a form is submitted, reading a runbook page for context before executing a fix, and more.

Jon Gitlin
Senior Content Marketing Manager
@Merge

Jon Gitlin is the Managing Editor of Merge's blog. He has several years of experience in the integration and automation space; before Merge, he worked at Workato, an integration platform as a service (iPaaS) solution, where he also managed the company's blog. In his free time he loves to watch soccer matches, go on long runs in parks, and explore local restaurants.

Read more

How to connect a BambooHR MCP with Claude Code (4 steps)

MCP gateway: how it works, benefits, and solutions

AI

How to connect Google Sheets MCP with Claude Code (4 steps)

AI

Subscribe to the Merge Blog

Get stories from Merge straight to your inbox

Subscribe

Connect Claude Code to thousands of tools with Merge Agent Handler

Use Merge Agent Handler’s 150+ connectors (including Coda) to power reliable, secure, and powerful agents.

Get started for free
But Merge isn’t just a Unified 
API product. Merge is an integration platform to also manage customer integrations.  gradient text
But Merge isn’t just a Unified 
API product. Merge is an integration platform to also manage customer integrations.  gradient text
But Merge isn’t just a Unified 
API product. Merge is an integration platform to also manage customer integrations.  gradient text
But Merge isn’t just a Unified 
API product. Merge is an integration platform to also manage customer integrations.  gradient text