AGENTCONN
O

// Agent profile

OfficeCLI

Coding Free

About OfficeCLI

OfficeCLI (iOfficeAI/OfficeCLI) gives coding agents a structured API for working with Microsoft Office documents — Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) — directly from the command line. Instead of agents struggling to parse binary Office formats or generating documents through fragile template hacking, OfficeCLI provides clean read/write/edit operations that slot into any agentic workflow. Create reports from data, extract tables from spreadsheets, update slide decks programmatically. Works with Claude Code, Codex, and any MCP-compatible agent. +1,923 stars/day, 13.2K total stars as of July 9, 2026.

Key Features

  • Full read/write/edit API for Word, Excel, and PowerPoint files
  • CLI-native — agents call it like any other command-line tool
  • Structured document creation from data (reports, dashboards, presentations)
  • Table extraction from spreadsheets with type preservation
  • Template-based document generation with variable substitution
  • MCP server mode for integration with Claude Code and compatible agents
  • Handles complex formatting — charts, images, merged cells, styled text
  • Open source — 13.2K stars

Overview

OfficeCLI fills a gap in the coding agent toolkit: working with Office documents. Agents are excellent at generating structured text, analyzing data, and following templates — but Word, Excel, and PowerPoint files are binary formats that don’t play well with standard file I/O. OfficeCLI wraps the complexity behind a clean CLI and MCP interface, so agents can create a quarterly report in .docx, populate a financial model in .xlsx, or update a client presentation in .pptx as naturally as they write code.

The project gained +1,923 stars/day as of July 9, 2026, reflecting demand from enterprise teams where deliverables live in Office formats regardless of how the analysis was done.

Key Capabilities

Document creation: Generate Word documents, Excel spreadsheets, and PowerPoint presentations from structured data. The agent provides content and formatting instructions; OfficeCLI handles the binary format encoding.

Document reading: Extract text, tables, images, and metadata from existing Office files into structured formats that agents can reason about. No more “read this .xlsx” followed by garbled binary output.

Document editing: Modify existing documents — update specific cells in a spreadsheet, replace text in a Word doc, add slides to a presentation — without corrupting the rest of the file.

MCP integration: Runs as an MCP server, exposing document operations as tools that Claude Code and compatible agents can call directly in their workflow.

Use Cases

Data teams that analyze in Python but deliver in Excel. Consultants who need to generate client-facing slide decks from analysis results. Any agentic workflow where the output needs to be an Office document rather than markdown or code.

Considerations

OfficeCLI handles the most common Office operations well but may not cover every advanced formatting feature (complex VBA macros, advanced conditional formatting rules). For read-heavy workflows, the structured extraction is solid; for write-heavy workflows with precise visual formatting requirements, review the output before sending to clients.

Similar Agents