Back to Home
jiahuidegit icon

office-mcp-server

by jiahuidegit

Overview

This server enables AI agents to generate professional Word and Excel documents with various themes and embed Mermaid diagrams.

Installation

Run Command
npx @erliban/office-mcp-server

Environment Variables

  • OUTPUT_DIR

Security Notes

The server's `word_create` and `excel_create` tools accept an `outputPath` argument directly from AI input. This allows writing files to arbitrary locations on the host system where the Node.js process has write permissions. An adversarial AI or prompt injection could exploit this to perform path traversal and write to sensitive system files (e.g., `/etc/passwd`, executable paths), leading to severe arbitrary file write vulnerabilities. While `OUTPUT_DIR` can be set via environment variables, the tool's internal logic does not enforce this restriction on the `outputPath` parameter, making it dependent on the calling environment's (AI client) sanitization or sandboxing, which is not guaranteed. Additionally, Mermaid diagram generation relies on an external service (kroki.io), which introduces a dependency on a third-party API and sends diagram code externally, posing a potential data privacy risk for sensitive diagram content.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens100
Stars0
Forks0
Last Update2026-01-18

Tags

document-generationwordexcelmcpai-agent-tool