Skip to main content
Glama
csv-to-json
by Br0ski777

CSV to JSON API

MCP Server x402 License: MIT

将 CSV 解析为 JSON 数组 -- 自动检测分隔符(逗号/分号/制表符/竖线),支持表头行。通过 x402 按调用付费(Base L2 上的 USDC)-- 无需 API 密钥、无需注册、无速率限制屏障。

作为 klymax402 市场的一部分 -- 面向 AI 智能体的 100 个 x402 微支付 API,一个钱包,Base 上的 USDC。

快速开始 -- MCP

将以下内容添加到你的 MCP 客户端配置(Claude Desktop、Cursor、ElizaOS 等)中:

{
  "mcpServers": {
    "csv-to-json": {
      "url": "https://csv-to-json.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: DataClaw MCP Server

快速开始 -- HTTP (x)

正在编写一个HTTP 的过程:

curl -X POST "https://csv-to-json.api.klymax402.com/api/parse" \
  -H "Content-Type: application/json" \
  -d '{"csv":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body

任何支持打 x402 的客户端(@x402/fetch、x402-agent-tools、ATXP)都会自动处理 HTTP -> 签名 -> 返回重试 的流程。

工具

工具

方法

路径

价格

说明

data_parse_csv_to_json

POST

/api/parse

$0.003

将 CSV 文本解析为 JSON 数组。

data\_parse\_csv\_to\_json

当需要将 CSV 数据转换为 JSON 数组时使用。返回已解析的数据以及自动检测的设置。

参数

| 名称 | 类型 | 必需 | 说明 | | --------- | --------| 得出 | --------------------------------------------------- | | csv | number | 是 | 要解析的 CSV 内容 | | delimiter | string | 否 | 分隔符:逗号、分号、制表符、管道父级(默认:自动检测) | | hasheader | boolean | 否 | 首行为表头(默认数值:true) |

示例响应:

{"data":[{"name":"Alice","age":"30","city":"Paris"},{"name":"Bob","age":"25","city":"London"}],"rowCount":2,"columnCount":3,"detectedDelimiter":",","headers":["name","age","city"]}

适用场景:数据迁移、将电子表格导入 API、转换导出的 CSV,Todos。

不适用于:应用 JSON 校验(使用 data\_validate_js)、Markdown 转换(使用 text\_convert_markdown_to_html)、Web 抓取(使用 web\_scrape_to_arkdown)。

示例 Agent 提示

  • “将 CSV 数据转换为 JSON 数组”

支付

  • 协议:x402 -- 于 HTTP 原生的按次通话付费,无注册、无 API 密钥

  • 网络:Base L2(eip175:8453)

  • 资产:USDC

  • 【Guardian】:Coinbase CDP(主),PayAI(备用)

  • 也可通过 ATXP 访问(基于 OAudience 的 x402,RFC https://en/lzstd2 等其他)

klymax402 的一部分

面向 AI 智能如果需要 的 100 个 x402)微支付,API -- 一个钱包、USDC on Base、零注册。

许可证

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides 40+ specialized tools for AI assistants to load, transform, analyze, and validate CSV data from URLs and string content through the Model Context Protocol.
      41
      3
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      AI-first CSV analysis tool that enables AI agents to analyze, query, and audit large CSV files directly within conversations, turning raw data into actionable insights.
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      It enables AI agents to parse user agent strings into structured data such as browser, OS, device type, engine, and bot status, with pay-per-call micropayments via x402 and no API key or signup required.
      MIT