coda-mcp-server


Namecoda-mcp-server JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryAn MCP server which integrates with Coda.io
upload_time2025-07-14 22:18:08
maintainerNone
docs_urlNone
authorNone
requires_python<3.14,>=3.11
licenseMIT License Copyright (c) 2025 TJC L.P. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords coda mcp server api integration automation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.

## 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

1. **Coda API Key**: Get your API token from [Coda Account Settings](https://coda.io/account)
2. **Python 3.11+**: Required for the MCP server
3. **uv**: Modern Python package manager ([installation guide](https://docs.astral.sh/uv/getting-started/installation/))

### Quick Start

1. **Clone the repository**
   ```bash
   git clone https://github.com/TJC-LP/coda-mcp-server.git
   cd coda-mcp-server
   ```

2. **Install dependencies**
   ```bash
   uv sync
   ```

3. **Configure your API key**
   ```bash
   cp .env.example .env
   ```
   Edit `.env` and replace `changeme` with your Coda API key:
   ```
   CODA_API_KEY=your-actual-api-key-here
   ```

4. **Install to Claude Desktop**
   ```bash
   uv run mcp install src/coda_mcp_server/server.py -f .env
   ```

   This command automatically configures Claude Desktop to use the Coda MCP server.

## 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 docs
- `getDocInfo(docId)` - Get document metadata
- `createDoc(title, sourceDoc?, timezone?, ...)` - Create new document
- `updateDoc(docId, title?, iconName?)` - Update document properties
- `deleteDoc(docId)` - Delete a document

#### Page Operations
- `listPages(docId, limit?, pageToken?)` - List pages in a doc
- `getPage(docId, pageIdOrName)` - Get page details
- `createPage(docId, name, subtitle?, ...)` - Create new page
- `updatePage(docId, pageIdOrName, ...)` - Update page properties
- `deletePage(docId, pageIdOrName)` - Delete a page
- `getPageContent(docId, pageIdOrName, outputFormat?)` - Export full page content

#### Table Operations
- `listTables(docId, limit?, sortBy?, ...)` - List all tables
- `getTable(docId, tableIdOrName)` - Get table details
- `listColumns(docId, tableIdOrName, ...)` - List table columns
- `getColumn(docId, tableIdOrName, columnIdOrName)` - Get column details

#### Row Operations
- `listRows(docId, tableIdOrName, query?, ...)` - List and filter rows
- `getRow(docId, tableIdOrName, rowIdOrName, ...)` - Get specific row
- `upsertRows(docId, tableIdOrName, rows, ...)` - Insert or update rows
- `updateRow(docId, tableIdOrName, rowIdOrName, row, ...)` - Update single row
- `deleteRow(docId, tableIdOrName, rowIdOrName)` - Delete single row
- `deleteRows(docId, tableIdOrName, rowIds)` - Delete multiple rows
- `pushButton(docId, tableIdOrName, rowIdOrName, columnIdOrName)` - Trigger button

#### Formula Operations
- `listFormulas(docId, limit?, sortBy?)` - List named formulas
- `getFormula(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
```bash
# Install dependencies
uv sync

# Run the server directly
uv run python src/coda_mcp_server/server.py
```

## Troubleshooting

### Common Issues

1. **"API Error 401: Unauthorized"**
   - Check that your `CODA_API_KEY` in `.env` is correct
   - Ensure your API key has the necessary permissions

2. **"Rate limit exceeded"**
   - Coda API has rate limits; wait for the specified time before retrying
   - The server includes automatic rate limit detection

3. **Boolean parameters not working**
   - The server automatically converts boolean values to strings ("true"/"false")
   - This is handled internally, just use boolean values normally

4. **Page export issues**
   - Use `getPageContent` instead of manual export operations
   - This handles the entire export workflow automatically

## 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](https://github.com/TJC-LP/coda-mcp-server/issues) page.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "coda-mcp-server",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.14,>=3.11",
    "maintainer_email": null,
    "keywords": "coda, mcp, server, api, integration, automation",
    "author": null,
    "author_email": "Richie Caputo <rcaputo3@tjclp.com>",
    "download_url": "https://files.pythonhosted.org/packages/fa/9b/570fff02a38e2e735092c6da33bde3557b8e8b33d3a45d7e338e67d6c1c0/coda_mcp_server-0.1.0.tar.gz",
    "platform": null,
    "description": "# Coda MCP Server\n\nA Model Context Protocol (MCP) server that provides seamless integration between Claude and Coda.io, enabling AI-powered document automation and data manipulation.\n\n## Features\n\n### Document Operations\n- **List documents** - Search and filter your Coda docs\n- **Create documents** - Generate new docs with optional templates\n- **Read document info** - Get metadata about any doc\n- **Update documents** - Modify doc properties like title and icon\n- **Delete documents** - Remove docs (use with caution!)\n\n### Page Management\n- **List pages** - Browse all pages in a doc\n- **Create pages** - Add new pages with rich content\n- **Read pages** - Get page details and content\n- **Update pages** - Modify page properties and content\n- **Delete pages** - Remove pages from docs\n- **Export page content** - Get full HTML/Markdown content with `getPageContent`\n\n### Table & Data Operations\n- **List tables** - Find all tables and views in a doc\n- **Get table details** - Access table metadata and structure\n- **List columns** - Browse table columns with properties\n- **Get column info** - Access column formulas and formats\n\n### Row Operations\n- **List rows** - Query and filter table data\n- **Get specific rows** - Access individual row data\n- **Insert/Update rows** - Add or modify data with `upsertRows`\n- **Update single row** - Modify specific row data\n- **Delete rows** - Remove single or multiple rows\n- **Push buttons** - Trigger button columns in tables\n\n### Formula Operations\n- **List formulas** - Find all named formulas in a doc\n- **Get formula details** - Access formula expressions\n\n### Authentication\n- **Who am I** - Get current user information\n\n## Installation\n\n### Prerequisites\n\n1. **Coda API Key**: Get your API token from [Coda Account Settings](https://coda.io/account)\n2. **Python 3.11+**: Required for the MCP server\n3. **uv**: Modern Python package manager ([installation guide](https://docs.astral.sh/uv/getting-started/installation/))\n\n### Quick Start\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/TJC-LP/coda-mcp-server.git\n   cd coda-mcp-server\n   ```\n\n2. **Install dependencies**\n   ```bash\n   uv sync\n   ```\n\n3. **Configure your API key**\n   ```bash\n   cp .env.example .env\n   ```\n   Edit `.env` and replace `changeme` with your Coda API key:\n   ```\n   CODA_API_KEY=your-actual-api-key-here\n   ```\n\n4. **Install to Claude Desktop**\n   ```bash\n   uv run mcp install src/coda_mcp_server/server.py -f .env\n   ```\n\n   This command automatically configures Claude Desktop to use the Coda MCP server.\n\n## Usage in Claude\n\nOnce installed, you can use Coda operations directly in Claude by prefixing commands with `coda:`. Here are some examples:\n\n### Document Operations\n```\n# List all your docs\nUse coda:listDocs with isOwner: true, isPublished: false, query: \"\"\n\n# Get info about a specific doc\nUse coda:getDocInfo with docId: \"your-doc-id\"\n\n# Create a new doc\nUse coda:createDoc with title: \"My New Doc\"\n```\n\n### Working with Tables\n```\n# List tables in a doc\nUse coda:listTables with docId: \"your-doc-id\"\n\n# Get all rows from a table with column names\nUse coda:listRows with docId: \"your-doc-id\", tableIdOrName: \"Table Name\", useColumnNames: true\n\n# Insert a new row\nUse coda:upsertRows with docId: \"your-doc-id\", tableIdOrName: \"Table Name\", rows: [{\n  cells: [\n    {column: \"Name\", value: \"John Doe\"},\n    {column: \"Email\", value: \"john@example.com\"}\n  ]\n}]\n```\n\n### Page Content Export\n```\n# Get the full HTML content of a page\nUse coda:getPageContent with docId: \"your-doc-id\", pageIdOrName: \"Page Name\"\n\n# Get page content as Markdown\nUse coda:getPageContent with docId: \"your-doc-id\", pageIdOrName: \"Page Name\", outputFormat: \"markdown\"\n```\n\n## API Reference\n\n### Core Functions\n\n#### Document Management\n- `listDocs(isOwner, isPublished, query, ...)` - List available docs\n- `getDocInfo(docId)` - Get document metadata\n- `createDoc(title, sourceDoc?, timezone?, ...)` - Create new document\n- `updateDoc(docId, title?, iconName?)` - Update document properties\n- `deleteDoc(docId)` - Delete a document\n\n#### Page Operations\n- `listPages(docId, limit?, pageToken?)` - List pages in a doc\n- `getPage(docId, pageIdOrName)` - Get page details\n- `createPage(docId, name, subtitle?, ...)` - Create new page\n- `updatePage(docId, pageIdOrName, ...)` - Update page properties\n- `deletePage(docId, pageIdOrName)` - Delete a page\n- `getPageContent(docId, pageIdOrName, outputFormat?)` - Export full page content\n\n#### Table Operations\n- `listTables(docId, limit?, sortBy?, ...)` - List all tables\n- `getTable(docId, tableIdOrName)` - Get table details\n- `listColumns(docId, tableIdOrName, ...)` - List table columns\n- `getColumn(docId, tableIdOrName, columnIdOrName)` - Get column details\n\n#### Row Operations\n- `listRows(docId, tableIdOrName, query?, ...)` - List and filter rows\n- `getRow(docId, tableIdOrName, rowIdOrName, ...)` - Get specific row\n- `upsertRows(docId, tableIdOrName, rows, ...)` - Insert or update rows\n- `updateRow(docId, tableIdOrName, rowIdOrName, row, ...)` - Update single row\n- `deleteRow(docId, tableIdOrName, rowIdOrName)` - Delete single row\n- `deleteRows(docId, tableIdOrName, rowIds)` - Delete multiple rows\n- `pushButton(docId, tableIdOrName, rowIdOrName, columnIdOrName)` - Trigger button\n\n#### Formula Operations\n- `listFormulas(docId, limit?, sortBy?)` - List named formulas\n- `getFormula(docId, formulaIdOrName)` - Get formula details\n\n#### Authentication\n- `whoami()` - Get current user information\n\n## Development\n\n### Project Structure\n```\ncoda-mcp-server/\n\u251c\u2500\u2500 src/\n\u2502   \u251c\u2500\u2500 coda_mcp_server/\n\u2502   \u2502   \u2514\u2500\u2500 server.py      # Main MCP server implementation\n\u2502   \u2514\u2500\u2500 resources/\n\u2502       \u2514\u2500\u2500 coda-openapi.yml  # Coda API specification\n\u251c\u2500\u2500 .env.example           # Example environment configuration\n\u251c\u2500\u2500 pyproject.toml        # Project dependencies\n\u2514\u2500\u2500 README.md            # This file\n```\n\n### Running Locally for Development\n```bash\n# Install dependencies\nuv sync\n\n# Run the server directly\nuv run python src/coda_mcp_server/server.py\n```\n\n## Troubleshooting\n\n### Common Issues\n\n1. **\"API Error 401: Unauthorized\"**\n   - Check that your `CODA_API_KEY` in `.env` is correct\n   - Ensure your API key has the necessary permissions\n\n2. **\"Rate limit exceeded\"**\n   - Coda API has rate limits; wait for the specified time before retrying\n   - The server includes automatic rate limit detection\n\n3. **Boolean parameters not working**\n   - The server automatically converts boolean values to strings (\"true\"/\"false\")\n   - This is handled internally, just use boolean values normally\n\n4. **Page export issues**\n   - Use `getPageContent` instead of manual export operations\n   - This handles the entire export workflow automatically\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## Support\n\nFor issues and feature requests, please use the [GitHub Issues](https://github.com/TJC-LP/coda-mcp-server/issues) page.\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2025 TJC L.P.\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.\n        ",
    "summary": "An MCP server which integrates with Coda.io",
    "version": "0.1.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/yourusername/coda-mcp-server/issues",
        "Documentation": "https://github.com/yourusername/coda-mcp-server#readme",
        "Homepage": "https://github.com/yourusername/coda-mcp-server",
        "Source Code": "https://github.com/yourusername/coda-mcp-server"
    },
    "split_keywords": [
        "coda",
        " mcp",
        " server",
        " api",
        " integration",
        " automation"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "285a33a8b683bab6dc4facbcf3cb62869339c9731e1d534ab3f6889c52196d48",
                "md5": "1da6b11835ff6f1087f4a4760e49e32a",
                "sha256": "787d2d95424009731ba8cf705a59f028ec16405ea891ffe6f5b7cfe1146a6d0b"
            },
            "downloads": -1,
            "filename": "coda_mcp_server-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1da6b11835ff6f1087f4a4760e49e32a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.14,>=3.11",
            "size": 11885,
            "upload_time": "2025-07-14T22:18:07",
            "upload_time_iso_8601": "2025-07-14T22:18:07.119466Z",
            "url": "https://files.pythonhosted.org/packages/28/5a/33a8b683bab6dc4facbcf3cb62869339c9731e1d534ab3f6889c52196d48/coda_mcp_server-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fa9b570fff02a38e2e735092c6da33bde3557b8e8b33d3a45d7e338e67d6c1c0",
                "md5": "d6bd31a451d350576a071bd8b0dc1355",
                "sha256": "e84860e1a49289c6ed326275ec18bfbe9c8f076f9c0383afd7397c0ef95a7cf0"
            },
            "downloads": -1,
            "filename": "coda_mcp_server-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d6bd31a451d350576a071bd8b0dc1355",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.14,>=3.11",
            "size": 16319,
            "upload_time": "2025-07-14T22:18:08",
            "upload_time_iso_8601": "2025-07-14T22:18:08.103394Z",
            "url": "https://files.pythonhosted.org/packages/fa/9b/570fff02a38e2e735092c6da33bde3557b8e8b33d3a45d7e338e67d6c1c0/coda_mcp_server-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-14 22:18:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yourusername",
    "github_project": "coda-mcp-server",
    "github_not_found": true,
    "lcname": "coda-mcp-server"
}
        
Elapsed time: 1.95334s