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 filesFiles.ReadWrite.All- Read/write access to filesSites.Read.AllorSites.ReadWrite.All- For SharePoint-based files
- Admin consent granted for these permissions
- Usage as App
- Usage as MCP
Installation
- Go to Apps in your workspace
- Search for Excel and install it
- Configure the app instance with your Azure AD credentials
Configuration
File Access
OneDrive files - provide onlyitemId: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