# WiseGrid MCP server

> Allows AI agents to read and write WiseGrid sheets, rows, columns, and reports directly from a conversation.

- Repository: https://github.com/RyanKramer/wisegrid-mcp
- Page: https://hostedmcp.org/servers/ryankramer/wisegrid-mcp
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add --env 'WISEGRID_API_KEY=<YOUR_WISEGRID_API_KEY>' wisegrid-mcp -- uvx wisegrid-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "wisegrid-mcp": {
      "command": "uvx",
      "args": [
        "wisegrid-mcp"
      ],
      "env": {
        "WISEGRID_API_KEY": "<YOUR_WISEGRID_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "wisegrid-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "wisegrid-mcp"
      ],
      "env": {
        "WISEGRID_API_KEY": "<YOUR_WISEGRID_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"wisegrid-mcp","type":"stdio","command":"uvx","args":["wisegrid-mcp"],"env":{"WISEGRID_API_KEY":"<YOUR_WISEGRID_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "wisegrid-mcp": {
      "command": "uvx",
      "args": [
        "wisegrid-mcp"
      ],
      "env": {
        "WISEGRID_API_KEY": "<YOUR_WISEGRID_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add wisegrid-mcp --env 'WISEGRID_API_KEY=<YOUR_WISEGRID_API_KEY>' -- uvx wisegrid-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.wisegrid-mcp]
command = "uvx"
args = ["wisegrid-mcp"]

[mcp_servers.wisegrid-mcp.env]
WISEGRID_API_KEY = "<YOUR_WISEGRID_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'WISEGRID_API_KEY=<YOUR_WISEGRID_API_KEY>' wisegrid-mcp uvx -- wisegrid-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "wisegrid-mcp": {
      "command": "uvx",
      "args": [
        "wisegrid-mcp"
      ],
      "env": {
        "WISEGRID_API_KEY": "<YOUR_WISEGRID_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `WISEGRID_API_KEY` | yes | yes | WiseGrid API key (create one under Settings) |
| `WISEGRID_BASE_URL` | no | no | Override the API base URL for self-hosted instances |

## Tools (9)

- `whoami`
- `list_sheets`
- `get_sheet`
- `list_columns`
- `list_rows`
- `add_rows`
- `update_row`
- `update_rows`
- `delete_row`

## FAQ

### How do I identify columns when interacting with cells?

Cells are keyed by column ID rather than the column name. You should call get_sheet or list_columns first to retrieve the correct IDs.

### What happens if I try to update a row that has changed since I last read it?

The system uses version-checking to prevent silent overwrites. If the row has changed, you will receive a version_conflict error.

### Is it possible to accidentally double-apply a write due to a timeout?

No, writes are idempotent because each carries an Idempotency-Key, ensuring retries do not result in duplicate applications.

### Does deleting a row also remove its associated data?

Yes, deleting a row removes the row and its entire subtree, and this action requires a confirmation flag because it is not undoable.
