Content
# @erliban/office-mcp-server
<div align="center">
**🔥 AI-Powered Professional Document Generation MCP Server**
[](https://www.npmjs.com/package/@erliban/office-mcp-server)
[](https://opensource.org/licenses/MIT)
[](https://nodejs.org/)
*8 Document Themes | 6 Mermaid Chart Styles | Compliant with National Standards*
[English](#english)
</div>
---
<a name="english"></a>
## English
### ✨ Core Features
| Feature | Description |
|---------|-------------|
| **🎯 Professional Documents** | Compliant with GB/T 9704-2012 (Government), GB/T 8567-2006 (Software) standards |
| **🎨 Multiple Themes** | 8 document themes + 6 Mermaid chart color schemes |
| **📊 Mermaid Diagrams** | Auto-convert flowcharts, sequence diagrams to PNG images |
| **🤖 AI Native** | Designed for Claude, ChatGPT via MCP protocol |
| **⚡ Ready to Use** | One command to start |
### 📦 Quick Start
#### Installation
```bash
npm install -g @erliban/office-mcp-server
```
#### Claude Desktop Configuration
Add to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"office": {
"command": "npx",
"args": ["@erliban/office-mcp-server"]
}
}
}
```
**Config file location**:
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
### 🎨 Document Themes
#### Standard Themes
| Theme | Name | Use Case | Standard |
|-------|------|----------|----------|
| `government` | Government | Official documents | GB/T 9704-2012 |
| `academic` | Academic | Thesis, research | Academic standards |
| `software` | Software | Requirements, design docs | GB/T 8567-2006 |
| `business` | Business | Reports, proposals | Enterprise standards |
#### Brand Themes
| Theme | Name | Color | Industry |
|-------|------|-------|----------|
| `alibaba` | Alibaba | Orange | E-commerce |
| `tencent` | Tencent | Green | Social, Finance |
| `bytedance` | ByteDance | Black | Tech, Media |
| `minimal` | Minimal | B&W | Universal |
### 📊 Mermaid Chart Themes
| Theme | Name | Color | Best For |
|-------|------|-------|----------|
| `professional` | Professional | Blue #4a90d9 | Technical docs |
| `fresh` | Fresh | Green #52c41a | Flowcharts |
| `business` | Business | Gray #595959 | Formal reports |
| `tech` | Tech | Purple #722ed1 | Product docs |
| `warm` | Warm | Orange #fa8c16 | Proposals |
| `default` | Default | Mermaid default | General |
### 🛠️ Available Tools
#### Word Tools
| Tool | Description |
|------|-------------|
| `word_create` | Create Word document |
| `word_add_heading` | Add heading |
| `word_add_paragraph` | Add paragraph |
| `word_add_table` | Add table |
| `word_add_list` | Add list |
| `word_add_code` | Add code block |
| `word_add_diagram` | Add Mermaid diagram |
| `word_save` | Save document |
#### Excel Tools
| Tool | Description |
|------|-------------|
| `excel_create` | Create workbook |
| `excel_add_sheet` | Add worksheet |
| `excel_write_data` | Write data |
| `excel_add_chart` | Write chart data |
| `excel_save` | Save workbook |
## 🔧 Development | Development
```bash
# Clone
git clone https://github.com/jiahuidegit/office-mcp-server.git
cd office-mcp-server
# Install
npm install
# Dev mode
npm run dev
# Build
npm run build
# Test
npm test
```
## 📄 License
MIT © [Erliban](https://github.com/erliban)