macos-office365
A Model Context Protocol (MCP) server for automating Microsoft Office 365 applications (PowerPoint and Word) on macOS through AI agents like Claude and Cline.
claude mcp add --transport stdio vairpower-macos-office365-mcp-server python /path/to/macos-office365-mcp-server/src/office365_mcp_server.py
How to use
This MCP server provides automation tools to create and manipulate Microsoft Office documents on macOS (PowerPoint, Word, and Excel) via MCP-compatible AI assistants. It exposes a set of specialized tools that let you create new presentations, documents, and workbooks, add content such as slides, text, images, headings, tables, and charts, and then save the results to files. The server relies on AppleScript integration to control the native Office apps, so it requires macOS permissions for automation. Use the tools to compose complex documents programmatically, orchestrating multiple steps (e.g., create a presentation, add slides, insert content, apply styling, and save to a file) in a single workflow. The available tool groups cover PowerPoint, Word, and Excel actions, plus utility functions to inspect open Office documents or check the status of Office apps.
How to install
Prerequisites:
- macOS 10.15 or later
- Python 3.8 or later
- Microsoft Office for Mac (PowerPoint, Word, and/or Excel)
Installation steps:
- Clone the repository and navigate to the project directory:
git clone https://github.com/vAirpower/macos-office365-mcp-server.git
cd macos-office365-mcp-server
- Install Python dependencies:
pip install -r requirements.txt
- Grant macOS automation permissions for Office apps:
- Open System Preferences > Security & Privacy > Privacy > Automation
- Allow your terminal application (Terminal, iTerm2, VS Code, etc.) to control Microsoft PowerPoint, Microsoft Word, and Microsoft Excel
- If prompted during first run, approve the prompts to enable automation
4) Run the MCP server:
```bash
python src/office365_mcp_server.py
- Integrate with your MCP client by pointing it to the server script location in your client configuration.
Additional notes
Notes and tips:
- This is a Python-based MCP server that uses AppleScript under the hood to drive Office apps; ensure you have opened the Office apps at least once to grant accessibility permissions.
- If you encounter issues like 'Not authorized to send Apple events', recheck Automation permissions and consider restarting the terminal after changes.
- Dependencies include python-pptx, python-docx, and openpyxl; ensure the versions align with your Python environment.
- The server script path in configurations should be the absolute path to src/office365_mcp_server.py.
- If Office apps fail to respond, confirm they are installed in the standard Applications folder and that macOS permissions are correctly set for the terminal/process invoking the script.
Related MCP Servers
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
mcp-yfinance
Real-time stock API with Python, MCP server example, yfinance stock analysis dashboard
pfsense
pfSense MCP Server enables security administrators to manage their pfSense firewalls using natural language through AI assistants like Claude Desktop. Simply ask "Show me blocked IPs" or "Run a PCI compliance check" instead of navigating complex interfaces. Supports REST/XML-RPC/SSH connections, and includes built-in complian
cloudwatch-logs
MCP server from serkanh/cloudwatch-logs-mcp
servicenow-api
ServiceNow MCP Server and API Wrapper
the -company
TheMCPCompany: Creating General-purpose Agents with Task-specific Tools