office-mcp
claude-office-skills/skills
配备39种工具的MCP服务器,可支持Word、Excel、PowerPoint、PDF处理及OCR操作
...展开全部关于 office-mcp
office-mcp 是一种专为特定工作流程设计的可复用 AI 技能。描述:“拥有 39 种工具的 MCP 服务器,可用于 Word、Excel、PowerPoint、PDF 及 OCR 操作。”
该技能会提供操作说明、规范以及针对具体任务的指导,帮助智能体更一致地完成工作。创建者:claude-office-skills - spreadsheet_analysis - document_generation
在实际应用中,这类技能最适合那些需要可重复执行、且希望减少设置步骤与歧义的用户——即 presentation_creation 场景。它是一个完整的 MCP(模型上下文协议)服务器,为 Office 文档操作提供了 **39 种工具**。该服务器采用 TypeScript/Node.js 编写,具备实际功能(而非占位符)。| 工具 | 描述 | |------|-------------|
常见问题
office-mcp 能解决什么问题?
office-mcp 能帮助智能体遵循源文档中规定的特定工作流程,从而减少歧义,确保执行结果与预期任务保持一致。
何时应使用此技能?
当任务符合该技能文档中描述的工作流程、领域或操作规则时,尤其是需要保证执行一致性时,就应当使用它。
主要限制是什么?
该技能的性能受其源代码指令的质量和覆盖范围限制。如果底层文档不完整,智能体可能仍需额外的上下文信息或人工验证。
Office MCP Server
Overview
A complete MCP (Model Context Protocol) server providing 39 tools for Office document operations. Implemented in TypeScript/Node.js with real functionality (not placeholders).
Tool Categories
PDF Tools (10)
| Tool | Description |
|---|---|
extract_text_from_pdf | Extract text content, supports page selection |
extract_tables_from_pdf | Extract table data from PDFs |
merge_pdfs | Merge multiple PDFs into one |
split_pdf | Split PDF by page ranges |
compress_pdf | Reduce PDF file size |
add_watermark_to_pdf | Add text/image watermarks |
fill_pdf_form | Fill PDF form fields |
get_pdf_metadata | Get PDF properties and metadata |
ocr_pdf | OCR on scanned PDFs (multi-language) |
ocr_image | OCR on image files (PNG, JPG, TIFF, etc.) |
Spreadsheet Tools (7)
| Tool | Description |
|---|---|
read_xlsx | Read Excel files with sheet/range selection |
create_xlsx | Create multi-sheet Excel files |
analyze_spreadsheet | Statistical analysis (min/max/mean/median) |
apply_formula | Apply Excel formulas to cells |
create_chart | Generate chart configurations |
pivot_table | Create pivot tables with aggregation |
xlsx_to_json | Convert Excel to JSON |
Document Tools (6)
| Tool | Description |
|---|---|
extract_text_from_docx | Extract text from Word documents |
create_docx | Create DOCX with headings, lists, tables |
fill_docx_template | Fill templates with {{placeholders}} |
analyze_document_structure | Analyze headings, tables, word count |
insert_table_to_docx | Insert tables into documents |
merge_docx_files | Merge multiple Word documents |
Conversion Tools (9)
| Tool | Description |
|---|---|
xlsx_to_csv | Convert Excel to CSV |
csv_to_xlsx | Convert CSV to Excel |
json_to_xlsx | Convert JSON arrays to Excel |
docx_to_md | Convert Word to Markdown |
md_to_docx | Convert Markdown to Word |
pdf_to_docx | Convert PDF to Word (text extraction) |
docx_to_pdf | Convert Word to PDF (external tool required) |
html_to_pdf | Convert HTML to PDF (external tool required) |
batch_convert | Batch convert multiple files |
Presentation Tools (7)
| Tool | Description |
|---|---|
create_pptx | Create PowerPoint with themes |
extract_from_pptx | Extract text and images from PPTX |
md_to_pptx | Convert Markdown to slides |
add_slide | Add slides to existing presentations |
update_slide | Update slide content |
pptx_to_html | Convert to reveal.js HTML |
get_pptx_outline | Get presentation structure |
Installation
1. Clone and Build
cd mcp-servers/office-mcpnpm installnpm run build2. Configure Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{ "mcpServers": { "office-mcp": { "command": "/usr/local/bin/node", "args": ["/path/to/claude-office-skills/mcp-servers/office-mcp/dist/index.js"] } }}3. Restart Claude Desktop
Example Prompts
- "Read the Excel file at ~/Documents/sales.xlsx"
- "Create a PowerPoint with 5 slides about AI trends"
- "Extract text from this PDF and convert to Markdown"
- "Merge these 3 Word documents into one"
- "Analyze the data in this spreadsheet"
Dependencies
pdf-parse, pdf-lib - PDF operationstesseract.js - OCR (pure JavaScript, no native binary needed)xlsx - Excel operationsmammoth, docx - Word operationsdocxtemplater, pizzip - Template fillingpptxgenjs, jszip - PowerPoint operationsturndown, marked - Markdown conversionSupported OCR Languages
eng- Englishchi_sim- Simplified Chinesechi_tra- Traditional Chinesejpn- Japanesekor- Koreanfra- Frenchdeu- Germanspa- Spanish
Resources
- MCP Server Code
- Implementation Plan
- Claude Office Skills Hub





首页
