excel-mcp-server

excel-mcp-server

4.5

excel-mcp-server is hosted online, so all tools can be tested directly either in theInspector tabor in theOnline Client.

If you are the rightful owner of excel-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server that lets you manipulate Excel files without needing Microsoft Excel installed.

The Excel MCP Server is a versatile tool designed to facilitate the manipulation of Excel files without the need for Microsoft Excel. It allows users to create, read, and modify Excel workbooks using an AI agent. The server supports dual transport modes: stdio for local file manipulation and SSE for remote file handling. This flexibility makes it suitable for both local development and remote connections. The server is built to work with Python 3.10 or higher and offers a range of features including data reading and writing, formatting, chart creation, and pivot table generation. It is particularly useful for integrating with AI tools, providing a seamless way to manage Excel files programmatically.

Features

  • Create and modify Excel workbooks
  • Read and write data
  • Apply formatting and styles
  • Create charts and visualizations
  • Generate pivot tables

Tools

  1. apply_formula

    Apply Excel formula to cell.
    Excel formula will write to cell with verification.
    
  2. validate_formula_syntax

    Validate Excel formula syntax without applying it.

  3. format_range

    Apply formatting to a range of cells.

  4. read_data_from_excel

    Read data from Excel worksheet with cell metadata including validation rules.
    
    Args:
        filepath: Path to Excel file
        sheet_name: Name of worksheet
        start_cell: Starting cell (default A1)
        end_cell: Ending cell (optional, auto-expands if not provided)
        preview_only: Whether to return preview only
    
    Returns:  
    JSON string containing structured cell data with validation metadata.
    Each cell includes: address, value, row, column, and validation info (if any).
    
  5. write_data_to_excel

    Write data to Excel worksheet.
    Excel formula will write to cell without any verification.
    
    PARAMETERS:  
    filepath: Path to Excel file
    sheet_name: Name of worksheet to write to
    data: List of lists containing data to write to the worksheet, sublists are assumed to be rows
    start_cell: Cell to start writing to, default is "A1"
    
    
  6. create_workbook

    Create new Excel workbook.

  7. create_worksheet

    Create new worksheet in workbook.

  8. create_chart

    Create chart in worksheet.

  9. create_pivot_table

    Create pivot table in worksheet.

  10. create_table

    Creates a native Excel table from a specified range of data.

  11. copy_worksheet

    Copy worksheet within workbook.

  12. delete_worksheet

    Delete worksheet from workbook.

  13. rename_worksheet

    Rename worksheet in workbook.

  14. get_workbook_metadata

    Get metadata about workbook including sheets, ranges, etc.

  15. merge_cells

    Merge a range of cells.

  16. unmerge_cells

    Unmerge a range of cells.

  17. copy_range

    Copy a range of cells to another location.

  18. delete_range

    Delete a range of cells and shift remaining cells.

  19. validate_excel_range

    Validate if a range exists and is properly formatted.

  20. get_data_validation_info

    Get all data validation rules in a worksheet.
    
    This tool helps identify which cell ranges have validation rules
    and what types of validation are applied.
    
    Args:
        filepath: Path to Excel file
        sheet_name: Name of worksheet
        
    Returns:
        JSON string containing all validation rules in the worksheet