Skip to main content
Glama
Office MCP Server
by Starbavk

Office MCP Server

MCP server for creating and editing Word, Excel, and PowerPoint documents offline. Pure Python — no AppleScript, no COM, works on any platform.

Features

  • Word (.docx): create, read, add headings, paragraphs, tables, lists

  • Excel (.xlsx): create, read, write data, formulas, charts, cell formatting

  • PowerPoint (.pptx): create, read, add slides, text boxes

Related MCP server: docx-mcp

Install

pip install office-mcp-server

Or run directly with uvx:

uvx office-mcp-server

Configuration

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "office": {
      "command": "uvx",
      "args": ["office-mcp-server"]
    }
  }
}

OpenCode / Claude Code

{
  "mcpServers": {
    "office": {
      "command": "python",
      "args": ["-m", "office_mcp_server.server"],
      "cwd": "/path/to/office-mcp-server"
    }
  }
}

Local development

git clone https://github.com/YOUR_USERNAME/office-mcp-server.git
cd office-mcp-server
pip install -e .

Tools

Tool

Description

create_word_document

Create .docx file

read_word_document

Read .docx content

add_word_heading

Add heading (level 1-6)

add_word_paragraph

Add formatted paragraph

add_word_table

Add table with headers

add_word_list

Add bullet/numbered list

create_excel_workbook

Create .xlsx file

read_excel_workbook

Read .xlsx data

write_excel_data

Write data to cells

add_excel_formula

Add formula (e.g., =SUM(A1:A3))

add_excel_chart

Create bar/line/pie chart

format_excel_cells

Bold, color, alignment, border

create_presentation

Create .pptx file

read_presentation

Read slide content

add_presentation_slide

Add slide with layout

add_presentation_text

Add text box to slide

Example Usage

Ask your AI assistant:

"Create a Word document at ~/Desktop/report.docx with a title 'Q4 Report', add a heading 'Revenue', and a paragraph with the text 'Revenue increased by 25%'"

"Create an Excel file at ~/Desktop/data.xlsx, write headers Name/Score, add data rows, and create a bar chart"

"Create a PowerPoint at ~/Desktop/slides.pptx with title 'Pitch Deck', add 3 slides with content"

License

MIT

Available Tools

16 tools
add_excel_chartA

Create a chart in an Excel sheet.

Args: path: Path to the .xlsx file sheet_name: Sheet name chart_type: bar, line, or pie data_range: Cell range (e.g., 'A1:B10') title: Chart title position: Cell to place chart (e.g., 'E5')

Inputs: path (required), chart_type (required), data_range (required), sheet_name (required), +2 more.

add_excel_formulaA

Add a formula to an Excel cell.

Args: path: Path to the .xlsx file sheet_name: Sheet name cell: Cell reference (e.g., 'A4') formula: Excel formula (e.g., '=SUM(A1:A3)')

Inputs: cell (required), path (required), formula (required), sheet_name (required).

add_presentation_slideB

Add a slide to a PowerPoint presentation.

Args: path: Path to the .pptx file layout_index: Slide layout index (0=Title, 1=Title+Content, 6=Blank) title: Slide title content: Slide body content

Inputs: path (required), title, content, layout_index.

add_presentation_textA

Add a text box to a PowerPoint slide.

Args: path: Path to the .pptx file slide_index: Slide index (0-based) text: Text content left: Left position in inches top: Top position in inches width: Width in inches height: Height in inches font_size: Font size in points bold: Bold text alignment: left, center, right

Inputs: path (required), text (required), slide_index (required), top, +6 more.

add_word_headingA

Add a heading to a Word document.

Args: path: Path to the .docx file text: Heading text level: Heading level 1-6

Inputs: path (required), text (required), level.

add_word_listB

Add a bulleted or numbered list to a Word document.

Args: path: Path to the .docx file items: List items ordered: True for numbered list, False for bullet

Inputs: path (required), items (required), ordered.

add_word_paragraphA

Add a paragraph to a Word document with optional formatting.

Args: path: Path to the .docx file text: Paragraph text bold: Bold text italic: Italic text font_size: Font size in points (0 = default) alignment: left, center, right, justify

Inputs: path (required), text (required), bold, italic, +2 more.

add_word_tableB

Add a table to a Word document.

Args: path: Path to the .docx file headers: Column headers rows: Data rows (list of lists)

Inputs: path (required), rows (required), headers (required).

create_excel_workbookA

Create a new Excel workbook (.xlsx).

Args: path: Absolute file path for the new workbook sheet_name: Name for the first sheet

Inputs: path (required), sheet_name.

create_presentationB

Create a new PowerPoint presentation (.pptx).

Args: path: Absolute file path for the new presentation title: Optional title for the first slide

Inputs: path (required), title.

create_word_documentA

Create a new Word document (.docx).

Args: path: Absolute file path for the new document title: Optional title heading to add

Inputs: path (required), title.

format_excel_cellsB

Apply formatting to Excel cells.

Args: path: Path to the .xlsx file sheet_name: Sheet name cell_range: Cell range (e.g., 'A1:C3') bold: Bold text font_size: Font size in points font_color: Hex color (e.g., 'FF0000') bg_color: Background hex color alignment: left, center, right border: Add thin border

Inputs: path (required), cell_range (required), sheet_name (required), bold, +5 more.

read_excel_workbookA

Read an Excel workbook and return its data.

Args: path: Path to the .xlsx file sheet_name: Specific sheet to read (empty = all sheets)

Inputs: path (required), sheet_name.

read_presentationA

Read a PowerPoint presentation and return slide content.

Args: path: Path to the .pptx file

Inputs: path (required).

read_word_documentA

Read a Word document and return its paragraphs and tables.

Args: path: Absolute path to the .docx file

Inputs: path (required).

write_excel_dataB

Write data to an Excel sheet.

Args: path: Path to the .xlsx file sheet_name: Target sheet name data: 2D array of values to write start_cell: Starting cell (e.g., 'A1')

Inputs: data (required), path (required), sheet_name (required), start_cell.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 16 tools

    Disambiguation5/5

    Each tool targets a distinct action and file format, with clear boundaries between reading, writing, creating, adding, and formatting. Even within the same format, verbs and objects make the purpose unambiguous.

    Naming Consistency5/5

    Tool names consistently follow a verb_noun pattern with format prefixes like excel, word, and presentation (e.g., read_excel_workbook, add_word_paragraph, create_presentation). The naming style is uniform throughout.

    Tool Count4/5

    At 16 tools, the set is slightly above the typical 3-15 range, but the count is justified by covering three document formats: Excel, PowerPoint, and Word. Each tool serves a meaningful purpose in the overall Office workflow.

    Completeness3/5

    The toolset covers creation, reading, and appending content for all three formats, with good Excel manipulation support. However, there are notable gaps: no delete/remove operations and no in-place editing of existing Word or PowerPoint content, which limits full lifecycle management.

    Related MCP Connectors

    Related MCP Servers