MS Project MCP Server
Control Microsoft Project via COM automation through the Model Context Protocol (MCP).
Prerequisites
- Windows with Microsoft Project installed (tested on MS Project 16.0)
- Python 3.10+
接入你的智能体
從發布者安裝。不是 PlugMCP 端點。
遠端 URL 還是本機指令? 兩種安裝方式的差異
來自發布者
Control Microsoft Project via COM automation through the Model Context Protocol (MCP).
MCP server for controlling Microsoft Project via COM automation — 79 tools for task, resource, schedule, and baseline management
pip install mcppip install pywin32add_recurring_task): pip install python-dateutilStart MS Project and open a project file (or the server will create one).
Register in your claude_desktop_config.json:
{
"mcpServers": {
"msproject": {
"command": "python",
"args": ["/path/to/msproject/server.py"]
}
}
}
python server.py
Every task query (get_task, get_tasks, etc.) returns a rich dict with 35+ fields including:
switch_project before operating on a different file.undo_last supports up to 10 consecutive undos. MS Project's COM undo is less reliable than the UI's._to_naive() for safe comparisons.RecurringTaskInsert is a dialog-only COM method. The add_recurring_task tool simulates recurrence by creating individual occurrences under a summary task. Requires python-dateutil.get_timephased_data can be slow on large date ranges. Keep queries to reasonable periods (weeks/months, not years).# Run all phases
python tests/test_new_tools.py # 11 tests (core CRUD)
python tests/test_phase2.py # 10 tests (resources, baselines, WBS)
python tests/test_phase3.py # 15 tests (custom fields, calendars, scheduling)
python tests/test_phase4.py # 23 tests (advanced ops, multi-project, filtering)
python tests/test_phase5.py # 11 tests (bug fixes, cost/work tracking)
python tests/test_phase6.py # 75 tests (timephased data, calendar mgmt, variance)
python tests/test_phase7.py # 57 tests (critical path intelligence, what-if)
202 tests total across 7 test suites. All tests require MS Project to be running (they create and close temporary projects).
Single-file server (server.py, ~5,200 lines) using the FastMCP framework. All COM calls go through get_app() / get_proj() helpers. Dates are normalized with _to_naive() and formatted with _fmt_date().
See CONTRIBUTING.md for development setup, conventions, and how to submit changes.
This project is licensed under the MIT License — see LICENSE for details.
MCP server for controlling Microsoft Project via COM automation — 79 tools for task, resource, schedule, and baseline management
工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
這筆記錄未列出必要的環境變數。
MS Procject 透過 stdio 在本機執行。
上次檢查時間:2026-10-27。 MCP server for controlling Microsoft Project via COM automation — 79 tools for task, resource, schedule, and baseline management