协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
office-mcp【开发与工程】MCP server for Word, Excel, PowerPoint operations via AI
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This skill wraps Office document operations as MCP tools, allowing Claude to create, edit, and manipulate Word, Excel, and PowerPoint files with standardized interfaces.
Example prompts:
| 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 |
# 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
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}
# Install required dependencies
pip install python-docx openpyxl python-pptx reportlab jinja2