Office MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Office MCP Server
一个功能强大的 MCP 服务器,支持多种 Office 文档格式的读取、生成、编辑,以及邮件发送功能。
功能特性
格式 | 读取 | 生成 | 编辑 |
DOCX (Word) | ✅ | ✅ | ✅ |
PPTX (PowerPoint) | ✅ | ✅ | 🚧 |
XLSX (Excel) | ✅ | ✅ | 🚧 |
✅ | ✅ | - | |
HTML | - | ✅ | - |
Related MCP server: docforge-mcp
安装
# 克隆仓库
git clone https://github.com/searaylee/office-mcp-server.git
cd office-mcp-server
bun install配置
Claude Code 配置
创建 .mcp.json:
{
"mcpServers": {
"office-tools": {
"command": "bun",
"args": ["run", "/path/to/office-mcp-server/src/index.ts"],
"env": {
"SMTP_HOST": "smtp.163.com",
"SMTP_PORT": "465",
"SMTP_USER": "your-email@163.com",
"SMTP_PASS": "your-auth-code"
}
}
}
}Claude Desktop 配置
编辑 claude_desktop_config.json:
{
"mcpServers": {
"office-tools": {
"command": "npx",
"args": ["-y", "office-mcp-server"],
"env": {
"SMTP_HOST": "smtp.163.com",
"SMTP_PORT": "465",
"SMTP_USER": "your-email@163.com",
"SMTP_PASS": "your-auth-code"
}
}
}
}工具列表
工具 | 功能 |
| 读取 Word 文档 |
| 创建 Word 文档 |
| 读取 PowerPoint |
| 创建 PowerPoint(支持模板) |
| 读取 Excel |
| 创建 Excel |
| 读取 PDF |
| 创建 PDF |
| 创建 HTML |
| 发送邮件(支持附件) |
| 学习 PPT 模板 |
| 学习 Word 模板 |
| 列出已学习模板 |
使用示例
// 创建 PPT(使用模板)
{
"tool": "create_pptx",
"args": {
"output_path": "report.pptx",
"slides": [
{ "title": "季度汇报", "layout": "title" },
{ "title": "项目进展", "content": ["已完成 80%", "进行中 20%"] }
],
"template": "amap-light"
}
}
// 发送邮件
{
"tool": "send_email",
"args": {
"to": "colleague@company.com",
"subject": "文档已生成",
"body": "<h1>通知</h1><p>请查看附件</p>",
"attachments": ["report.pptx"]
}
}已集成模板
amap-light - 高德地图浅色版 PPT 模板
amap-dark - 高德地图深色版 PPT 模板
技术栈
Bun + MCP SDK + docx + pptxgenjs + exceljs + pdfkit + nodemailer
许可证
MIT License - Searay Lee
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Convert, create and edit Word, PowerPoint, Excel and PDF documents from any AI agent.
Automate enterprise-grade documents from templates, merge and 100+ conversions: PDF, Office, HTML.
Composable APIs for document extraction, image transformation, and document & sheet generation.
Fill PDF and Word templates, generate PDFs and Word documents, and collect e-signatures.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Word document generation from templates using Jinja2 syntax and parsing of DOCX, PDF, and Excel files to extract structured content, metadata, and text.1MIT
- AlicenseBqualityDmaintenanceEnables complete Office document lifecycle management for AI agents, including creation, editing, conversion, and templating of DOCX, XLSX, PPTX, PDF, and EML files.4089 PyPIMIT
- FlicenseNot gradedqualityDmaintenanceEnables processing PowerPoint and Word documents, extracting content and structure, combining them, and generating new presentations.1-
- FlicenseNot gradedqualityDmaintenanceEnables processing of Office documents (DOCX, XLSX, PPTX, PDF, Markdown) through 21 tools for reading, creating, editing, converting, comparing, and analyzing documents.-