Pages Native
Provides tools for creating and editing native Apple Pages documents and templates, including rich text, tagged placeholders, tables with formulas, text/shape/image objects, object geometry, explicit exports, opaque backups, and PDF/PNG previews through Apple's scripting APIs.
Pages Native
Native Apple Pages documents for Codex and MCP. Author: Viames Marino · MIT.
Version 0.1.0 is a preview. Native acceptance passed on one Mac running Pages 14.5 and macOS 27.0.1. This does not establish compatibility across other Pages or macOS versions. See verification.
Pages Native uses Apple's scripting API through fixed JXA and AppleScript workers. Documents remain .pages: no Word conversion, private-format parser, clipboard driver, Accessibility or UI automation.
Capabilities
28 MCP tools cover native documents and templates, rich text, existing tagged placeholders, tables with formulas, text/shape/image objects, existing object geometry, explicit native exports, opaque backups and PDF/PNG previews. Existing-text edits and placeholder fills have preview/apply revision guards. Mutations may partially apply; there is no automatic rollback. Pages 14.5 exposes placeholder tags for reading but rejects changing them through its scripting API.

The synthetic example shows a native table total of 265 EUR and a separately positioned text item.
The native API does not expose complete paragraph styles, headings/lists, comments, tracked changes, hyperlinks, headers/footers, page setup or chart series/type/title. Features already present in a saved prototype can be preserved through opaque native copies. Creating and editing chart data is not claimed.
Related MCP server: iwork-mcp
Requirements and installation
macOS with an interactive, logged-in session and Apple Pages.
Node.js 22 or later and Automation permission for the actual host controlling Pages.
Local execution. This cannot run against the user's Mac from a cloud-only task.
Install the public Codex plugin marketplace and enable Pages Native:
codex plugin marketplace add viames/pages-native
codex plugin add pages-native@viames-pagesStart a new local Codex task and run the setup skill. A compatible MCP host can run node /absolute/path/to/plugins/pages-native/dist/server.mjs; runtime npm installation is unnecessary after build.
Optional PAGES_NATIVE_ALLOWED_ROOTS is a JSON array of existing directories. It guards plugin file paths; it is not a macOS sandbox for the Pages process.
Development
npm ci
npm test
npm run build
npm run test:bundle
npm run test:native
npm run packagePortable tests validate protocol, bounds, path restrictions, revision planning and timeout recovery. test:native controls Pages on an explicitly designated Mac using isolated synthetic documents; ordinary CI does not certify a graphical Pages installation.
See capabilities, verification, publishing and privacy.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
An agent-first office suite Claude & ChatGPT read and write over one MCP URL.
Create, edit, preview, publish, and manage web pages from MCP-capable AI clients.
Generate, edit, merge, translate and PDF-convert PowerPoint (.pptx) over MCP. 8 tools.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceSwift-native MCP server for Word (.docx) document manipulation. 148 tools for creating, reading, editing, formatting, and exporting Word documents with full OOXML support.7MIT
- AlicenseBqualityBmaintenanceAn MCP server that provides 113 tools for automating Apple iWork apps (Numbers, Pages, Keynote) via JavaScript for Automation, enabling AI assistants to create, edit, and export documents, spreadsheets, and presentations.152 npm37MIT
- AlicenseAqualityDmaintenanceMCP server for reading, writing, editing, formatting, and exporting Microsoft Office documents (Word, Excel, PowerPoint) via stdio JSON-RPC, with 47 tools and cross-platform support.472MIT
- AlicenseBqualityDmaintenanceMCP server for common Notion page workflows: search pages, inspect content, create structured pages, append rich blocks, and start documents from reusable templates.10MIT