---
name: sheet2api
description: >-
  Connect an MCP client to Sheet2API and safely read or change Google Sheets
  and Excel Online rows. Use when a user asks an agent to work with a
  spreadsheet API hosted in Sheet2API.
compatibility: Requires an MCP-capable client and user-approved OAuth access.
---

# Sheet2API agent skill

Sheet2API turns Google Sheets and Excel Online workbooks into REST APIs and
provides an MCP server for authorized agents. Use the live MCP server for
spreadsheet work. Do not claim access until the user has connected and
authorized the server.

## Connect to MCP

Add this remote MCP server to the client's configuration:

```text
https://sheet2api.com/mcp/
```

The endpoint uses JSON-RPC 2.0 over HTTP POST. Authentication uses OAuth 2.1,
PKCE and dynamic client registration. Do not ask the user to copy an API key
or paste a bearer token. Let them complete sign-in and approve access in the
client's OAuth flow.

After connecting, call `tools/list` and verify the Sheet2API tools are present.
If connection or authorization fails, report the failure and stop; do not
pretend the tools are available or switch to an unapproved account.

## Identify the spreadsheet API

The MCP server does not provide an account-wide API listing tool. Ask the user
for the exact Spreadsheet API name shown in their Sheet2API dashboard. Never
guess an API name. Use that name as `api_name` in every tool call.

Call `list_worksheets` before reading or changing data. It returns the exact
worksheet names and column headers. Use those values as `resource` and filter
keys; do not infer names from a workbook URL or tab position.

## Choose a tool

- `list_worksheets`: discover worksheet names and their column headers.
- `list_rows`: read matching rows as JSON objects.
- `get_cell_values`: read named spreadsheet cells such as `A1,B2`.
- `create_row`: append one row; a retry may append a duplicate.
- `update_rows_partial`: change only the supplied columns.
- `update_rows`: replace all columns in each matched row; omitted columns
  are cleared. Use only when the user asks for full-row replacement.
- `delete_rows`: permanently remove matching rows.

Use filters and a small `limit` to keep reads and writes narrow. Filters use
exact worksheet column names and support exact matches, wildcards, negation,
and numeric comparisons. Several filters combine with `and` by default; use
`query_type: "or"` only when the user wants any filter to match.

Before changing rows, verify the target with `list_rows`. For a single row,
use a specific filter and `limit: 1`. Prefer `update_rows_partial` for edits.
Before `delete_rows` or full-row replacement, explain which rows and fields
will change and get the user's confirmation. Respect the client's tool
approval controls.

Tool results are returned in a text content block containing JSON. Parse that
JSON before summarizing it. Report success only after a successful tool result.

## Access and privacy

MCP access is scoped to the Sheet2API account that approved OAuth. Each
Spreadsheet API has an MCP toggle and read, create, update and delete
permissions. MCP is on by default for new APIs, and the owner can disable it.
An agent's access to one API does not grant access to another account's API.

Google sharing and Excel Online permissions apply to the spreadsheet or
workbook; separate worksheet endpoints do not create separate privacy
boundaries. Do not expose credentials or return sheet data beyond the user's
request. Keep workbooks private when possible and share only data the API is
meant to expose.

## Supported sources and references

Connect a Google Sheet or an Excel Online workbook. Local Excel files, direct
CSV uploads and Microsoft SharePoint links are not supported as connections.
Use the Sheet2API dashboard to create APIs and manage their permissions.

- Agent setup: https://sheet2api.com/agents/
- MCP reference: https://sheet2api.com/documentation/mcp/
- REST documentation: https://sheet2api.com/documentation/
- FAQ: https://sheet2api.com/faqs/
- Privacy: https://sheet2api.com/privacy/
