MCP

Connect any AI tool to your workbooks using the Model Context Protocol.

Overview

MCP (Model Context Protocol) is an open standard that lets AI tools interact with external services. SheetOS exposes an MCP server — meaning any compatible AI tool can read your data, create tables, run Python, and manage automations directly.

This lets you use SheetOS from tools like Claude Code, Cursor, or Windsurf without leaving your editor.

Server details

Endpointhttps://api.sheetos.ai/api/v1/mcp
TransportStreamable HTTP
AuthBearer token (API key)

Setup

1. Create an API key

Go to Settings in the SheetOS app and create an API key. You’ll need this to authenticate your MCP connection.

Settings page showing API key creation

2. Add the config to your client

Add this configuration to your MCP client’s config file. Replace <your-api-key> with the key from step 1.

{
  "mcpServers": {
    "sheetos": {
      "type": "http",
      "url": "https://api.sheetos.ai/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-key>"
      }
    }
  }
}

3. Restart your client

Restart or reconnect your AI tool to pick up the new server.

Client-specific setup

ClientConfig fileLocation
Claude Code.mcp.jsonProject root
Cursor.cursor/mcp.jsonProject root
Windsurf~/.codeium/windsurf/mcp_config.jsonHome directory

Claude Code — Restart your session, or run /mcp to reconnect.

Cursor — Restart Cursor or reload the window (Cmd+Shift+P → “Reload Window”).

Windsurf — Restart Windsurf to pick up the new config.

Tools

Every MCP connection exposes the following tools. All tools that operate on a specific workbook require a workbook_id parameter.

ToolDescription
list_workbooksList all workbooks accessible to you. Returns IDs, names, descriptions, and page counts.
create_workbookCreate a new workbook.
read_workbook_stateRead live operational state: recent activity, engine status, and automation runtime.
read_tableRead rows from a table with pagination and column filtering.
read_sheetRead data from a sheet range.
queryExecute a SQL SELECT query against the workbook database. Supports JOINs, aggregations, GROUP BY, CTEs, and cross-table queries.
list_filesList files in the workbook filesystem. Filter by directory path.
read_fileRead file contents. Supports text files, images, PDFs, and Office documents.
write_fileCreate or update files. Supports full writes and targeted string replacements.
delete_fileDelete a file from the workbook filesystem.
runExecute Python code in the workbook context with access to the full SheetOS SDK.
load_contextLoad detailed documentation for specific SDK modules or platform guides on demand.

Troubleshooting

Connection fails with 401 — Your API key is invalid or expired. Create a new one in Settings.

Connection fails with 404 — Wrong URL. The endpoint must be exactly https://api.sheetos.ai/api/v1/mcp.

Transport type must be http — SheetOS uses streamable HTTP transport. Do not use sse — it will hang or fail with a parse error.

Config not loading — Ensure the config file is in the correct location for your client. Some clients require a restart to detect new MCP servers.