TruePath Office
TruePath Office — MCP server (truepath-office-mcp)
Let your AI read and edit Office documents locally. Files never leave your Mac.
An MCP server that lets your AI agent — Claude Desktop, Claude Code, Codex, Cursor, Windsurf, or any MCP client — process Word (DOCX), Excel (XLSX), PowerPoint (PPTX) and PDF files on your machine: evaluate spreadsheet formulas, read & write workbooks and slide decks, extract structured DOCX content, and merge / split / protect PDFs.
Built and maintained by Joy Truepath Pte. Ltd., the
team behind the TruePath Office
Mac app (on the Mac App Store). The
engine here (TruePathCore) is the same headless, Foundation-only, zero-
dependency core that ships inside the app — open-sourced for transparency and
standalone use.
Privacy
100% local. The server runs on your Mac and makes no network calls.
No telemetry, no analytics, no phone-home.
Works fully offline, forever, with no key or account.
Related MCP server: Office MCP Server
Requirements
macOS 14 (Sonoma) or newer
Swift 6 / Xcode 16 toolchain (to build) —
xcode-select --installor swift.org
Build
git clone https://github.com/JoyTruepath/truepath-office-mcp.git
cd truepath-office-mcp
swift build -c releaseThis produces two binaries under .build/release/:
truepath-office-mcp— the MCP stdio servertruepath— a standalone CLI for the same engine
Get the server's absolute path for the config snippets below:
echo "$(pwd)/.build/release/truepath-office-mcp"Hook it up
Use the absolute path printed above wherever you see /path/to/....
Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json
{ "mcpServers": { "truepath-office": { "command": "/path/to/truepath-office-mcp/.build/release/truepath-office-mcp" } } }Claude Code
claude mcp add truepath-office -- "/path/to/truepath-office-mcp/.build/release/truepath-office-mcp"Codex — ~/.codex/config.toml
[mcp_servers.truepath-office]
command = "/path/to/truepath-office-mcp/.build/release/truepath-office-mcp"Cursor / Windsurf — MCP settings (see each IDE's docs for the file location)
{ "mcpServers": { "truepath-office": { "command": "/path/to/truepath-office-mcp/.build/release/truepath-office-mcp" } } }Restart the host, then ask your agent something like: "Use truepath-office to read the body text of ~/Documents/report.docx."
Tools (15)
Tool | Description | Key parameters |
| Evaluate a spreadsheet formula |
|
| Load an XLSX file |
|
| Save an XLSX file |
|
| Query a cell range |
|
| Load PPTX slides |
|
| Save PPTX slides |
|
| Load DOCX metadata |
|
| Read DOCX body text |
|
| Parse DOCX into structured JSON (paragraphs / runs / formatting / tables / sections / headers / footers / footnotes) |
|
| Page count & text info |
|
| Merge multiple PDFs |
|
| Split a PDF at a page number |
|
| Add password protection |
|
| Detect type from extension |
|
| Open a document in the TruePath Office Mac app for visual editing (GUI hand-off) † |
|
† open_in_office hands the file to the TruePath Office Mac app over its truepath-office:// URL scheme, so after reading or editing a document headlessly here you can finish it in the GUI. It requires the TruePath Office app v1.0.6 or newer (the version that registers the scheme). If the app isn't installed, the tool returns a link to get it rather than opening anything. macOS only. Every other tool is fully local and needs no app.
CLI
The same engine is available as a command-line tool:
.build/release/truepath detect xlsx # → Spreadsheet (spreadsheet)
.build/release/truepath formula "=SUM(A1:A3)" ... # evaluate a formula
.build/release/truepath word --extract report.docx # structured DOCX JSONRun truepath with no arguments for the full command list.
Quick test
printf '%s\n%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
| .build/release/truepath-office-mcp 2>/dev/nullArchitecture
truepath-office-mcp (executable)
└─ TruePathMCPLib (JSON-RPC 2.0 + tool handlers)
└─ TruePathCore (Foundation-only document engine)
truepath (CLI) ──────────────────────────────────────┘
stdin → JSON-RPC 2.0 → MCPServer → ToolHandlers → TruePathCore → result → stdout
stderr → diagnostic logsEach sub-package (TruePathCore/, TruePathMCP/, TruePathCLI/) keeps its own
Package.swift and test suite; cd <pkg> && swift test runs them in isolation.
License
MIT © Joy Truepath Pte. Ltd.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceLocal-first Excel MCP server for AI agents enabling structured reads, workbook introspection, and safer .xlsx mutation without Microsoft Excel or LibreOffice.Last updated2MIT
- FlicenseAqualityCmaintenanceMCP server for Microsoft Office file operations. Read, write, and create Excel, Word, and PowerPoint files directly from your local filesystem.Last updated12
- Alicense-qualityCmaintenanceAn MCP server that lets Claude control Microsoft Word and Excel on macOS via AppleScript, providing 98 tools for document and spreadsheet automation.Last updated921MIT
- Alicense-qualityAmaintenanceMCP server for indexing, semantic search, and generation of multi-format documents. Exposes 13 tools over JSON-RPC 2.0 so an LLM can search your local PDF, Excel, and Word files, and create or edit Excel and Word documents.Last updatedAGPL 3.0
Related MCP Connectors
Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/JoyTruepath/truepath-office-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server