A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/he-yang/excel-to-json-mcp below:

he-yang/excel-to-json-mcp: MCP Server converting Excel and CSV data into JSON

Excel to JSON MCP by WTSolutions

中文

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:

Excel to JSON MCP is part of Excel to JSON by WTSolutions:

Available MCP Servers :

Server Config JSON:

{
  "mcpServers": {
    "excel2json": {
      "args": [
        "mcp-remote",
        "https://mcp.wtsolutions.cn/sse",
        "--transport",
        "sse-only"
      ],
      "command": "npx",
      "tools": [
        "excel_to_json_mcp_from_data",
        "excel_to_json_mcp_from_url"
      ]
    }
  }
}

Transport: SSE

URL: https://mcp.wtsolutions.cn/excel-to-json-mcp-sse

Server Config JSON:

{
  "mcpServers": {
    "excel2jsonsse": {
      "type": "sse",
      "url": "https://mcp.wtsolutions.cn/sse"
    }
  }
}

Transport: Streamable HTTP

URL: https://mcp.wtsolutions.cn/excel-to-json-mcp-shttp

Server Config JSON:

{
  "mcpServers": {
    "excel2jsonmcp": {
      "type": "streamableHttp",
      "url": "https://mcp.wtsolutions.cn/mcp"
    }
  }
}
excel_to_json_mcp_from_data

Converts tab-separated Excel data or comma-separated CSV 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)

Note: Input data must be tab-separated (Excel) or comma-separated (CSV) text with at least two rows (header row + data row).

Convert the following tab-separated data into JSON format:

Name	Age	IsStudent
John Doe	25	false
Jane Smith	30	true

Convert the following comma-separated data into JSON format:

Name,Age,IsStudent
John Doe,25,false
Jane Smith,30,true
excel_to_json_mcp_from_url

Converts an Excel file from a provided URL into JSON format.

Parameter Type Required Description url string Yes URL pointing to an Excel (.xlsx)

Note:

Convert Excel file to JSON, file URL: https://tools.wtsolutions.cn/example.xlsx

(applicable only when you do not have a URL and working with online AI LLM)

I've jsut uploaded one .xlsx file to you, please extract its URL and send it to MCP tool 'excel_to_json_mcp_from_url', for Excel to JSON conversion.

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}]\"}"
  }]
}

Above is the response from MCP tool, and in most cases your LLM should interpret the response and present you with a JSON object, for example as below.

Note, different LLM models may have different ways to interpret the JSON object, so please check if the JSON object is correctly interpreted by your LLM model.

{
  "isError": false,
  "msg": "success",
  "data": "[{\"Name\":\"John Doe\",\"Age\":25,\"IsStudent\":false},{\"Name\":\"Jane Smith\",\"Age\":30,\"IsStudent\":true}]"
}
{
  "isError": false,
  "msg": "success",
  "data": [
    {
      "Name": "John Doe",
      "Age": 25,
      "IsStudent": false
    },
    {
      "Name": "Jane Smith",
      "Age": 30,
      "IsStudent": true
    }
  ]
}
[
  {
    "Name": "John Doe",
    "Age": 25,
    "IsStudent": false
  },
  {
    "Name": "Jane Smith",
    "Age": 30,
    "IsStudent": true
  }
]
{
  "content": [{
    "type": "text",
    "text": "{\"isError\": true, \"msg\": \"Network Error when fetching file\", \"data\": \"\"}"
  }]
}

Above is the response from MCP tool, and in most cases your LLM should interpret the response and present you with a JSON object, for example as below.

Note, different LLM models may have different ways to interpret the JSON object, so please check if the response is correctly interpreted by your LLM model.

{
  "isError": true,
  "msg": "Network Error when fetching file",
  "data": ""
}

or it is also possbile that your LLM would say "Network Error when fetching file, try again later" to you.

The API automatically detects and converts different data types:

The MCP returns descriptive error messages for common issues:

Service Agreement and Privacy Policy

By using Excel to JSON MCP, you agree to the service agreement, and privacy policy.

Free for now.

https://buymeacoffee.com/wtsolutions


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4