Excel Tools
Create, read & modify Excel
Create, read, and modify Excel (.xlsx) workbooks. Build complete spreadsheets with formulas, formatting, validations, pivot tables, and conditional formatting. Read any .xlsx into structured JSON. Apply 30+ batch operations to existing files. Returns downloadable .xlsx files.
Build a complete Excel workbook in one call — multiple sheets, headers, formulas, rich formatting, merged cells, data validations, conditional formatting, hyperlinks, comments, named ranges, tables, pivot tables, sheet protection, freeze panes, and print setup. Returns a .xlsx file.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "excel-tools",
"skill": "create_spreadsheet",
"input": {
"sheets": [
{
"name": "Sales",
"headers": [
"Product",
"Q1",
"Q2",
"Q3",
"Q4"
],
"rows": [
[
"Widget A",
1500,
2300,
1800,
2100
],
[
"Widget B",
900,
1100,
1300,
1500
]
]
}
],
"formulas": [
{
"cell": "F1",
"formula": "\"Total\""
},
{
"cell": "F2",
"formula": "SUM(B2:E2)"
},
{
"cell": "F3",
"formula": "SUM(B3:E3)"
}
],
"formatting": [
{
"range": "B2:F3",
"number_format": "$#,##0"
}
],
"filename": "sales-report.xlsx"
}
}' \
https://api.toolrouter.com/v1/tools/callDownload an Excel file from a URL and extract all data as structured JSON — sheet names, headers, cell values, merged cells, tables, and print settings. Optionally includes formulas, comments, hyperlinks, data validations, and per-cell formatting. Use this to inspect a file before modifying it.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "excel-tools",
"skill": "read_spreadsheet",
"input": {
"url": "https://example.com/report.xlsx"
}
}' \
https://api.toolrouter.com/v1/tools/callApply 30+ batch operations to an existing Excel file: write data, formulas, formatting, merges, sheets, rows/cols, tables, pivots, validations, conditional formats, hyperlinks, comments, protection, and print setup. Returns the modified .xlsx file.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "excel-tools",
"skill": "modify_spreadsheet",
"input": {
"url": "https://example.com/data.xlsx",
"operations": [
{
"action": "add_formula",
"cell": "E2",
"formula": "SUM(B2:D2)"
},
{
"action": "add_conditional_format",
"range": "E2:E100",
"rule_type": "colorScale",
"color_min": "F8696B",
"color_max": "63BE7B"
},
{
"action": "create_pivot_table",
"data_range": "A1:E50",
"target_sheet": "Summary",
"rows": [
"Category"
],
"values": [
"Amount"
],
"agg_func": "sum"
}
]
}
}' \
https://api.toolrouter.com/v1/tools/callQuick Start
claude mcp add --transport stdio \
--env TOOLROUTER_API_KEY=YOUR_API_KEY \
toolrouter -- npx -y toolrouter-mcpcurl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{"tool":"excel-tools","skill":"create_spreadsheet","input":{}}' \
https://api.toolrouter.com/v1/tools/callFrequently Asked Questions
Can I build a workbook from scratch?
Yes. `create_spreadsheet` can generate a complete .xlsx file with multiple sheets, formulas, formatting, validations, pivot tables, merged cells, and print setup.
Can I read an existing spreadsheet into JSON?
`read_spreadsheet` extracts sheet data, cell values, and optional metadata such as formulas, comments, hyperlinks, validations, formatting, merged cells, and defined names.
Can I modify a workbook without recreating it?
Yes. `modify_spreadsheet` applies batch edits to an existing file URL, including formulas, formatting, tables, pivots, comments, protection, and print settings.
What Excel features are supported?
The tool covers the common power-user pieces: dropdown validations, conditional formatting, named ranges, freeze panes, tab colors, sheet protection, and structured tables.