office-mcp
MCP server for Word, Excel, PowerPoint operations via AI
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- office-mcp
- tags
- [ "mcp", "office", "word", "excel", "powerpoint" ]
- tools
- [ "computer", "code_execution", "file_operations" ]
- author
- claude-office-skills
- models
- [ "claude-sonnet-4", "claude-opus-4" ]
- library
- { "url": "https://github.com/anthropics/skills", "name": "Office MCP", "stars": "N/A" }
- version
- 1.0
- description
- MCP server for Word, Excel, PowerPoint operations via AI
02 资源文件 1
- 参考文档_meta.json280 B
03 SKILL.md 正文
Office Mcp Skill
Overview
This skill wraps Office document operations as MCP tools, allowing Claude to create, edit, and manipulate Word, Excel, and PowerPoint files with standardized interfaces.
How to Use
- Describe what you want to accomplish
- Provide any required input data or files
- I'll execute the appropriate operations
Example prompts:
- "Create Word documents with AI-generated content"
- "Build Excel spreadsheets with formulas"
- "Generate PowerPoint presentations"
- "Batch edit Office documents"
Domain Knowledge
Office MCP Tools
| Tool | Input | Output |
|---|---|---|
create_docx |
Title, sections, styles | .docx file |
edit_docx |
Path, changes | Updated .docx |
create_xlsx |
Data, formulas | .xlsx file |
create_pptx |
Slides, layout | .pptx file |
Integration with Claude Skills
# Example: Combining Skills + MCP
User: "Create a sales report from this data"
1. Data Analysis Skill → Analyze data
2. office-mcp/create_docx → Generate Word report
3. office-mcp/create_xlsx → Generate Excel summary
4. office-mcp/create_pptx → Generate PowerPoint deck
MCP Server Implementation
from mcp import Server
from docx import Document
from openpyxl import Workbook
server = Server("office-mcp")
@server.tool("create_docx")
async def create_docx(title: str, content: str, output_path: str):
doc = Document()
doc.add_heading(title, 0)
doc.add_paragraph(content)
doc.save(output_path)
return {"status": "success", "path": output_path}
@server.tool("create_xlsx")
async def create_xlsx(data: list, output_path: str):
wb = Workbook()
ws = wb.active
for row in data:
ws.append(row)
wb.save(output_path)
return {"status": "success", "path": output_path}
Best Practices
- Validate inputs before document operations
- Use temp files for large documents
- Return structured responses with file paths
- Handle errors gracefully with meaningful messages
Installation
# Install required dependencies
pip install python-docx openpyxl python-pptx reportlab jinja2
Resources
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.