Microsoft Office MCP server: read and edit Word documents, Excel workbooks, and PowerPoint files
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add microsoft-office --env MCP_OFFICE_SIDECAR_STATE='<MCP_OFFICE_SIDECAR_STATE>' -- npx -y @mindstone/mcp-server-office~/.codex/config.toml
[mcp_servers.microsoft-office]
command = "npx"
args = ["-y", "@mindstone/mcp-server-office"]
env = { MCP_OFFICE_SIDECAR_STATE = "<MCP_OFFICE_SIDECAR_STATE>" }
# codex mcp add microsoft-office --env MCP_OFFICE_SIDECAR_STATE='<MCP_OFFICE_SIDECAR_STATE>' -- npx -y @mindstone/mcp-server-office~/.cursor/mcp.json
{
"mcpServers": {
"microsoft-office": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-office"
],
"env": {
"MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"microsoft-office": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-office"
],
"env": {
"MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"microsoft-office": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-office"
],
"env": {
"MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"microsoft-office": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-office"
],
"env": {
"MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"microsoft-office": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-office"
],
"env": {
"MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
}
}
}
}Environment variables
MCP_OFFICE_SIDECAR_STATE
Replace the placeholders with your own credentials and keep them out of version control.