Skip to main content

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_json_to_csv-0.0.1.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_json_to_csv-0.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for mcp_json_to_csv-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1d881105456a8cfcebee04ef79ee5f5267ea3a4ef5a7f6da40d899c9e3d639ae
MD5 f189074bea04b061ce6d3ee48e060afa
BLAKE2b-256 3dca754599788828683a7e8636d4cebfaa0cce11d152cdc4e5573d27ec66b620

See more details on using hashes here.

File details

Details for the file mcp_json_to_csv-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_json_to_csv-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17f80a9f9336303d5f4f2162766ef547c1db6fa23cc553c09646fb72113d5017
MD5 8c18cc9d98eedf51c5f6666802e6dd2f
BLAKE2b-256 f7f736e940ae8ffc09bd58137493bb7efde459a2f794f924a1325be9393ad326

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page