SKILL.md
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 |
extracttextfrom_pdf |
Extract text content, supports page selection |
extracttablesfrom_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 |
addwatermarkto_pdf |
Add text/image watermarks |
fillpdfform |
Fill PDF form fields |
getpdfmetadata |
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 |
xlsxtojson |
Convert Excel to JSON |
Document Tools (6)
| Tool |
Description |
extracttextfrom_docx |
Extract text from Word documents |
create_docx |
Create DOCX with headings, lists, tables |
filldocxtemplate |
Fill templates with {{placeholders}} |
analyzedocumentstructure |
Analyze headings, tables, word count |
inserttableto_docx |
Insert tables into documents |
mergedocxfiles |
Merge multiple Word documents |
Conversion Tools (9)
| Tool |
Description |
xlsxtocsv |
Convert Excel to CSV |
csvtoxlsx |
Convert CSV to Excel |
jsontoxlsx |
Convert JSON arrays to Excel |
docxtomd |
Convert Word to Markdown |
mdtodocx |
Convert Markdown to Word |
pdftodocx |
Convert PDF to Word (text extraction) |
docxtopdf |
Convert Word to PDF (external tool required) |
htmltopdf |
Convert HTML to PDF (external tool required) |
batch_convert |
Batch convert multiple files |
Presentation Tools (7)
| Tool |
Description |
create_pptx |
Create PowerPoint with themes |
extractfrompptx |
Extract text and images from PPTX |
mdtopptx |
Convert Markdown to slides |
add_slide |
Add slides to existing presentations |
update_slide |
Update slide content |
pptxtohtml |
Convert to reveal.js HTML |
getpptxoutline |
Get presentation structure |
Installation
1. Clone and Build
cd mcp-servers/office-mcp
npm install
npm run build
2. Configure Claude Desktop
Add to ~/Library/Application Support/Claude/claudedesktopconfig.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 operations
tesseract.js - OCR (pure JavaScript, no native binary needed)
xlsx - Excel operations
mammoth, docx - Word operations
docxtemplater, pizzip - Template filling
pptxgenjs, jszip - PowerPoint operations
turndown, 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