Skip to main content
The Excel connector provides full access to Microsoft Excel workbooks via the Microsoft Graph API, enabling AI agents and automations to read, write, and manipulate spreadsheets stored in OneDrive or SharePoint.

Read & Write

Access cell values, formulas, and ranges with full formatting support

Tables & Charts

Create and manipulate Excel tables, charts, and pivot tables

Functions

Execute Excel functions and recalculate workbooks

Prerequisites

  • An Azure AD Application registered in your tenant
  • Application permissions granted:
    • Files.Read.All - Read-only access to files
    • Files.ReadWrite.All - Read/write access to files
    • Sites.Read.All or Sites.ReadWrite.All - For SharePoint-based files
  • Admin consent granted for these permissions

Installation

  1. Go to Apps in your workspace
  2. Search for Excel and install it
  3. Configure the app instance with your Azure AD credentials

Configuration

File Access

OneDrive files - provide only itemId:
SharePoint files - provide itemId and siteId:

Available Automations

Workbook Operations

Worksheet Operations

Range Operations

Formatting

Tables

Charts

Named Items & Pivot Tables

Functions

DSUL Examples

Read a Range

Write Values

Create a Table


Error Handling

Common Issues

“File is locked” - The Excel file is open in the desktop application. Close it or wait for auto-save. “Invalid range address” - Use A1 notation (e.g., “A1:C10”, not row/column numbers). “Range too large” - Excel API limits requests to 5 million cells. Split into smaller ranges. “.xls not supported” - Only .xlsx files are supported. Convert legacy files first.

Rate Limits

When rate limited, the API returns HTTP 429 with a Retry-After header.

External Resources

Microsoft Graph Excel API

Official API documentation

Excel API Best Practices

Performance optimization tips

Graph Explorer

Test API calls interactively

MCP Specification

Model Context Protocol specification