Skip to main content
Glama
README.md
# excel-mcp-server-ts

Excel Model Context Protocol (MCP) server — TypeScript version. Lets MCP clients (Claude Desktop, Claude Code, and other MCP-capable hosts) create and manipulate Excel workbooks programmatically: sheets, cell data, formatting, calculations, charts and pivot tables. Built on [ExcelJS](https://github.com/exceljs/exceljs), no Excel installation required.

## Features

- Workbook and worksheet management
- Reading and writing cell data (`src/data.ts`, `src/cellUtils.ts`)
- Cell formatting (`src/formatting.ts`)
- Formulas and calculations (`src/calculations.ts`)
- Charts (`src/chart.ts`) and pivot tables (`src/pivot.ts`)

## Install & build

```bash
npm install
npm run build   # tsc -> dist/
```

## Run

```bash
npm start       # node dist/cli.js
# or during development:
npm run dev     # ts-node src/cli.ts
```

## Use with an MCP client

Example entry for `claude_desktop_config.json` (or any MCP host config):

```json
{
  "mcpServers": {
    "excel": {
      "command": "node",
      "args": ["<path-to-repo>/dist/cli.js"]
    }
  }
}
```

## Project layout

```
src/
  cli.ts           entry point (bin: excel-mcp)
  server.ts        MCP server wiring
  data.ts          cell/range data operations
  formatting.ts    styles and formats
  calculations.ts  formulas
  chart.ts         charts
  pivot.ts         pivot tables
  cellUtils.ts     helpers
excel_files/       sample workbook for local testing
```

## License

ISC