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 從公開儲存庫中收錄這些內容。

檢舉或申請下架