Skip to main content
Glama
Numbers MCP Server

Numbers MCP Server

by alexlock1

Numbers MCP Server

An MCP (Model Context Protocol) server for reading and writing Apple Numbers spreadsheets.

Features

  • Read Operations: Get table info, fetch rows with pagination, find rows with flexible conditions

  • Write Operations: Update rows, add rows, delete rows, batch updates with different values per row

  • Styling (macOS only): Set row colors, color rows by column value, auto-detect existing color schemes

Related MCP server: Excel MCP Server

Tools

Tool

Description

numbers_get_info

Quick overview of a Numbers file (sheets, headers, row count, preview)

numbers_get_table

Get table data with optional pagination and column filtering

numbers_find_rows

Find rows matching conditions (equality, contains, gt, lt, gte, lte, ne)

numbers_update_rows

Update all rows matching a condition to the same values

numbers_add_row

Add one or more rows to a table

numbers_delete_rows

Delete rows matching a condition

numbers_batch_update

Update multiple rows with different values in one operation

numbers_set_row_color

Set background color of a specific row

numbers_color_rows_by_value

Color rows based on a column's value (e.g., status)

numbers_detect_color_mapping

Auto-detect color scheme from existing styling

Installation

Clone and build:

git clone https://github.com/mycleaningfam/numbers-mcp-server.git
cd numbers-mcp-server
npm install
npm run build

Configuration

Add to your MCP settings (e.g., .mcp.json or Claude Desktop config):

{
  "mcpServers": {
    "numbers": {
      "command": "node",
      "args": ["/path/to/numbers-mcp-server/dist/index.js"]
    }
  }
}

Usage Examples

Get table overview

numbers_get_info({ filePath: "/path/to/file.numbers" })

Find rows with conditions

numbers_find_rows({
  filePath: "/path/to/file.numbers",
  where: { Status: "In Progress" },
  columns: ["ID", "Task", "Status"],
  limit: 10
})

Update rows

numbers_update_rows({
  filePath: "/path/to/file.numbers",
  where: { Status: "Done" },
  set: { Priority: "P1" }
})

Batch update with different values

numbers_batch_update({
  filePath: "/path/to/file.numbers",
  updates: [
    { where: { ID: 1 }, set: { Priority: "P0" } },
    { where: { ID: 2 }, set: { Priority: "P1" } },
    { where: { ID: 3 }, set: { Priority: "P2" } }
  ]
})

Color rows by status

numbers_color_rows_by_value({
  filePath: "/path/to/file.numbers",
  column: "Status",
  colorMap: {
    "Done": { r: 144, g: 238, b: 144 },
    "In Progress": { r: 173, g: 216, b: 230 }
  }
})

Requirements

  • Node.js 18+

  • macOS (required for styling features - uses AppleScript to control Numbers app)

  • Numbers app installed (for styling features)

How It Works

  • Reading: Uses SheetJS (xlsx) library to parse .numbers files

  • Writing: Uses AppleScript to update cells via the Numbers app (SheetJS free version cannot write .numbers format)

  • Styling: Uses AppleScript to set row background colors through Numbers app automation

License

MIT

Available Tools

11 tools
numbers_add_rowB

Add one or more rows to a Numbers table. Changes are saved to the file.

Inputs: rows (required), filePath (required), sheetName.

numbers_batch_updateA

Update multiple rows with DIFFERENT values in a single write operation. Each update specifies its own where condition and set values. More efficient than multiple numbers_update_rows calls when setting different values per row.

Inputs: updates (required), filePath (required), sheetName.

numbers_color_rows_by_valueA

Color multiple rows based on a column's value. For example, color all 'Done' rows green and 'In Progress' rows blue. Requires macOS.

Inputs: column (required), colorMap (required), filePath (required), sheetName.

numbers_delete_rowsB

Delete rows from a Numbers table that match conditions. Changes are saved to the file.

Inputs: where (required), filePath (required), sheetName.

numbers_detect_color_mappingA

Auto-detect color mapping by reading existing row colors and correlating with column values. Returns a colorMap that can be used with numbers_color_rows_by_value. Requires macOS.

Inputs: column (required), filePath (required), sheetName.

numbers_find_rowsB

Find rows in a Numbers table matching conditions. Supports equality (Status: 'Done') and operators (Priority: {op: 'gt', value: 5})

Inputs: where (required), filePath (required), limit, offset, +2 more.

numbers_get_infoA

Get a quick overview of a Numbers file: sheet names, headers, row count, and first 3 rows as preview

Inputs: filePath (required).

numbers_get_tableB

Get table data from a Numbers file with optional pagination and column filtering

Inputs: filePath (required), limit, offset, columns, +1 more.

numbers_set_cell_colorB

Set the background color of a specific cell. Requires macOS (uses AppleScript). Numbers app will open briefly.

Inputs: color (required), column (required), filePath (required), rowIndex (required), +1 more.

numbers_set_row_colorA

Set the background color of a specific row. Requires macOS (uses AppleScript). Numbers app will open briefly.

Inputs: color (required), filePath (required), rowIndex (required), sheetName.

numbers_update_rowsA

Update rows in a Numbers table that match conditions. Sets ALL matching rows to the SAME values. For different values per row, use numbers_batch_update instead. Changes are saved to the file.

Inputs: set (required), where (required), filePath (required), sheetName.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, but numbers_update_rows and numbers_batch_update both update rows, and numbers_set_row_color versus numbers_color_rows_by_value both color rows. Descriptions clarify the distinctions, so an agent can tell them apart with careful reading.

    Naming Consistency5/5

    All tools use a consistent numbers_ prefix with snake_case verb_noun naming. The pattern is predictable throughout, including compound actions like batch_update and color_rows_by_value.

    Tool Count5/5

    With 11 tools, the set is well-scoped for Numbers file row manipulation and formatting. Each tool has a clear role, and there are no obviously redundant entries.

    Completeness4/5

    The server provides strong row-level CRUD coverage: info, table reading, finding, adding, updating, deleting, and coloring. Minor gaps exist around file/sheet/table creation and structural operations, but core workflows are covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to create, read, view, and edit Apple Numbers spreadsheets through the Model Context Protocol, leveraging both a parser engine and the Numbers application for formula evaluation and export.
      1
      LGPL 3.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to read, create, edit, format, theme, preview and export Apple Numbers, Keynote and Pages files on macOS through 64 tools, including deck building from outlines, design kits, design review of slides, and Spotlight file lookup. Every write is backed up and swapped in atomically with one-call undo, and Arabic/RTL content round-trips exactly.
      65
      86 PyPI
      4
      MIT