The Coda MCP Server is a bridge that enables AI assistants to interact with Coda documents through the Model Context Protocol (MCP). It allows for various operations on Coda documents including listing, creating, reading, updating, duplicating, and renaming pages, all accessible to an MCP client like Claude.
The server provides these tools to MCP clients:
list-pages
: Displays all pages within your configured Coda documentcreate-page
: Creates a new page, with optional markdown contentget-page-content
: Retrieves a page's content as markdown (by ID or name)replace-page-content
: Replaces existing page content with new markdownappend-page-content
: Adds new markdown content to the end of a pageduplicate-page
: Creates a copy of an existing page with a new namerename-page
: Changes the name of an existing pageThe simplest way to use the Coda MCP server is through NPX:
npx -y coda-mcp@latest
Add the server to your MCP client (like Cursor or Claude Desktop) with the following configuration:
{
"mcpServers": {
"coda": {
"command": "npx",
"args": ["-y", "coda-mcp@latest"],
"env": {
"API_KEY": "your-coda-api-key",
"DOC_ID": "your-document-id"
}
}
}
}
You must provide these environment variables:
API_KEY
: Your Coda API key (generate from your Coda account settings)DOC_ID
: The ID of your Coda document (found in the document URL after d
)If you prefer to install the server locally:
pnpm install
pnpm build
API_KEY=your-key DOC_ID=your-doc-id node dist/index.js
Once configured, your MCP client can use any of the tools described in the Features section. For example, with Claude you might:
The server handles translating these requests into the appropriate Coda API calls and returns the results to your MCP client.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.