How to integrate Microsoft Word MCP with Atomic Agent

Connect Atomic Agent 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

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,700+ apps through Composio, including Microsoft Word.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Microsoft Word account. See the Atomic Agent documentation for installation instructions.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Microsoft Word with

How Atomic Agent connects to Microsoft Word

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect Microsoft Word to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in Microsoft Word. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your Microsoft Word account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

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.

Use Microsoft Word from Atomic Agent

With your account connected, ask Atomic Agent to work with Microsoft Word in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

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