Skip to main content

JSON to CSV Converter


A Model Context Protocol (MCP) server implementation for a simple tool that converts JSON arrays of objects to CSV format.

License Python Version MCP Protocol


Table of Contents

  1. Description
  2. Usage
  3. Avaliable Tools
  4. License

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

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)

Source distribution for mcp-json-to-csv 0.0.1
File Size Uploaded
mcp_json_to_csv-0.0.1.tar.gz 24.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-json-to-csv 0.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page