Office Mcp

作者 claude-office-skills9c4c7d5cd281MIT499 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

MCP server with 39 tools for Word, Excel, PowerPoint, PDF, OCR operations

AI 生成的概览

一个 MCP 服务器,提供 39 个用于 Word、Excel、PowerPoint、PDF 和 OCR 文档操作的工具。

功能
该技能介绍了一个 MCP 服务器,提供 39 个办公文档处理工具,分为 PDF、电子表格、文档、转换和演示文稿五类。它可以从 PDF 中提取文本和表格,合并、拆分、压缩 PDF,添加水印,填写 PDF 表单,并对扫描版 PDF 和图片进行 OCR。它还能创建和读取 Excel 与 Word 文件、填充 DOCX 模板、生成 PowerPoint 演示文稿,并在 XLSX、CSV、JSON、Markdown、DOCX、PDF、HTML 等格式之间转换。
适用场景
当智能体需要读取、创建、转换或处理 PDF、电子表格、Word 文档或幻灯片等办公文件时使用。适用于从 PDF 提取文本、合并 Word 文档、生成演示文稿或将电子表格转换为 CSV 等任务。
运行要求
需要 Node.js 和 npm 来安装并构建该 MCP 服务器,并在 MCP 客户端(如 Claude Desktop)中进行配置。依赖 pdf-parse、pdf-lib、tesseract.js、xlsx、mammoth、docx、docxtemplater、pizzip、pptxgenjs、jszip、turndown、marked 等软件包。部分转换(docx_to_pdf、html_to_pdf)需要外部工具。该技能本身仅包含说明,不含脚本。

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)

ToolDescription
extract_text_from_pdfExtract text content, supports page selection
extract_tables_from_pdfExtract table data from PDFs
merge_pdfsMerge multiple PDFs into one
split_pdfSplit PDF by page ranges
compress_pdfReduce PDF file size
add_watermark_to_pdfAdd text/image watermarks
fill_pdf_formFill PDF form fields
get_pdf_metadataGet PDF properties and metadata
ocr_pdfOCR on scanned PDFs (multi-language)
ocr_imageOCR on image files (PNG, JPG, TIFF, etc.)

Spreadsheet Tools (7)

ToolDescription
read_xlsxRead Excel files with sheet/range selection
create_xlsxCreate multi-sheet Excel files
analyze_spreadsheetStatistical analysis (min/max/mean/median)
apply_formulaApply Excel formulas to cells
create_chartGenerate chart configurations
pivot_tableCreate pivot tables with aggregation
xlsx_to_jsonConvert Excel to JSON

Document Tools (6)

ToolDescription
extract_text_from_docxExtract text from Word documents
create_docxCreate DOCX with headings, lists, tables
fill_docx_templateFill templates with {{placeholders}}
analyze_document_structureAnalyze headings, tables, word count
insert_table_to_docxInsert tables into documents
merge_docx_filesMerge multiple Word documents

Conversion Tools (9)

ToolDescription
xlsx_to_csvConvert Excel to CSV
csv_to_xlsxConvert CSV to Excel
json_to_xlsxConvert JSON arrays to Excel
docx_to_mdConvert Word to Markdown
md_to_docxConvert Markdown to Word
pdf_to_docxConvert PDF to Word (text extraction)
docx_to_pdfConvert Word to PDF (external tool required)
html_to_pdfConvert HTML to PDF (external tool required)
batch_convertBatch convert multiple files

Presentation Tools (7)

ToolDescription
create_pptxCreate PowerPoint with themes
extract_from_pptxExtract text and images from PPTX
md_to_pptxConvert Markdown to slides
add_slideAdd slides to existing presentations
update_slideUpdate slide content
pptx_to_htmlConvert to reveal.js HTML
get_pptx_outlineGet presentation structure

Installation

1. Clone and Build

bash
cd mcp-servers/office-mcpnpm installnpm run build

2. Configure Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

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 conversion

Supported OCR Languages

  • eng - English
  • chi_sim - Simplified Chinese
  • chi_tra - Traditional Chinese
  • jpn - Japanese
  • kor - Korean
  • fra - French
  • deu - German
  • spa - Spanish

Resources

来源与署名

来源:claude-office-skills/skills位于office-mcp提交9c4c7d5

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架