The Excel to JSON MCP (Model Context Protocol) provides a standardized interface for converting Excel and CSV data into JSON format using the Model Context Protocol. This MCP implementation offers two specific tools for data conversion:
{
"mcpServers": {
"excel_to_json_by_WTSolutions": {
"args": [
"mcp-remote",
"https://mcp.wtsolutions.cn/excel-to-json-mcp-sse"
],
"command": "npx",
"tools": [
"excel_to_json_mcp_from_data",
"excel_to_json_mcp_from_url"
]
}
}
}
Converts tab-separated or comma-separated text data into JSON format.
Parameter | Type | Required | Description |
---|---|---|---|
data | string | Yes | Tab-separated or comma-separated text data with at least two rows (header row + data row) |
{
"tool": "excel_to_json_mcp_from_data",
"parameters": {
"data": "Name\tAge\tIsStudent\nJohn Doe\t25\tfalse\nJane Smith\t30\ttrue"
}
}
Converts an Excel or CSV file from a provided URL into JSON format.
Parameter | Type | Required | Description |
---|---|---|---|
url | string | Yes | URL pointing to an Excel (.xlsx) or CSV file |
{
"tool": "excel_to_json_mcp_from_url",
"parameters": {
"url": "https://example.com/path/to/your/file.xlsx"
}
}
The MCP tools return a JSON object with the following structure:
Field | Type | Description |
---|---|---|
isError | boolean | Indicates if there was an error processing the request |
msg | string | ‘success’ or error description |
data | string | Converted data as array of sheet objects if using URL, string if using direct data, ‘’ if there was an error. Each sheet object contains ‘sheetName’ (string) and ‘data’ (array of objects) if using URL |
{
"content": [{
"type": "text",
"text": "{\"isError\":false,\"msg\":\"success\",\"data\":\"[{\"Name\":\"John Doe\",\"Age\":25,\"IsStudent\":false},{\"Name\":\"Jane Smith\",\"Age\":30,\"IsStudent\":true}]\"}"
}]
}
The API automatically detects and converts different data types:
The API returns descriptive error messages for common issues:
Excel Data Format Invalid
: When input data is not tab-separated or comma-separatedAt least 2 rows are required
: When input data has fewer than 2 rowsBoth data and url received
: When both ‘data’ and ‘url’ parameters are providedNetwork Error when fetching file
: When there’s an error downloading the file from the provided URLFile not found
: When the file at the provided URL cannot be foundBlank/Null/Empty cells in the first row not allowed
: When header row contains empty cellsServer Internal Error
: When an unexpected error occursFree for now.
https://buymeacoffee.com/wtsolutions