Skip to main content
Glama

Coda MCP 服务器

该项目实现了一个模型上下文协议 (MCP) 服务器,作为与Coda API 交互的桥梁。它允许 MCP 客户端(例如 AI 助手)对特定的 Coda 文档执行操作,例如列出、创建、读取、更新、复制和重命名页面。

特征

服务器向 MCP 客户端公开以下工具:

  • coda_list_documents :列出用户可用的所有文档。

  • coda_list_pages :列出配置的 Coda 文档中的所有页面。

  • coda_create_page :在文档中创建一个新页面,可选择用初始 markdown 内容填充它。

  • coda_get_page_content :以 markdown 形式检索指定页面(按 ID 或名称)的内容。

  • coda_replace_page_content :用新的 markdown 内容替换指定页面的内容。

  • coda_append_page_content :将新的 markdown 内容附加到指定页面的末尾。

  • coda_duplicate_page :使用新名称创建现有页面的副本。

  • coda_rename_page :重命名现有页面。

Related MCP server: Notion MCP Server

用法

将 MCP 服务器添加到 Cursor/Claude Desktop/etc. 像这样:

{
  "mcpServers": {
    "coda": {
      "command": "npx",
      "args": ["-y", "coda-mcp@latest"],
      "env": {
        "API_KEY": "..."
      }
    }
  }
}

所需的环境变量:

  • API_KEY :您的 Coda API 密钥。您可以从 Coda 帐户设置中生成一个。

此 MCP 服务器也可与 Docker 一起使用,如下所示:

{
  "mcpServers": {
    "coda": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "API_KEY", "reaperberri/coda-mcp:latest"],
      "env": {
        "API_KEY": "..."
      }
    }
  }
}
npx -y coda-mcp@latest

本地设置

  1. 先决条件:

    • Node.js

    • 下午

  2. 克隆存储库:

    git clone <repository-url>
    cd coda-mcp
  3. 安装依赖项:

    pnpm install
  4. 构建项目:

    pnpm build

    这会将dist/目录中的 TypeScript 代码编译为 JavaScript。

运行服务器

MCP 服务器通过标准输入/输出 (stdio) 进行通信。要运行它,请设置环境变量并运行已编译的 JavaScript 文件 - dist/index.js 。

发展

  • 代码检查: pnpm lint

  • 格式化: pnpm format

  • OpenAPI 客户端生成: pnpm openapi-ts (如果 Coda API 规范发生变化)

Available Tools

19 tools
coda_append_page_contentB

Append new markdown content to the end of a page

Inputs: docId (required), pageIdOrName (required), content (required).

coda_create_pageC

Create a page in the current document

Inputs: docId (required), name (required), content, parentPageId.

coda_delete_rowB

Delete a single row from a table

Inputs: docId (required), tableIdOrName (required), rowIdOrName (required).

coda_delete_rowsC

Delete multiple rows from a table

Inputs: docId (required), tableIdOrName (required), rowIds (required).

coda_duplicate_pageC

Duplicate a page in the current document

Inputs: docId (required), pageIdOrName (required), newName (required).

coda_get_page_contentB

Get the content of a page as markdown

Inputs: docId (required), pageIdOrName (required).

coda_get_rowB

Get a single row from a table

Inputs: docId (required), tableIdOrName (required), rowIdOrName (required), useColumnNames, +1 more.

coda_list_columnsB

List columns in a table

Inputs: docId (required), tableIdOrName (required), limit, nextPageToken.

coda_list_documentsB

List or search available documents

Inputs: query.

coda_list_pagesC

List pages in the current document with pagination

Inputs: docId (required), limit, nextPageToken.

coda_list_rowsB

List rows in a table with optional filtering and sorting

Inputs: docId (required), tableIdOrName (required), query, sortBy, +4 more.

coda_list_tablesB

List tables in a document

Inputs: docId (required), limit, nextPageToken.

coda_peek_pageA

Peek into the beginning of a page and return a limited number of lines

Inputs: docId (required), pageIdOrName (required), numLines (required).

coda_push_buttonB

Push a button column on a row in a table

Inputs: docId (required), tableIdOrName (required), rowIdOrName (required), columnIdOrName (required).

coda_rename_pageB

Rename a page in the current document

Inputs: docId (required), pageIdOrName (required), newName (required).

coda_replace_page_contentA

Replace the content of a page with new markdown content

Inputs: docId (required), pageIdOrName (required), content (required).

coda_update_rowB

Update a single row in a table

Inputs: docId (required), tableIdOrName (required), rowIdOrName (required), cells (required).

coda_upsert_rowsB

Insert or upsert rows into a table

Inputs: docId (required), tableIdOrName (required), rows (required), keyColumns.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 19 tools

    Disambiguation5/5

    Every tool has a distinct action and target (e.g., create_page vs. duplicate_page vs. rename_page, delete_row vs. delete_rows vs. update_row). No two tools perform overlapping operations. Agents can clearly differentiate based on names and descriptions.

    Naming Consistency5/5

    All tools follow the consistent pattern 'coda_verb_noun' using snake_case (e.g., 'coda_list_rows', 'coda_update_row'). Verbs are imperative and uniquely identify the action. The naming is predictable and uniform across the entire set.

    Tool Count5/5

    With 19 tools, the server covers the main entities in Coda (documents, pages, tables, rows, columns) without being overwhelming. Each tool earns its place, providing both basic and advanced operations (e.g., upsert_rows, push_button). The count is well-scoped for a full-featured MCP server.

    Completeness4/5

    The tool set offers extensive CRUD coverage for pages and rows, including append, replace, peek, and upsert. Notable missing operations include deleting pages, creating tables/columns, and updating table structures, but the core workflows are well-supported. Minor gaps exist but do not severely impede common use cases.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers