Word Document Tools logo

Word Document Tools

Community
puchunjie

Enables natural language-driven Word document creation, editing, and formatting through a Node.js server that integrates seamlessly with development environments for document automation workflows.

Publisherpuchunjie
Repositorydoc-tools-mcp
LanguageTypeScript
Forks
4
Stars
11
Available tools
7
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Word Document Tools exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 7 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    11 stars and 4 forks from the linked repository.

Word Tools MCP Server

A Model Context Protocol (MCP) server that provides AI-powered Word document manipulation capabilities. This server implements the MCP protocol to enable AI applications to create, edit, and manage Word documents through natural language interactions.

smithery badge

Features

  • Full MCP protocol implementation
  • Word document creation and management
  • Rich text content manipulation
  • Table creation and formatting
  • Document layout control
  • Document metadata management
  • Real-time document state monitoring

Prerequisites

  • Node.js 14 or higher
  • Microsoft Word (optional, for advanced features)

Installation

bash
npx @puchunjie/doc-tools-mcp

Or install globally:

bash
npm install -g @puchunjie/doc-tools-mcp

For use as a dependency in your project:

bash
npm install @puchunjie/doc-tools-mcp

Usage

  1. Start the MCP server:
bash
npx @puchunjie/doc-tools-mcp
  1. The server will start on port 8765 by default

  2. Configure your AI application (e.g., Cursor, VSCode) to use the MCP server:

    http://localhost:8765

MCP Tools

The server provides the following MCP functions:

  • create_document - Create a new Word document

    • Parameters: filePath (required), title, author
  • open_document - Open an existing Word document

    • Parameters: filePath (required)
  • add_paragraph - Add a paragraph to the document

    • Parameters: filePath (required), text (required), style, alignment
  • add_table - Add a table to the document

    • Parameters: filePath (required), rows (required), cols (required), headers, data
  • search_and_replace - Find and replace text in the document

    • Parameters: filePath (required), searchText (required), replaceText (required), matchCase
  • set_page_margins - Set document page margins

    • Parameters: filePath (required), top, right, bottom, left
  • get_document_info - Get document metadata

    • Parameters: filePath (required)

Integration with AI Applications

Cursor

  1. Open the Cursor configuration file ~/.cursor/mcp.json
  2. Add the following configuration:
json
{
  "mcpServers": {
    "doc-tools-mcp": {
      "command": "npx",
      "args": [
        "@puchunjie/doc-tools-mcp"
      ]
    }
  }
}

Or for local development version:

json
{
  "mcpServers": {
    "doc-tools-mcp": {
      "command": "node",
      "args": [
        "/path/to/your/doc-tools-mcp/dist/mcp-server.js"
      ]
    }
  }
}

After configuration, you can use natural language to manipulate Word documents:

"Create a new document named report.docx"
"Add a heading 'Monthly Report' to report.docx"
"Insert a 4x3 table with sales data"

VSCode and Other MCP-Compatible Tools

Similar integration steps apply to other tools that support the MCP protocol. Consult your tool's documentation for specific MCP server configuration steps.

Development

To extend or modify this MCP server:

  1. Clone the repository:
bash
git clone <repository-url>
cd doc-tools-mcp
  1. Install dependencies:
bash
npm install
  1. Start in development mode:
bash
npm run start
  1. Build for production:
bash
npm run build

Adding New MCP Functions

  1. Add new methods in src/services/DocumentService.ts
  2. Register new functions in src/mcp-server.ts
  3. Update type definitions as needed

Configuration

  • Default port: 8765 (configurable)
  • Supported file types: .docx
  • All file paths should be absolute or relative to the current working directory

License

MIT

Support

If you encounter any issues or have suggestions for improvements, please submit an issue on our GitHub repository.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "doc-tools-mcp": {
      "command": "npx",
      "args": [
        "@puchunjie/doc-tools-mcp"
      ]
    }
  }
}

Available Tools

  • create_document
  • open_document
  • add_paragraph
  • add_table
  • search_and_replace
  • set_page_margins
  • get_document_info

Use Word Document Tools MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Word Document Tools is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Word Document Tools as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Word Document Tools MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "word-document-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@puchunjie/doc-tools-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Word Document Tools MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Word Document Tools MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Word Document Tools to help me with this task?
Word Document Tools
Sure. I read it.
Here is what I found using Word Document Tools.

Frequently asked questions

What is the Word Document Tools MCP server used for?

Word Document Tools is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Word Document Tools MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Word Document Tools with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Word Document Tools MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Word Document Tools connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Word Document Tools MCP to TypingMind?

Word Document Tools runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Word Document Tools MCP provide in TypingMind?

Word Document Tools exposes 7 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Word Document Tools MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Word Document Tools requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