Graph Excel MCP logo

Graph Excel MCP

Read and edit SharePoint, OneDrive, and Teams Excel workbooks with conflict-checked Microsoft Graph operations.

Install Graph Excel MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "graph-excel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "graph-excel-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 12 tools correctly ().

Overview

graph-excel-mcp connects AI agents to Excel workbooks stored on SharePoint, OneDrive, or Teams through Microsoft Graph. It provides tools for reading ranges, searching cells, editing values, managing sheets and rows, and applying formatting. Writes are dry-run by default, compare cell contents against an expected read version, and verify the result afterward. Use it for shared workbooks where preserving other users’ edits matters.

Use cases

  • Read structured data from shared Excel workbooks
  • Update cells without overwriting concurrent edits
  • Search workbook text across multiple sheets
  • Append reviewed notes and color their rows
  • Add rows, sheets, and formatting through an AI agent

Key features

  • Microsoft Graph access to SharePoint, OneDrive, and Teams workbooks
  • Dry-run writes with expected-content checks
  • Read-back verification after edits
  • Per-cell SHA-256 hashes for reads and searches
  • Sheet, row, fill, and format operations
  • Device-code authentication with local token storage

Tools12

What Graph Excel MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

4/4 checks healthy over the last 15d

What it can do

From the 12 tools this server returned when we ran it; 12 declare their own safety hints.

Can delete or modify data · 5Makes network requests · 12Read-only tools · 7
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age12 days
Maintainers1

Observed 2026-11-15 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · graph-excel-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
npm downloads1.4kPackage downloads in the last 30 days.
Last commit22d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed12Callable tools this server registers over MCP.

How Graph Excel MCP works

What graph-excel-mcp does

graph-excel-mcp exposes Excel workbook operations through MCP and Microsoft Graph. It works with files on SharePoint, OneDrive, and Teams without requiring a browser. The server can inspect workbook metadata, read cell values and formatting, search across sheets, update existing content, append rows, insert rows, create or rename sheets, and change selected formatting properties.

The write workflow is designed for workbooks edited by multiple people. Mutating calls first produce a dry run unless send: true is supplied. Before writing, the server compares the target cells with the expected content from an earlier read. Afterward, it reads the affected cells back to verify the operation. Nothing deletes sheets, rows, or cells.

How it works

Sign-in uses Microsoft’s device code flow with the delegated Files.ReadWrite.All scope. The user receives a code and completes authentication at Microsoft’s device login page. A refresh token is stored locally in ~/.graph-excel/token.json with restrictive file permissions. The GRAPH_EXCEL_HOME setting can move this data to another directory.

Each operation runs within a workbook session. A workbook can be addressed using its SharePoint or OneDrive location, or through an alias configured in ~/.graph-excel/workbooks.json. The resolve operation returns the drive and item identifiers, modification time, sheet names, and used ranges needed for subsequent calls.

Cell reads include a sha256: hash for each value. Those hashes support the base check used by write operations and are also returned by searches. For text annotations, append_update preserves the existing portion of a cell byte-for-byte while adding or replacing a delimited update section.

Setup and configuration

The package runs on Node.js 18 or later and has no runtime dependencies. For an MCP host using stdio, install it with npx -y graph-excel-mcp, or configure the equivalent command and argument in the host’s MCP settings. Claude Desktop can also use the .mcpb package attached to the latest GitHub release. Claude Code and other MCP hosts can use the stdio command directly.

Authenticate by calling login_status or running npx graph-excel-mcp login, then complete the device-code flow. If a Microsoft tenant blocks user consent, an administrator must approve the public client. Workbook aliases are optional and are defined in ~/.graph-excel/workbooks.json.

Tools and capabilities

  • login_status checks authentication or begins device-code login.
  • resolve identifies a workbook and lists sheets with their used ranges.
  • read_range returns values, per-cell hashes, and optionally fills.
  • write_values writes value blocks with an expected-content check and read-back verification.
  • append_update manages a -----update----- section beneath existing cell text and can color the row.
  • set_fill sets or clears fills across ranges in one batch.
  • find searches one or all sheets using substring or regular-expression matching.
  • add_sheet, rename_sheet, insert_rows, and append_rows manage workbook structure.
  • set_format changes bold, italic, font color and size, wrapping, alignment, and number formats.

Limitations and notes

Mutating tools require send: true to apply their dry-run result. append_rows only targets cells that remain empty, and new sheets must follow Excel naming rules without duplicating an existing name. Sessionless calls on large workbooks can time out with a 504 even when a write was applied.

Line breaks should be sent as \n. Sending \r\n directly can leave an _x000D_ sequence in the Excel cell. Authentication and workbook traffic go to Microsoft services; the server itself has no separate backend or telemetry service.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Graph Excel MCP

graph-excel-mcp is an MCP server that connects AI agents to Excel workbooks stored on SharePoint, OneDrive, or Teams through Microsoft Graph. Its main tools read ranges, write values with conflict checks, search cells, manage sheets and rows, append updates, and apply fills and formatting.

Install it in an MCP host with `npx -y graph-excel-mcp`. Claude Desktop can also use the `.mcpb` file from the latest GitHub release, while Claude Code can add the stdio command with `claude mcp add`.

Authenticate by calling `login_status` or running `npx graph-excel-mcp login`, then enter the device code at Microsoft’s device login page. The refresh token is saved locally in `~/.graph-excel/token.json`.

Yes, write operations compare the target cells with the expected content read earlier and verify the cells after writing. Changes remain a dry run until the call includes `send: true`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGraph Excel MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/graph-excel-mcp?style=directory)](https://allmcps.com/mcp/graph-excel-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/graph-excel-mcp"><img src="https://allmcps.com/api/badge/graph-excel-mcp?style=directory" alt="Graph Excel MCP on AllMCPs" /></a>