Sponsored by Deepsite.site

mcp-excel-server

Created By
qianO33a year ago
mcp excel server
Content

mcp-excel-server

Node.js server implementing Model Context Protocol (MCP) for excel file operations.

Features

  • Read files
  • list directories
  • Search files
  • Read Excel

Note: The server will only allow operations within directories specified via args.

🔧 Install

NPM Installation

npm install @qian33/mcp-excel-server

📚 API Reference

Resources

  • The primary mcp-excel-server operations interface file://system

Tool Functions

📖 Reading Operations

  • read_file_content
    • Reads the complete contents of a file
    • Input: path (string)
    • Uses UTF-8 encoding for text files

🎒Writing Operations

  • write_file_content
    • Creates a new file or overwrites an existing one with the specified content
    • Inputs:
      • path (string): File location to write to
      • content (string): Content to write to the file
    • Uses UTF-8 encoding for text files
    • Returns confirmation message upon successful write

📁 Directory Operations

  • list_directory
    • Lists directory contents with type indicators
    • Input: path (string)
    • Returns entries with [FILE] or [DIR] prefixes

🔍 Reading Excel and Information

  • get_excel_content

    • Reads the Excel contents of a file
    • Input: path (string)
    • Uses UTF-8 encoding for excel file
  • get_online_excel_content

    • Fetches and reads Excel content from a URL
    • Input: path (string): ONLINE URL to the Excel file
    • Returns the Excel data as a JSON array
    • Useful for reading Excel files hosted on remote servers

📒 Writing Excel

  • write_excel_content
    • Creates a new Excel file or overwrites an existing one with the specified data
    • Inputs:
      • path (string): File location for the Excel file
      • content (string or array): JSON data to write to the Excel file
        • Accepts either a JSON string or a direct array of objects
        • Each object represents a row in the Excel sheet
    • Automatically creates a workbook with a 'Sheet1' worksheet
    • Returns confirmation message upon successful write

🔧 Usage Guide

Integration with Claude Desktop

Add the following configuration to your : claude_desktop_config.json

Note: You can sandbox directories by mounting them to . Adding the ro flag makes directories read-only. /projects

NPX Method

{
  "mcpServers": {
    "mcp-excel-server": {
      "command": "npx",
      "args": [
        "-y",
        "@qian33/mcp-excel-server",
        "/Users/username/Desktop",
        "/path/to/other/allowed/dir"
      ]
    }
  }
}

Bunx Method

{
  "mcpServers": {
    "mcp-excel-server": {
      "command": "bunx",
      "args": [
        "@qian33/mcp-excel-server",
        "/Users/username/Desktop",
        "/path/to/other/allowed/dir"
      ]
    }
  }
}

Usage with VS Code

For quick installation, click the installation buttons below...

Install with NPX in VS Code Install with NPX in VS Code Insiders

For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open Settings (JSON).

Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

Note that the mcp key is not needed in the .vscode/mcp.json file.

You can provide sandboxed directories to the server by mounting them to /projects. Adding the ro flag will make the directory readonly by the server.

NPX

{
  "mcp": {
    "servers": {
      "mcp-excel-server": {
        "command": "npx",
        "args": [
          "-y",
          "@qian33/mcp-excel-server",
          "${workspaceFolder}"
        ]
      }
    }
  }
}

🤝 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Implement your changes with tests
  4. Submit a pull request

Please ensure your code adheres to the project's coding standards and includes appropriate tests.

📜 License

This MCP server is licensed under the MIT License. You are free to use, modify, and distribute the software, subject to the MIT License terms and conditions. See the LICENSE file in the repository for details.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
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.
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
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"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
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.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
CursorThe AI Code Editor
Playwright McpPlaywright MCP server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Amap Maps高德地图官方 MCP Server
Tavily Mcp
DeepChatYour AI Partner on Desktop
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
ChatWiseThe second fastest AI chatbot™