Connect your AI Agents to Microsoft Excel in minutes

Merge lets you securely connect your agents to Microsoft Excel and thousands of tools instantly

Available tools

No items found.
View all tools by creating a free accountSee more tools

How to set up Merge Agent Handler

In an mcp.json file, add the configuration below, and restart Cursor.

Learn more in the official documentation ↗

1{
2  "mcpServers": {
3    "agent-handler": {
4      "url": "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
5      "headers": {
6        "Authorization": "Bearer yMt*****"
7      }
8    }
9  }
10}
11
Copy Code

Open your Claude Desktop configuration file and add the server configuration below. You'll also need to restart the application for the changes to take effect.

Make sure Claude is using the Node v20+.

Learn more in the official documentation ↗

1{
2  "mcpServers": {
3    "agent-handler": {
4      "command": "npx",
5      "args": [
6        "-y",
7        "mcp-remote@latest",
8        "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
9        "--header",
10        "Authorization: Bearer ${AUTH_TOKEN}"
11      ],
12      "env": {
13        "AUTH_TOKEN": "yMt*****"
14      }
15    }
16  }
17}
Copy Code
Copied!

Open your Windsurf MCP configuration file and add the server configuration below.
Click on the refresh button in the top right of the Manage MCP server page or in the top right of the chat box in the box icon.

Learn more in the official documentation ↗

1{
2    "mcpServers": {
3      "agent-handler": {
4        "command": "npx",
5        "args": [
6          "-y",
7          "mcp-remote@latest",
8          "https://ah-api.merge.dev/api/v1/tool-packs/<tool-pack-id>/registered-users/<registered-user-id>/mcp",
9          "--header",
10          "Authorization: Bearer ${AUTH_TOKEN}"
11        ],
12        "env": {
13          "AUTH_TOKEN": "<ah-production-access-key>"
14        }
15      }
16    }
17  }
Copy Code

In Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows), run "MCP: Open User Configuration".

You can then add the configuration below and press "start" right under servers. Enter the auth token when prompted.

Learn more in the official documentation ↗

1{
2  "inputs": [
3    {
4      "type": "promptString",
5      "id": "agent-handler-auth",
6      "description": "Agent Handler AUTH_TOKEN", // "yMt*****" when prompt
7      "password": true
8    }
9  ],
10  "servers": {
11    "agent-handler": {
12      "type": "stdio",
13      "command": "npx",
14      "args": [
15        "-y",
16        "mcp-remote@latest",
17        "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
18        "--header",
19        "Authorization: Bearer ${input:agent-handler-auth}"
20      ]
21    }
22  }
23}
Copy Code

FAQs on using Merge's Microsoft Excel  MCP server

FAQs on using Merge's Microsoft Excel  MCP server

What is a Microsoft Excel MCP?

It's an MCP server that lets your agents access data and functionality from Microsoft Excel via tools. Your agents can invoke these tools to read a range of cells, write values into a worksheet, create a new table, add a chart to a workbook, and more.

Microsoft doesn't offer an MCP server purpose built for Excel, but you can use one from a third-party platform, like Merge Agent Handler.

How can I use the Microsoft Excel MCP server?

The use cases naturally depend on the agent you've built, but here are a few common ones:

  • Automated report population: When a finance system closes the books for the month, an agent can populate a shared expense report workbook with the latest figures, writing values into the correct rows and columns without anyone opening the file manually
  • Formula and data validation checks: An agent can scan a range of cells in a forecasting workbook, flag rows where a formula result doesn't match an expected value, and post the discrepancies to a review channel before the report goes out
  • Cross-tool data sync: When a new deal closes in the CRM, an agent can pull the deal details and write them into a revenue tracker workbook stored on SharePoint, keeping the spreadsheet in sync without a manual export
  • Scheduled tracker summaries: On a recurring schedule, an agent can read a project tracker's status column, summarize how many items are overdue or complete, and send that summary to a team channel

What are popular tools for Microsoft Excel's MCP server?

