MCP Server for JSON to CSV convertion.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_json_to_csv-0.0.1.tar.gz.
File metadata
- Download URL: mcp_json_to_csv-0.0.1.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d881105456a8cfcebee04ef79ee5f5267ea3a4ef5a7f6da40d899c9e3d639ae
|
|
| MD5 |
f189074bea04b061ce6d3ee48e060afa
|
|
| BLAKE2b-256 |
3dca754599788828683a7e8636d4cebfaa0cce11d152cdc4e5573d27ec66b620
|
File details
Details for the file mcp_json_to_csv-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mcp_json_to_csv-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17f80a9f9336303d5f4f2162766ef547c1db6fa23cc553c09646fb72113d5017
|
|
| MD5 |
8c18cc9d98eedf51c5f6666802e6dd2f
|
|
| BLAKE2b-256 |
f7f736e940ae8ffc09bd58137493bb7efde459a2f794f924a1325be9393ad326
|