JSON to Excel by WTSolutions

JSON to Excel by WTSolutions

Converting JSON into CSV format string from (1) JSON data, (2) URLs pointing to publiclly available .json files.

1
Stars
1
Forks
0
Releases

Overview

JSON to Excel MCP is a Model Context Protocol (MCP) service by WTSolutions that converts JSON data into CSV format strings, enabling easy import into Excel. It exposes two tools: json_to_excel_mcp_from_data, which accepts a JSON string (array of objects or a single object) and returns a CSV string with headers derived from the JSON keys; and json_to_excel_mcp_from_url, which fetches a publicly accessible .json file from a URL and performs the same conversion. The MCP supports two transport modes: Server-sent events (SSE) and Streamable HTTP, with ready-to-use endpoints documented in the README. Input validation is guided by a JSON Schema and an online validator, ensuring the input is a valid JSON array or object. The produced CSV handles data types by converting numbers and booleans to their textual equivalents, escaping strings as needed, and representing arrays/objects via JSON.stringify. The tool outputs a CSV string suitable for direct import into Excel. Error handling provides descriptive messages for invalid JSON, missing files, network errors, or server-side issues.

Details

Owner
he-yang
Language
License
Updated
2025-12-07

Features

json_to_excel_mcp_from_data

Converts a JSON data string into a CSV string; handles arrays of objects or a single object; headers are derived from JSON keys.

json_to_excel_mcp_from_url

Fetches a publicly accessible JSON file from a URL and converts its content to CSV using the same object/array handling rules.

Two transport modes (SSE and Streamable HTTP)

Provides endpoints over SSE and Streamable HTTP, enabling both streaming-style and on-demand conversions.

JSON Schema validation

Input is validated against a JSON Schema with an online validator to ensure valid JSON before conversion.

Data type handling

Numbers and booleans are preserved as their textual representations; strings are escaped/quoted as needed; arrays/objects are stringified.

Excel-ready CSV output

Outputs a CSV data string that can be directly imported into Excel.

Descriptive error handling

Returns informative error messages for invalid JSON, network or file issues, and server errors.

Audience

DevelopersIntegrate JSON-to-CSV conversion into apps or workflows via MCP SSE/HTTP endpoints to generate CSV data for Excel.

Tags

JSON to ExcelMCPCSVJSON to CSVSSEStreamable HTTPAPIData conversion