Here are some of the most commonly used tools:

  • get_range: reads the values, formulas, and formatting of a specified range of cells in a worksheet. Useful for agents that need to check a report's current numbers before deciding what to update
  • update_range: writes new values into a range of cells in a worksheet. Call this when an agent needs to push data from another system directly into a workbook
  • create_worksheet: adds a new worksheet to an existing workbook. Good for workflows that generate a fresh tab for each reporting period rather than overwriting prior data
  • create_table: converts a range of cells into a structured Excel table with headers and defined columns. Use this when an agent needs to turn raw data into something that supports sorting, filtering, or table-based formulas
  • add_table_row: appends a new row of data to an existing table. Helpful when an agent needs to log new records, like expenses or tasks, without disturbing existing rows
  • add_chart: creates a chart on a worksheet based on a specified data range. Use this when an agent needs to turn a table of numbers into a visual for a report or dashboard

What makes Merge Agent Handler's Microsoft Excel MCP server better than alternative Microsoft Excel MCP servers?

There are several reasons to use Merge Agent Handler's Microsoft Excel MCP server over building or using an alternative:

  • Enterprise-grade security and DLP: Merge Agent Handler includes built-in data loss prevention controls that let you block or redact sensitive fields before they reach an agent. For Microsoft Excel, this means you can prevent financial figures or personal data stored in a worksheet from being exposed even when the agent has broad read access
  • Managed authentication and credentials: Merge stores and refreshes Microsoft Excel credentials on your behalf. You never expose raw API keys or OAuth tokens to an agent or manage token rotation manually
  • Real-time observability and audit trail: Every tool call made against Microsoft Excel is logged with timestamp, tool name, input parameters, and response metadata. You can audit exactly what an agent read or wrote without instrumenting anything yourself
  • Tool Packs and controlled access: Tool Packs let you bundle specific Microsoft Excel tools with tools from other connectors into a single MCP endpoint, scoped to a specific use case. An agent gets exactly the tools it needs, nothing more

How can I start using Merge Agent Handler's Microsoft Excel MCP server?

You can take the following steps:

1. Create or log into your Merge Agent Handler account.

2. Install the Merge CLI by running pipx install merge-api, then run merge configure to link the CLI to your Merge account and merge login to authenticate your session.

3. Register the Agent Handler MCP server with Claude Code by running claude mcp add --transport http agent-handler https://ah-api.merge.dev/mcp, then open Claude Code and run /mcp to confirm agent-handler appears with a connected status.

4. Select agent-handler from the MCP list. This opens a browser window where you select which integrations to authenticate. Choose Microsoft Excel and complete the auth flow. Merge stores and manages the credentials going forward.

5. Open a Claude Code session and start querying Microsoft Excel data directly. The first time you use a Microsoft Excel tool, a Magic Link may appear to complete connector authentication.

If you want to connect Merge Agent Handler's Microsoft Excel MCP with internal or customer-facing agentic products, you can follow the steps in our docs.

Can employees use Merge to connect their AI tools to Microsoft Excel?

Yes, Merge for Workforce lets your employees connect Claude, ChatGPT, Microsoft Copilot, Cursor, Codex, and other MCP-compatible AI tools to Microsoft Excel without bypassing IT governance.

Instead of setting up direct connections with personal credentials that IT can't monitor or revoke, each employee authenticates through Merge and gets individual credentials tied to their identity. An ops employee can ask their AI to pull the latest numbers from a shared tracker, update a range of cells, or summarize a workbook's status, all within IT-defined permissions.

IT also provisions access by role or group via SCIM. A finance analyst, for example, gets Microsoft Excel access to update budget trackers, NetSuite to pull the latest actuals, and Slack to share monthly variance summaries; while an operations manager gets Microsoft Excel access to maintain a shared project tracker, Asana to sync task status, and Outlook to send stakeholder updates.

Every tool call an employee's AI makes to Microsoft Excel is also inspected against your DLP rules and logged to a searchable audit trail, giving security teams full visibility into what data was accessed and by whom.

Explore other MCP servers built and managed by Merge

granola
Granola
greenhouse
Greenhouse
guru
Guru
hex
Hex
hibob
HiBob
hubspot
HubSpot
intercom
Intercom
jenkins
Jenkins
jira
Jira
jira_service_management
Jira Service Management
kintone
Kintone
klaviyo
Klaviyo
linear
Linear
linkedin
LinkedIn
looker
Looker
lucidchart
Lucidchart
make
Make
metabase
Metabase
microsoft_planner
Microsoft Planner
microsoft_teams
Microsoft Teams
microsoft_teams_gcc
Microsoft Teams GCC High
miro
Miro
monday
Monday.com
n8n
n8n

Ready to try it out?

Whether you're an engineer experimenting with agents or a product manager looking to add tools, you can get started for free now