office-mcp
An MCP server that lets Claude control Microsoft Word and Excel on macOS via AppleScript, providing 98 tools for document and spreadsheet automation.
README
Office MCP Server
An MCP server that lets Claude control Microsoft Word and Excel on macOS via AppleScript.
98 tools - 59 for Word, 39 for Excel - covering documents, text, tables, formatting, navigation, clipboard, headers/footers, sections, images, and more.
Features
- Rich object clipboard - copy and paste content with full formatting between documents, not just plain text. Move styled paragraphs, images, and table fragments without losing anything.
- Deep table operations - full CRUD on rows, columns, and cells in both Word and Excel. Find columns by header text, add/delete rows and columns, read and write individual cells.
- Cross-app coverage - one server handles both Word and Excel. Create a spreadsheet, process data, then build a formatted report in Word - all in a single conversation.
- Headers, footers, and sections - read and write headers/footers per section, insert images into them, control page setup, margins, and orientation. Most MCP servers ignore these entirely.
- Formatting-aware - read current text and paragraph formatting (font, size, bold, color, alignment, indents, spacing). Apply styles, format selections, set number formats in Excel.
- Image support - insert images into documents and headers/footers, resize inline shapes, create reusable image refs for repeated insertion.
- 98 tools total - 59 for Word, 39 for Excel. Not a thin wrapper - full document automation.
Quick Start
yarn install
yarn build
yarn start
Claude Desktop Configuration
Add to your Claude Desktop config:
{
"mcpServers": {
"office": {
"command": "node",
"args": ["/absolute/path/to/office_mcp/dist/index.js"]
}
}
}
MCPB Bundle
yarn build && npx @anthropic-ai/mcpb pack . office-mcp.mcpb
One-click install for Claude Desktop.
Word Tools (59)
| Category | Tools | Examples |
|---|---|---|
| Documents (7) | create, open, save, close, export PDF, get text/info | word_create_document, word_export_pdf |
| Text (4) | insert, replace, delete, format | word_insert_text, word_replace_text |
| Navigation (5) | cursor movement, selection, goto start/end | word_move_cursor_after_text, word_goto_start |
| Tables (10) | CRUD rows/columns/cells, find headers | word_create_table, word_set_table_cell |
| Paragraphs (4) | list, goto, style, delete | word_list_paragraphs, word_set_paragraph_style |
| Bookmarks (4) | list, create, goto, delete | word_create_bookmark, word_goto_bookmark |
| Hyperlinks (2) | list, create | word_list_hyperlinks, word_create_hyperlink |
| Images (4) | insert, create ref, list shapes, resize | word_insert_image, word_resize_inline_shape |
| Clipboard (4) | copy, paste, capture ref, insert ref | word_copy_content, word_paste_content |
| Workflows (3) | copy/clear/set story content | word_copy_story_content, word_set_story_text |
| Headers/Footers (6) | get/set text, insert images | word_get_header_text, word_insert_header_image |
| Sections (4) | list, info, page setup, breaks | word_list_sections, word_set_page_setup |
| Formatting Read (2) | text formatting, paragraph formatting | word_get_text_formatting |
Excel Tools (39)
| Category | Tools | Examples |
|---|---|---|
| Workbooks (6) | create, open, save, close, info, list | excel_create_workbook, excel_list_workbooks |
| Sheets (6) | list, create, delete, rename, activate, info | excel_create_sheet, excel_rename_sheet |
| Cells (7) | get/set value, range, formula, clear, find | excel_get_cell, excel_set_cell_formula |
| Formatting (5) | font, number format, color, merge, autofit | excel_format_cells, excel_set_cell_color |
| Rows/Columns (6) | insert/delete rows/columns, width, height | excel_insert_rows, excel_set_column_width |
| Data (3) | sort, calculate, export CSV | excel_sort_range, excel_export_csv |
| Clipboard (4) | copy, paste, capture ref, insert ref | excel_copy_range, excel_paste_range |
| Workflows (2) | clear worksheet, set range values | excel_clear_worksheet, excel_set_range_values |
License
MIT - see LICENSE
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。