A Model Context Protocol (MCP) server that lets you manipulate Excel files without needing Microsoft Excel installed. Create, read, write, and analyze Excel workbooks (.xlsx, .xlsm) with AI assistants like Claude. Complete Excel automation through LLM integration.
Key Features:
Security Score: 100/100 | Risk Level: Low
This project has been independently audited by MseeP.ai, providing ongoing security validation and trust assessment for the MCP ecosystem.
The easiest way to use Excel MCP Server is with npx (no installation required):
npx @guillehr2/excel-mcp-server@latest
Or install globally:
npm install -g @guillehr2/excel-mcp-server
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"excel-master": {
"command": "npx",
"args": [
"-y",
"@guillehr2/excel-mcp-server@latest"
]
}
}
}
{
"mcpServers": {
"excel-master": {
"command": "npx",
"args": [
"-y",
"@guillehr2/excel-mcp-server@1.0.7"
]
}
}
}
{
"mcpServers": {
"excel-master": {
"command": "excel-mcp-server"
}
}
}
If you're developing or want to run from source:
{
"mcpServers": {
"excel-master": {
"command": "node",
"args": ["path/to/Excel-MCP-Server-Master/index.js"]
}
}
}
create_workbook_toolopen_workbook_tool (XLSX, XLSM, XLTX, XLTM)save_workbook_toollist_sheets_tooladd_sheet_tool, delete_sheet_tool, rename_sheet_toolwrite_sheet_data_tool, update_cell_tooladd_table_tool, create_formatted_table_tooladd_chart_tool (column, bar, line, pie, scatter)create_dashboard_toolfilter_data_toolimport_data_tool (CSV, JSON, SQL)export_data_tool (CSV, JSON, PDF)export_single_sheet_pdf_tool, export_sheets_pdf_tool# Create a new workbook with formatted data
result = create_formatted_table_tool(
file_path="sales_report.xlsx",
sheet_name="Q4 Sales",
start_cell="A1",
data=[
["Region", "Q4 Sales", "Growth %"],
["North", 125000, 15.2],
["South", 98000, 8.7],
["East", 156000, 22.1],
["West", 89000, -3.2]
],
table_name="Q4SalesData",
table_style="TableStyleMedium9",
formats={
"B2:B5": "#,##0", # Number format for sales
"C2:C5": "0.0%", # Percentage format
"A1:C1": {"bold": True, "fill_color": "366092"} # Header styling
}
)
# Add a chart based on the table data
chart_result = add_chart_tool(
file_path="sales_report.xlsx",
sheet_name="Q4 Sales",
chart_type="column",
data_range="A1:B5",
title="Q4 Sales by Region",
position="E2",
style="colorful-1"
)
# Create a comprehensive dashboard
dashboard_result = create_dashboard_tool(
file_path="executive_dashboard.xlsx",
data={
"Data": [
["Month", "Revenue", "Expenses", "Profit"],
["Jan", 50000, 30000, 20000],
["Feb", 55000, 32000, 23000],
["Mar", 48000, 29000, 19000]
]
},
dashboard_config={
"tables": [
{
"sheet": "Dashboard",
"name": "MonthlyData",
"range": "Data!A1:D4",
"style": "TableStyleMedium9"
}
],
"charts": [
{
"sheet": "Dashboard",
"type": "line",
"data_range": "Data!A1:B4",
"title": "Revenue Trend",
"position": "E1",
"style": "dark-blue"
},
{
"sheet": "Dashboard",
"type": "column",
"data_range": "Data!A1:D4",
"title": "Monthly Comparison",
"position": "E15",
"style": "colorful-2"
}
]
}
)
# Import data from multiple sources
import_result = import_data_tool(
excel_file="analysis.xlsx",
import_config={
"csv": [
{
"file_path": "sales_data.csv",
"sheet_name": "Sales",
"delimiter": ",",
"encoding": "utf-8"
}
],
"json": [
{
"file_path": "customer_data.json",
"sheet_name": "Customers",
"format": "records"
}
]
},
create_tables=True
)
# Filter and analyze the imported data
filtered_data = filter_data_tool(
file_path="analysis.xlsx",
sheet_name="Sales",
table_name="Table_Sales_1",
filters={
"Region": ["North", "South"],
"Sales": {"gt": 10000}
}
)
The server automatically applies professional formatting:
Extensive chart customization options:
Create reports from templates:
Python dependencies are automatically installed on first run:
For detailed documentation, see:
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
# Clone the repository
git clone https://github.com/guillehr2/Excel-MCP-Server-Master.git
cd Excel-MCP-Server-Master
# Install dependencies
npm install
pip install -r requirements.txt
# Run in development mode
node index.js
For more help, see our troubleshooting guide or open an issue.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ for the MCP ecosystem
If you find this Excel MCP Server useful, please consider giving it a ⭐ on GitHub!
Excel MCP Server by Guillem Hermida | GitHub | NPM | Contact: qtmsuite@gmail.com
Excel manipulation without Microsoft Excel - Model Context Protocol server for Claude AI and LLM integration