# Excel (MCP Server)

> Create, read and edit Excel workbooks without Microsoft Excel

- Type: MCP server
- Publisher: Haris Musa
- Categories: Productivity, Data & Analytics
- Website: https://github.com/haris-musa/excel-mcp-server
- Source: https://github.com/haris-musa/excel-mcp-server
- Transport: stdio
- Launch command: uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
- Sign-in: none
- Environment variables: EXCEL_FILES_PATH
- GitHub stars: 4207
- Listed: 2025-02-12

## About

Community MCP server for manipulating Excel files without Excel installed. Supports reading and writing ranges, formatting, charts, tables, conditional formatting and sheet management, restricted to allowed directories.

## Install

1. **Add the server to Codex**

   Codex CLI:

   ```bash
   codex mcp add excel --env EXCEL_FILES_PATH=YOUR_EXCEL_FILES_PATH -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
   ```

   config.toml:

   ```toml
   [mcp_servers.excel]
   command = "uvx"
   args = ["excel-mcp-server", "stdio", "--allow-dir", "/path/to/workbooks"]
   
   [mcp_servers.excel.env]
   EXCEL_FILES_PATH = "YOUR_EXCEL_FILES_PATH"
   ```

   Agents SDK:

   ```python
   from agents import Agent, Runner
   from agents.mcp import MCPServerStdio
   
   async with MCPServerStdio(
       name="Excel",
       params={"command": "uvx", "args": ["excel-mcp-server", "stdio", "--allow-dir", "/path/to/workbooks"]},
   ) as server:
       agent = Agent(name="Assistant", mcp_servers=[server])
       result = await Runner.run(agent, "Create a budget workbook with monthly columns")
       print(result.final_output)
   ```

## Tools

- `create_workbook`
- `describe_workbook`
- `create_sheet`
- `read_range`
- `write_range`
- `format_range`
- `create_chart`
- `create_table`
- `add_conditional_format`
- `find_cells`
- `merge_cells`
- `copy_sheet`

## Example prompts

- "Create a budget workbook with monthly columns"
- "Read the Sales sheet and summarize totals"
- "Add a bar chart of revenue by region"
- "Highlight cells over 1000 in red"

## Related

- [Notion](https://chatgptplugins.directory/mcp/notion.md): Search, read, and write Notion pages, databases, and comments via hosted MCP
- [Excalidraw](https://chatgptplugins.directory/mcp/excalidraw.md): Draw hand-drawn Excalidraw diagrams live inside ChatGPT, Claude and VS Code
- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Atlassian Rovo (Jira & Confluence)](https://chatgptplugins.directory/mcp/atlassian-rovo.md): Work with Jira issues and Confluence pages through Atlassian's hosted MCP
- [Browser Use](https://chatgptplugins.directory/mcp/browser-use.md): Run Browser Use cloud browser agents or control a local browser over MCP
- [Filesystem](https://chatgptplugins.directory/mcp/filesystem.md): Secure local file operations with configurable directory access

---
Source: https://chatgptplugins.directory/mcp/excel · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
