An MCP server which integrates with Coda.io
Project description
Coda MCP Server
A Model Context Protocol (MCP) server that provides seamless integration between Claude and Coda.io, enabling AI-powered document automation and data manipulation.
Note: This is an unofficial MCP server developed by TJC L.P. and is not affiliated with, endorsed by, or supported by Coda. For official Coda support and documentation, please visit coda.io.
Features
Document Operations
- List documents - Search and filter your Coda docs
- Create documents - Generate new docs with optional templates
- Read document info - Get metadata about any doc
- Update documents - Modify doc properties like title and icon
- Delete documents - Remove docs (use with caution!)
Page Management
- List pages - Browse all pages in a doc
- Create pages - Add new pages with rich content
- Read pages - Get page details and content
- Update pages - Modify page properties and content
- Delete pages - Remove pages from docs
- Export page content - Get full HTML/Markdown content with
getPageContent
Table & Data Operations
- List tables - Find all tables and views in a doc
- Get table details - Access table metadata and structure
- List columns - Browse table columns with properties
- Get column info - Access column formulas and formats
Row Operations
- List rows - Query and filter table data
- Get specific rows - Access individual row data
- Insert/Update rows - Add or modify data with
upsertRows - Update single row - Modify specific row data
- Delete rows - Remove single or multiple rows
- Push buttons - Trigger button columns in tables
Formula Operations
- List formulas - Find all named formulas in a doc
- Get formula details - Access formula expressions
Authentication
- Who am I - Get current user information
Installation
Prerequisites
- Coda API Key: Get your API token from Coda Account Settings
- Python 3.11+: Required for the MCP server
Option 1: Install from PyPI (Recommended)
The Coda MCP server is available on PyPI and can be installed directly using uvx (recommended) or pip:
# Using uvx (no installation needed, just run)
uvx coda-mcp-server
# Or install globally with pip
pip install coda-mcp-server
Option 2: Install from Source
-
Clone the repository
git clone https://github.com/TJC-LP/coda-mcp-server.git cd coda-mcp-server
-
Install dependencies
uv sync -
Configure your API key
cp .env.example .env
Edit
.envand replacechangemewith your Coda API key:CODA_API_KEY=your-actual-api-key-here
Configuration for Claude Desktop
To use the Coda MCP server with Claude Desktop, you need to add it to your Claude Desktop configuration file.
Configuration File Location
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the Coda MCP Server
Edit the configuration file and add the Coda server to the mcpServers section:
{
"mcpServers": {
"coda": {
"command": "uvx",
"args": ["coda-mcp-server"],
"env": {
"CODA_API_KEY": "your-coda-api-key-here"
}
}
}
}
Important: Replace
your-coda-api-key-herewith your actual Coda API key from Coda Account Settings.
Alternative: Using Local Installation
If you installed from source, you can point to your local installation:
{
"mcpServers": {
"coda": {
"command": "uv",
"args": ["run", "python", "/path/to/coda-mcp-server/src/coda_mcp_server/server.py"],
"env": {
"CODA_API_KEY": "your-coda-api-key-here"
}
}
}
}
Verify Installation
After adding the configuration:
- Restart Claude Desktop
- Look for the settings icon in the bottom of your conversation
- Click it and verify that "coda" is listed as a connected server
- You should see 25 available Coda tools when you click
codain the dropdown and can toggle the ones that you need specifically.
Usage in Claude
Once installed, you can use Coda operations directly in Claude by prefixing commands with coda:. Here are some examples:
Document Operations
# List all your docs
Use coda:listDocs with isOwner: true, isPublished: false, query: ""
# Get info about a specific doc
Use coda:getDocInfo with docId: "your-doc-id"
# Create a new doc
Use coda:createDoc with title: "My New Doc"
Working with Tables
# List tables in a doc
Use coda:listTables with docId: "your-doc-id"
# Get all rows from a table with column names
Use coda:listRows with docId: "your-doc-id", tableIdOrName: "Table Name", useColumnNames: true
# Insert a new row
Use coda:upsertRows with docId: "your-doc-id", tableIdOrName: "Table Name", rows: [{
cells: [
{column: "Name", value: "John Doe"},
{column: "Email", value: "john@example.com"}
]
}]
Page Content Export
# Get the full HTML content of a page
Use coda:getPageContent with docId: "your-doc-id", pageIdOrName: "Page Name"
# Get page content as Markdown
Use coda:getPageContent with docId: "your-doc-id", pageIdOrName: "Page Name", outputFormat: "markdown"
API Reference
Core Functions
Document Management
listDocs(isOwner, isPublished, query, ...)- List available docsgetDocInfo(docId)- Get document metadatacreateDoc(title, sourceDoc?, timezone?, ...)- Create new documentupdateDoc(docId, title?, iconName?)- Update document propertiesdeleteDoc(docId)- Delete a document
Page Operations
listPages(docId, limit?, pageToken?)- List pages in a docgetPage(docId, pageIdOrName)- Get page detailscreatePage(docId, name, subtitle?, ...)- Create new pageupdatePage(docId, pageIdOrName, ...)- Update page propertiesdeletePage(docId, pageIdOrName)- Delete a pagegetPageContent(docId, pageIdOrName, outputFormat?)- Export full page content
Table Operations
listTables(docId, limit?, sortBy?, ...)- List all tablesgetTable(docId, tableIdOrName)- Get table detailslistColumns(docId, tableIdOrName, ...)- List table columnsgetColumn(docId, tableIdOrName, columnIdOrName)- Get column details
Row Operations
listRows(docId, tableIdOrName, query?, ...)- List and filter rowsgetRow(docId, tableIdOrName, rowIdOrName, ...)- Get specific rowupsertRows(docId, tableIdOrName, rows, ...)- Insert or update rowsupdateRow(docId, tableIdOrName, rowIdOrName, row, ...)- Update single rowdeleteRow(docId, tableIdOrName, rowIdOrName)- Delete single rowdeleteRows(docId, tableIdOrName, rowIds)- Delete multiple rowspushButton(docId, tableIdOrName, rowIdOrName, columnIdOrName)- Trigger button
Formula Operations
listFormulas(docId, limit?, sortBy?)- List named formulasgetFormula(docId, formulaIdOrName)- Get formula details
Authentication
whoami()- Get current user information
Development
Project Structure
coda-mcp-server/
├── src/
│ ├── coda_mcp_server/
│ │ └── server.py # Main MCP server implementation
│ └── resources/
│ └── coda-openapi.yml # Coda API specification
├── .env.example # Example environment configuration
├── pyproject.toml # Project dependencies
└── README.md # This file
Running Locally for Development
# Install dependencies
uv sync
# Run the server directly
uv run python src/coda_mcp_server/server.py
Troubleshooting
Common Issues
-
"API Error 401: Unauthorized"
- Check that your
CODA_API_KEYin.envis correct - Ensure your API key has the necessary permissions
- Check that your
-
"Rate limit exceeded"
- Coda API has rate limits; wait for the specified time before retrying
- The server includes automatic rate limit detection
-
Boolean parameters not working
- The server automatically converts boolean values to strings ("true"/"false")
- This is handled internally, just use boolean values normally
-
Page export issues
- Use
getPageContentinstead of manual export operations - This handles the entire export workflow automatically
- Use
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For issues and feature requests, please use the GitHub Issues page.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coda_mcp_server-0.1.1.tar.gz.
File metadata
- Download URL: coda_mcp_server-0.1.1.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59909794241f0d1f4699907079b5a3c8cc9407b93f57b503de35f5e9d77df5a1
|
|
| MD5 |
5733ef553e8279506eef8d666e2d2af8
|
|
| BLAKE2b-256 |
aaedf2f10b056dbf7285d2e5ed37abf3c445c83b9b504b34f2b8430e6b36761c
|
Provenance
The following attestation bundles were made for coda_mcp_server-0.1.1.tar.gz:
Publisher:
release.yml on TJC-LP/coda-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coda_mcp_server-0.1.1.tar.gz -
Subject digest:
59909794241f0d1f4699907079b5a3c8cc9407b93f57b503de35f5e9d77df5a1 - Sigstore transparency entry: 590992208
- Sigstore integration time:
-
Permalink:
TJC-LP/coda-mcp-server@19bf7f6d3ea60afd8ba526cd9bc505fab4f3ee39 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/TJC-LP
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@19bf7f6d3ea60afd8ba526cd9bc505fab4f3ee39 -
Trigger Event:
push
-
Statement type:
File details
Details for the file coda_mcp_server-0.1.1-py3-none-any.whl.
File metadata
- Download URL: coda_mcp_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7cea0318f89d11c968245ff731a1d87747ae03c552d0cd9ce4022734f86596f
|
|
| MD5 |
a39a57944d5c5a70da576a17680fc53b
|
|
| BLAKE2b-256 |
a7f2f13fad142f402894c4a9fe981068a6506a8e21e6ec72451fc059cdf7d020
|
Provenance
The following attestation bundles were made for coda_mcp_server-0.1.1-py3-none-any.whl:
Publisher:
release.yml on TJC-LP/coda-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coda_mcp_server-0.1.1-py3-none-any.whl -
Subject digest:
b7cea0318f89d11c968245ff731a1d87747ae03c552d0cd9ce4022734f86596f - Sigstore transparency entry: 590992235
- Sigstore integration time:
-
Permalink:
TJC-LP/coda-mcp-server@19bf7f6d3ea60afd8ba526cd9bc505fab4f3ee39 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/TJC-LP
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@19bf7f6d3ea60afd8ba526cd9bc505fab4f3ee39 -
Trigger Event:
push
-
Statement type: