Microsoft Office
Read and edit open Word, Excel and PowerPoint files on desktop Microsoft 365
Microsoft Office is an MCP server for files and documents. It runs locally on your machine and is started by your AI client.
- Platforms
- macOS, Windows
- Runs
- Locally
- Version
- 0.4.3
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-server-office --env MCP_OFFICE_SIDECAR_STATE='<MCP_OFFICE_SIDECAR_STATE>' -- npx -y @mindstone/mcp-server-officeAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-server-office": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-office"
],
"env": {
"MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp-server-office": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-office"
],
"env": {
"MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server-office": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-office"
],
"env": {
"MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"mcp-server-office": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-office"
],
"env": {
"MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add mcp-server-office --env MCP_OFFICE_SIDECAR_STATE='<MCP_OFFICE_SIDECAR_STATE>' -- npx -y @mindstone/mcp-server-officeOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-server-office]
command = "npx"
args = ["-y", "@mindstone/mcp-server-office"]
env = { MCP_OFFICE_SIDECAR_STATE = "<MCP_OFFICE_SIDECAR_STATE>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-server-office": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-office"
],
"env": {
"MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mcp-server-office": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-office" ], "env": { "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>" } } } }Or run: gemini mcp add -s user -e MCP_OFFICE_SIDECAR_STATE='<MCP_OFFICE_SIDECAR_STATE>' mcp-server-office npx -- -y @mindstone/mcp-server-office
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mcp-server-office": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-office" ], "env": { "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "mcp-server-office": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-office" ], "env": { "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "mcp-server-office": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-office" ], "env": { "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "mcp-server-office": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-office" ], "env": { "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcp-server-office": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-office" ], "env": { "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mcp-server-office": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-office" ], "env": { "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mcp-server-office": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-office" ], "env": { "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
MCP_OFFICE_CERT_OWNERSet to rebel when Rebel's manager owns certificate installation; leave absent for standalone setup.MCP_OFFICE_SIDECAR_STATEAbsolute path to sidecar state file (host-managed; sidecar writes port + token here)RequiredMCP_OFFICE_SIDECAR_DISABLEKill-switch — set to 1 to refuse to spawn or talk to the sidecarREBEL_DISABLE_OFFICE_SIDECARDEPRECATED legacy alias for MCP_OFFICE_SIDECAR_DISABLE — still honored for backward compatibility with v0.1.1 operator-set kill-switches; will be removed in a future major version. Use MCP_OFFICE_SIDECAR_DISABLE instead.MCP_OFFICE_SIDECAR_STATE_DIRSidecar state directory (certs, per-app manifests). Normally derived from MCP_OFFICE_SIDECAR_STATE; hosts managing the sidecar lifecycle directly can override.MCP_OFFICE_ADDIN_DIRAbsolute path to the built add-in static files. Defaults to the package's dist/addin/ directory.
About Microsoft Office
Unlike servers that reach cloud files through Microsoft Graph, this one works on documents already open on macOS or Windows. The npm package bundles three pieces that always ship at one version: the MCP server, a small local helper and an Office Add-in. The README counts 62 tools across Word, Excel, PowerPoint and setup.
Every tool returns JSON with an ok flag, the app and action, and either data or a coded error with a fix hint. Text received from Office is wrapped in untrusted-content envelopes, and each successful edit carries an undo sentence. Word and Excel edits can be undone with Ctrl+Z, while PowerPoint for Mac cannot reliably undo add-in edits and some changes cannot be reversed at all.
Setup needs Node.js 20+, Microsoft 365 apps and a trusted local certificate, plus a state-file path in the MCP_OFFICE_SIDECAR_STATE variable. On Windows the helper registers its manifest under the current user's registry key without administrator rights.
Tools this server provides (3)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 3 names don't say.
From the server's own tool labels and tool names; not verified by us.
- rebel_office_excel_set_formula
- Writes formulas into Excel cells.
- rebel_office_excel_format_range
- Applies formatting such as bold to a range.
- rebel_office_setup
- Sets up or uninstalls the Office add-in registration.
What it does
- Live document access
- Works with selections, formulas and tracked changes in open files.
- Three Office apps
- Word, Excel and PowerPoint in one server.
- Structured results
- JSON with ok, app, action and error codes.
- Untrusted-content envelopes
- Document text is marked as data, not instructions.
- Undo guidance
- Every edit returns how to reverse it.
- Kill switch
- An environment variable turns the sidecar off.
Good for
- Fill an Excel column with a formula and bold the totals
- Edit a Word draft with tracked changes
- Adjust slides in an open deck
- Read the contents of a workbook for analysis
Microsoft Office FAQ
Which systems does Microsoft Office support?
macOS or Windows with desktop Microsoft 365.
Does Microsoft Office need an account?
No auth is listed; it runs locally with an Office Add-in.
Can edits be undone?
Mostly. Word and Excel via Ctrl+Z; PowerPoint on Mac is limited and some edits cannot be reversed.
What do I need to configure?
The path of a sidecar-state.json file in MCP_OFFICE_SIDECAR_STATE.
How do I add Microsoft Office to Claude Code?
Run this command in your terminal: claude mcp add mcp-server-office --env MCP_OFFICE_SIDECAR_STATE='<MCP_OFFICE_SIDECAR_STATE>' -- npx -y @mindstone/mcp-server-office
What are the best alternatives to Microsoft Office?
The closest alternatives to Microsoft Office are Ha MCP, Concord MCP, Open Sunsama, Scholar Sidekick and Dayfile.app.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.
