graph-excel-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
graph-excel-mcp
MCP server for reading and editing Excel workbooks on SharePoint, OneDrive or Teams through Microsoft Graph, without a browser. It has no dependencies and needs Node 18 or later.
It is built for workbooks that several people edit at once:
Every write starts as a dry run.
Before writing, it checks the cells' current content against the version you read, so it won't overwrite someone else's edit.
After writing, it reads the cells back to confirm the change.
Install
Claude Code / any MCP host (stdio):
claude mcp add --scope user graph-excel -- npx -y graph-excel-mcp{ "mcpServers": { "graph-excel": { "command": "npx", "args": ["-y", "graph-excel-mcp"] } } }Claude Desktop extension / Claude plugin (Cowork): clone the repo and run npm run pack. This builds build/graph-excel-mcp-<version>.mcpb and the plugin/ folder. The plugin folder contains the server and a graph-excel skill.
Related MCP server: excel-o365
Sign in
Call the login_status tool, or run npx graph-excel-mcp login, then enter the code it shows at https://login.microsoft.com/device. The refresh token is saved in ~/.graph-excel/token.json with mode 600. Set GRAPH_EXCEL_HOME to keep it somewhere else.
Sign-in uses the Microsoft Graph PowerShell public client with the delegated scope Files.ReadWrite.All, so you don't need to register an app. If your tenant blocks user consent, an admin has to approve that client once.
Workbook aliases
Instead of pasting the SharePoint URL every time, you can add aliases to ~/.graph-excel/workbooks.json (see workbooks.example.json). The resolve tool returns the driveId and itemId you need for an alias.
Tools
Tool | What it does |
| Checks the token, or starts a device code login |
| Returns drive/item ids, last modified, and the sheets with their used ranges |
| Returns values plus a |
| Writes blocks of values with a base check ( |
| Adds or replaces a 「-----update-----」 section under a cell's existing text, keeping the original part byte-identical, and can fill the row with a color |
| Sets or clears the fill color of one or more ranges in a single batch |
Notes
Every call runs inside a workbook session. Sessionless calls on large workbooks can time out with a 504 even though the write was applied.
Line breaks are sent as
\n, which Excel stores as\r\n. If you write\r\ndirectly, the cell ends up with a stray_x000D_.
Release
Bump version in package.json, run npm run pack, commit, then push a matching tag:
git tag v0.3.1 && git push origin v0.3.1The Publish workflow runs the tests, publishes to npm through trusted publishing (no token or OTP; provenance attached) and creates a GitHub release with the .mcpb attached.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Excel analytics: inspect, query (JSON rows), charts, and JSON-to-xlsx workbook writing.
Manage Microsoft 365 email, calendar, contacts and inbox rules via the Graph API with OAuth 2.0.
Parse Excel workbooks, evaluate formulas, trace dependencies and edit workbook models.
1Permissioned access to Outlook, OneDrive and Teams via the user's own Microsoft account
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with SharePoint Online and OneDrive content via Microsoft Graph, supporting device-code authentication for multi-account environments.1MIT
- AlicenseAqualityCmaintenanceEnables managing Excel files in Microsoft 365 (OneDrive/SharePoint) through Microsoft Graph API, including creating workbooks, adding worksheets, creating tables, and reading or adding table rows via MCP tools.6Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to edit real .xlsx workbooks in place through spreadsheet-native tools like describe, find, read, write, and structural edits, recalculating formulas without Excel, LibreOffice, or Python. Every change comes back as a review link showing changed cells before and after, and nothing is written until the user accepts, while charts, pivots, and VBA data return byte-identical.10Apache 2.0
- AlicenseAqualityBmaintenanceEnables building, editing, reading and converting spreadsheets through file-in/file-out tools, including live formulas, tables, conditional formatting, charts and PivotTables. Supports xlsx, csv, tsv, json, html and pdf input and output on Windows, macOS and Linux.9Apache 2.0