xlsx-drive-mcp
Allows reading and writing .xlsx files stored on Google Drive, including cell values, formulas, formatting, charts, and sheet management.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@xlsx-drive-mcpread cell A1 from my budget.xlsx"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
xlsx-drive-mcp
An MCP server that lets AI agents (Claude and others) read and write .xlsx files
stored on Google Drive. Fills the gap between Excel MCP servers (local files only)
and Google Drive MCP servers (native Google Sheets only).
Features
Read/write cell values, formulas, formatting, charts
Full sheet management (create, delete, rename, copy)
Google Drive authentication with zero extra setup for existing workspace-mcp users
Conflict detection on concurrent edits
Related MCP server: sheets-mcp-server
Installation
pip install xlsx-drive-mcpRequires Python 3.10+.
Authentication
Option A: Existing workspace-mcp users (zero extra setup)
If you already use workspace-mcp, credentials are reused automatically. Skip to Claude Config below.
Option B: Standalone setup
Go to Google Cloud Console
Create a project (or use an existing one)
Enable the Google Drive API
Create credentials: OAuth client ID → Desktop app
Download the client ID and secret, then:
export GOOGLE_CLIENT_ID=your_client_id
export GOOGLE_CLIENT_SECRET=your_client_secret
xlsx-drive-mcp auth --user you@example.comThis opens a browser, completes the OAuth flow, and stores credentials at
~/.xlsx-drive-mcp/credentials/you@example.com.json.
Add to your global .gitignore:
~/.xlsx-drive-mcp/Claude Config
{
"mcpServers": {
"xlsx-drive": {
"command": "xlsx-drive-mcp",
"args": ["--user", "your-actual-email@example.com"]
}
}
}Replace your-actual-email@example.com with the email you authenticated with.
If you have only one credential file, --user can be omitted.
Scope note
workspace-mcp users inherit workspace-mcp's scope, which is typically full Drive access.
Standalone users get
drive.filescope -- access only to files this app created or opened. Withdrive.filescope,list_xlsx_filesonly returns files you've previously opened with this tool. To search all Drive files, use fulldrivescope or the workspace-mcp path.
Finding a folder_id
Open any Drive folder in your browser. The URL looks like:
https://drive.google.com/drive/folders/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74
The folder_id is the last segment: 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74.
Important warnings
write_rangeover formula cells replaces formulas with static values.read_rangewithdata_only=true(default) returns cached values, not live formula results. Usedata_only=falseto get formula strings instead.copy_sheetsilently drops charts and images from the copied sheet (openpyxl limitation).delete_xlsxmoves the file to trash. The user has 30 days to recover it from Drive UI.
Tool reference
Tool | Description |
| Search Drive for xlsx files |
| Sheet names, data dimensions, named ranges |
| Create a new blank xlsx on Drive |
| Move an xlsx to trash |
| List all sheets |
| Add a new sheet |
| Remove a sheet |
| Rename a sheet |
| Duplicate a sheet (drops charts/images) |
| Read cell values |
| Write cell values |
| Append rows below last data |
| Clear values, preserve formatting |
| Read cell formatting (colors, bold, borders) |
| Apply formatting to a range |
| Set column widths |
| Set row heights |
| Merge a cell range |
| Unmerge a cell range |
| Create a bar, line, pie, or scatter chart |
| Write a formula to a single cell |
Troubleshooting
MCP server won't start / tool not found: Claude Desktop launches MCP servers as background processes with no visible output. To see server logs, run the server manually:
xlsx-drive-mcp --user your@email.comAny errors will appear in the terminal.
list_xlsx_files returns no results:
With drive.file scope, only files this app created or previously opened are visible.
Use get_xlsx_info(file_id) directly with a known file_id from the Drive URL instead.
Shared Drive / Team Drive: Not officially tested in v1. May work; not supported. Open an issue if you test it.
Service accounts: Not supported in v1. Tracked as a roadmap item.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
An MCP server that integrates with Discord to provide AI-powered features.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to read, create, and modify Google Spreadsheets through actions like editing cells and managing sheets. It features a specialized handoff protocol to synchronize tasks and state between different LLMs using a shared spreadsheet log.194 npmMIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that lets AI agents read and write Google Sheets using the Google Sheets API v4.MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to interact with Google Docs, Sheets, and Drive using the user's own Google account.-
- AlicenseNot gradedqualityDmaintenanceMCP server enabling AI agents to read, write, and manage Google Sheets, including sheet manipulation, row/column operations, dropdowns, checkboxes, and conditional formatting.5 npmMIT