Sponsored by Deepsite.site

Office MCP Server

Created By
lescoggi8 months ago
Office MCP Server
Content

Office MCP Server

The Office MCP Server is an unofficial Model Context Protocol (MCP) Server based Java server designed to manage and process requests from AI agents for Word, Excel, etc. files.

Framework

This project is built using Quarkus, a Kubernetes-native Java framework tailored for building lightweight, high-performance microservices. Quarkus enables fast startup times and low memory usage, making it ideal for cloud-native applications.

Supported Methods

The server supports the following MCP tools and resources:

Excel Features

  • Tool: Get Filename: Retrieve the filename of an Excel file.
    • Argument: filename - The name of the Excel file.
  • Tool: Create Excel Workbook: Create a new Excel workbook.
    • Argument: filepath - Path to create the new Excel workbook.
  • Tool: Create Excel Sheet: Create a new sheet in an Excel workbook.
    • Arguments:
      • filepath - Path to the Excel workbook.
      • sheetName - Name of the new sheet.
  • Tool: Add Excel Row: Add a row to an Excel sheet.
    • Arguments:
      • filepath - Path to the Excel workbook.
      • sheetName - Name of the sheet.
      • rowData - Data for the new row.
  • Tool: Read Excel Cell: Read a cell from an Excel sheet.
    • Arguments:
      • filepath - Path to the Excel workbook.
      • sheetName - Name of the sheet.
      • rowNum - Row number (0-based).
      • colNum - Column number (0-based).
  • Tool: Close Excel Workbook: Close an Excel workbook.
    • Argument: filepath - Path to the Excel workbook.
  • Tool: Get Excel Sheet Count: Get the number of sheets in an Excel workbook.
    • Argument: filepath - Path to the Excel workbook.
  • Tool: Get Excel Row Count: Get the number of rows in a sheet.
    • Arguments:
      • filepath - Path to the Excel workbook.
      • sheetName - Name of the sheet.
  • Tool: Get Excel Column Count: Get the number of columns in a sheet.
    • Arguments:
      • filepath - Path to the Excel workbook.
      • sheetName - Name of the sheet.

Word Features

  • Tool: Create Word Document: Create a new Word document.
    • Argument: filepath - Path to create the new Word document.
  • Tool: Add Text to Word Document: Add text to a Word document.
    • Arguments:
      • filepath - Path to the Word document.
      • text - Text to add.

How to Debug and Run Standalone

To run the Office MCP Server, follow these steps:

  1. Build the application: Ensure you have Maven installed. Run the following command to build the project:

    $ ./mvnw clean package
    
  2. Run the application: After building, execute the following command to start the server:

    $ java -jar target/office-mcp-server-0.0.1-SNAPSHOT-runner.jar
    
  3. Access the application: The server will start on the default port 8080. You can access the APIs at:

    http://localhost:8080
    
  4. Run in development mode: For development purposes, you can use Quarkus's dev mode:

    $ ./mvnw quarkus:dev
    

Configuration

The application can be configured using the application.properties file located in the src/main/resources directory. Key configuration options include:

  • quarkus.mcp.server.sse.root-path: Set the SSE root path.

Testing

To run the tests, use the following command:

$ ./mvnw test

Installing the MCP Server

Configuring the MCP server with VS Code

Here are the steps to configure in VS Code:

  • Install GitHub Copilot
  • Install this MCP Server using the command palette: MCP: Add Server...
  • Configure GitHub Copilot to run in Agent mode, by clicking on the arrow at the bottom of the the chat window
  • On top of the chat window, you should see the office-mcp-server server configured as a tool

Configuring the MCP server with Claude Desktop

Claude Desktop makes it easy to configure and chat with the MCP server. If you want a more advanced usage, we recommend using VS Code (see next section).

You need to add the server to your claude_desktop_config.json file. Please note that you need to point to the location where you downloaded the office-mcp-server-0.0.1-SNAPSHOT-runner.jar file.

{
    "mcpServers": {
        "office-mcp-server": {
            "command": "java",
            "args": [
                "-jar",
              "~/Downloads/office-mcp-server-0.0.1-SNAPSHOT-runner.jar"
            ]
        }
    }
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

Support

This project is provided as-is without any warranty. If you encounter issues or have questions, please open an issue on the GitHub repository.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
DeepChatYour AI Partner on Desktop
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
CursorThe AI Code Editor
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Serper MCP ServerA Serper MCP Server
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server