How to integrate Microsoft Word MCP with Hermes

Connect Hermes to Microsoft Word MCP. Find the latest project brief in onedrive, download docx files from a sharepoint folder, and more using natural language, with authentication handled for you.

Microsoft Word logoMicrosoft Word
Oauth2

Microsoft Word is Microsoft's document editor for creating and managing DOCX files in OneDrive and SharePoint. It provides familiar editing and cloud storage features for organized document workflows.

22 Tools

Introduction

Hermes is a 24/7 autonomous agent that lives on your computer or server — it remembers what it learns and evolves as your usage grows.

This guide explains the easiest and most robust way to connect your Microsoft Word account to Hermes. You can do this through either Composio Connect CLI or Composio Connect MCP. For personal use we recommend the CLI, but you won't go wrong with MCP either.

Also integrate Microsoft Word with

What is Composio Connect?

Composio Connect is a consumer offering that lets anyone plug 1,700+ applications directly into their agent harness — including Hermes. It can:

  • Search and load tools from relevant toolkits on-demand, reducing context usage.
  • Chain multiple tools to accomplish complex workflows via a remote workbench, without excessive back-and-forth with the LLM.
  • Manage app authentication end-to-end with zero manual overhead.

Integrating Microsoft Word with Hermes

Using Composio Connect CLI

1. Install the Composio CLI

Run the install script directly, or paste https://composio.dev/hermes into your Hermes chat box to have it installed for you.

bash
curl -fsSL https://composio.dev/install | bash
Hermes authenticating with Composio

2. Authenticate

Once the CLI is installed, ask Hermes to authenticate with Composio.

3. Connect to Microsoft Word

Ask your agent to connect to Microsoft Word, or simply request any Microsoft Word-related task. Hermes will prompt you to authenticate and authorize access.

4. Done. You're all set with a new Microsoft Word connection.


Using Composio Connect MCP

1. Get your MCP URL and API Key

Go to dashboard.composio.dev and copy your Connect MCP URL and API key.

Copy MCP URL and API key from Composio dashboard

2. Open the Hermes config file

bash
nano ~/.hermes/config.yaml

3. Add the Composio Connect MCP server

bash
mcp_servers:
  composio:
    url: "https://connect.composio.dev/mcp"
    headers:
      x-consumer-api-key: "YOUR_COMPOSIO_API_KEY"
    connect_timeout: 60
    timeout: 180

Save with Ctrl + O, Enter, then exit with Ctrl + X.

4. Restart your Hermes agent

Once restarted, ask your agent to connect to Microsoft Word or request any Microsoft Word-related task. It will prompt you to authenticate and authorize access.

5. Done!

What is the Microsoft Word MCP server, and what's possible with it?

The Microsoft Word MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Microsoft Word account. It provides structured and secure access to DOCX files in OneDrive and SharePoint, so your agent can find, read, create, edit, and share documents on your behalf.

  • Document discovery and reading: Have your agent find DOCX files in OneDrive or SharePoint, inspect their paragraphs, formatting, tables, images, links, and tracked changes, and review retained document versions.
  • Document creation and editing: Let the agent create new Word documents, append text and tables, replace text across runs, edit formatting and lists, and update existing content.
  • Templates and document workflows: Direct your agent to fill placeholders in a Word template, add comments to specific paragraphs, accept or reject tracked changes, and export a DOCX file to PDF.
  • File organization and version control: Instruct your agent to copy, move, rename, replace, delete, or restore DOCX files while preserving access to available document versions.
  • Sharing and collaboration: Have your agent create view, edit, or embed sharing links and invite named recipients with read or write access to a DOCX file.

Way Forward

With Microsoft Word connected, Hermes can now act on your behalf whenever it detects a relevant task or you ask it to.

From here, you can extend Hermes further:

  • Connect more apps: Calendar, Slack, Notion, Linear, and hundreds of others are available through the same Composio Connect setup. Each new integration compounds what Hermes can do for you.
  • Build workflows across tools: Once multiple apps are connected, Hermes can chain actions together — turn an email into a calendar invite, a Slack message into a Linear ticket, or a meeting note into a follow-up draft.
  • Let it learn your patterns: The more you use Hermes, the better it gets at anticipating how you'd handle recurring tasks. Give it feedback on drafts and decisions, and it will adapt.

If you run into trouble or want to share what you've built, join the community or check out the Docs for deeper configuration options.

TOOLS

Supported Tools

Every Microsoft Word action and event your agent gets out of the box.

Add Comment

Add a Word comment to a paragraph selected by a READ_DOCX locator or by exact text that uniquely matches a main-document paragraph.

Append Content

Append plain text or supported Markdown paragraphs, headings, formatted runs, lists, rectangular tables, safe http/https/mailto links, and Courier New inline or fenced code to a DOCX body.

Copy DOCX

Copy a Graph DOCX item with both a .

Create DOCX

Create a safe DOCX containing styled paragraphs and formatted runs, bullet or decimal lists, rectangular tables, or constrained HTML/Markdown source with safe external links and inline or fenced code rendered in Courier New, plus validated inline PNG/JPEG images, page breaks, and default/first/even headers and footers.

Create DOCX sharing link

Create a view, edit, or embed sharing link for a verified DOCX.

Delete DOCX

Move one DOCX to the provider recycle bin only when its current eTag matches.

Edit DOCX

Atomically edit literal text, paragraphs, independent Latin/non-complex and complex-script run formatting, lists, rectangular tables including plain cells and rows outside merged regions, uploaded inline PNG/JPEG images, semantic comments, tracked text changes, revision acceptance or rejection, safe external hyperlinks, paired footnotes, section headers or footers, and explicit page breaks in a DOCX.

Export DOCX to PDF

Convert a DOCX of at most 2 MB to PDF through Microsoft Graph and return a temporary file reference.

Fill Template

Fill run-spanning placeholders in main-document paragraphs of a validated DOCX template snapshot, then create a new document.

Find DOCX files

Browse one folder or search a drive for DOCX files.

Find SharePoint sites

Find accessible SharePoint sites by keyword, or resolve one known hostname and site path to its site ID.

Get Microsoft Word account context

Return the signed-in Microsoft identity and primary OneDrive identifiers needed to start OneDrive DOCX work.

Invite DOCX recipients

Grant read or write access to required named recipients.

List DOCX versions

Validate the selected drive item as a DOCX, then return one page of retained versions in Microsoft Graph's newest-first order.

List OneDrive drives

Return one page of drives available to the signed-in user as the Microsoft Word toolkit's OneDrive-drive selector for DOCX workflows.

List SharePoint document libraries

Return one page of document libraries and available root folder item IDs for a SharePoint site ID.

Move or rename DOCX

Rename a DOCX, move it within the same drive, or do both, guarded by its current eTag.

Read DOCX

Inspect a DOCX as bounded rich OOXML, including paragraphs, formatted runs, tables, images, hyperlinks, footnotes, comments, revisions, page breaks, sections and styles.

Replace Text

Replace the first or all occurrences of literal text in the main document of a DOCX, including matches across Word run boundaries.

Resolve Tracked Changes

Accept or reject supported pending run-level insertions and deletions in a DOCX, either all or selected revision locators returned by READ_DOCX.

Restore DOCX version

Restore a retained DOCX version as a new current version, preserving version history, then observe the item's current metadata in a post-operation read.

Upsert DOCX

Create or replace a same-name DOCX containing the same validated content supported by CREATE_DOCX.

FAQ

Frequently asked questions

Start with Microsoft Word.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Microsoft Word tool your agent needs.Free to start.

Start building