JSON to CSV Converter
A Model Context Protocol (MCP) server implementation for a simple tool that converts JSON arrays of objects to CSV format.
Table of Contents
Description
This tool provides a service that takes a JSON string containing an array of objects (dictionaries) and converts it to a CSV string. The first object's keys are used as the CSV header.
Usage
This tool is designed to work as an MCP (Model Control Protocol) server. You can configure it in your project:
{
"mcpServers": {
"json-to-csv": {
"command": "uvx",
"args": [
"--index-url",
"python_package_index_url",
"--from",
"mcp-json-to-csv",
"json-to-csv"
]
}
}
}
Available Tools
json-to-csv
Converts a JSON array of objects to CSV format.
Input Schema:
{
"json_input": "JSON string to convert"
}
Example Input:
{
"json_input": "[{\"name\":\"John\",\"age\":30},{\"name\":\"Jane\",\"age\":25}]"
}
Example Output:
name,age
John,30
Jane,25
Requirements
- Python 3.10+
- uv (https://docs.astral.sh/uv/getting-started/installation/)
License
This project is licensed under the MIT License - see the LICENSE file for details.
For more information or support, please open an issue on the project repository.
Metadata
Release files for mcp-json-to-csv 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_json_to_csv-0.0.1.tar.gz | 24.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_json_to_csv-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.3 kB
Release files / mcp_json_to_csv-0.0.1.tar.gz
| Download URL | mcp_json_to_csv-0.0.1.tar.gz |
|---|---|
| Size | 24.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d881105456a8cfcebee04ef79ee5f5267ea3a4ef5a7f6da40d899c9e3d639ae
|
|
BLAKE2b-256 checksum How to use checksums |
3dca754599788828683a7e8636d4cebfaa0cce11d152cdc4e5573d27ec66b620
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|
Release files / mcp_json_to_csv-0.0.1-py3-none-any.whl
| Download URL | mcp_json_to_csv-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17f80a9f9336303d5f4f2162766ef547c1db6fa23cc553c09646fb72113d5017
|
|
BLAKE2b-256 checksum How to use checksums |
f7f736e940ae8ffc09bd58137493bb7efde459a2f794f924a1325be9393ad326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|