CSVBox MCP server for creating, updating, validating and generating CSVBox importer sheets.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Csvbox MCP Server.
create_sheetCreate a CSVBox sheet
update_sheetReplace an existing sheet
patch_sheetPartially update a sheet
generate_sheet_jsonNL prompt β complete sheet JSON (via LLM)
create_importer_from_promptNL prompt β validate β create
generate_import_codeIntegration code (vanilla-js/react/vue/angular)
A universal Model Context Protocol (MCP) server for CSVBox. It exposes CSVBox importer-sheet management as MCP tools so you can create, replace, patch, generate, validate, and scaffold importers from any MCP-compatible client β Claude Desktop, Cursor, Windsurf, Roo Code, Cline, VS Code, ChatGPT MCP, and more.
Runs over stdio, so it works the same way in every client.
| Tool | Purpose | API call |
|---|---|---|
create_sheet | Create a CSVBox sheet | POST /1.1/sheet |
update_sheet | Replace an existing sheet | PUT /1.1/sheet/{key} |
patch_sheet | Partially update a sheet | PATCH /1.1/sheet/{key} |
generate_sheet_json | NL prompt β complete sheet JSON (via LLM) | none (calls LLM) |
create_importer_from_prompt | NL prompt β validate β create | POST /1.1/sheet (+ LLM) |
generate_import_code | Integration code (vanilla-js/react/vue/angular) | none |
generate_sheet_functions | NL prompt β virtual columns / validation functions / data transforms (via LLM) | none (calls LLM) |
validate_schema | Local schema validation | none |
CSVBox currently has no GET or LIST endpoints, so there are intentionally no
get_sheet/list_sheettools.
It also exposes two MCP prompts:
| Prompt | Purpose |
|---|---|
create_csvbox_sheet | Make the host client's own LLM build a complete CSVBox sheet (no server-side LLM key needed). |
csvbox_sheet_functions | Make the host client's own LLM author virtual columns, validation functions, and data transforms (no server-side LLM key needed). |
generate_sheet_json and create_importer_from_prompt use an LLM to convert a free-form request into a complete CSVBox sheet β title, sheet_columns, destinations, webhooks, security_settings, and steps. Only actual data fields become columns; destinations, webhooks, domains, regions, file-upload and step settings are placed in their proper configuration sections, never turned into columns. There are three tiers:
ANTHROPIC_API_KEY or OPENAI_API_KEY is set, the server calls the LLM directly. Works in MCP Inspector and headless.create_csvbox_sheet) β when you have no server key, host clients (Cursor, Claude Desktop, Cline) run the generation with their own model, then call validate_schema and create_sheet. Free.generate_sheet_json returns a structured "no LLM provider configured" error pointing to the MCP prompt, and create_importer_from_prompt does not call the CSVBox API. There is no regex fallback.The generator runs in one of two modes, chosen automatically from the prompt:
supplier_id, supplier_name, supplier_gstin, supplier_email, β¦). An explicit minimum count is honored and every column_name is globally unique.Data types and validations are inferred from the field names and any requested types:
| Requested / implied | Column type | Validators |
|---|---|---|
| Dropdown / status / category with fixed options | list | values: [...] candidate options |
| Percentage / percent | number | min_value: 0, max_value: 100 |
| Positive numeric (quantity, count, stock, cost, age) | number | min_value: 0 |
| ID / code / reference number | text | β |
email | β | |
| Phone / mobile | phone_number | β |
| URL / website | url | β |
| Price / cost / amount / salary | currency | β |
| Date fields | date | format: "YYYY-MM-DD" |
| Boolean / is_* / active | boolean | β |
| GST / GSTIN / tax id | regex | GSTIN pattern |
| PIN code / postal code (India) | regex | ^[1-9][0-9]{5}$ |
Large schemas: the default models (
claude-haiku-4-5,gpt-4o-mini) are cheap but produce noticeably better 100+ column schemas when you override with a stronger model viaLLM_MODEL(e.g.claude-sonnet-4-6). The output cap is raised to fit big sheets; if a request is still too large the response is flaggedTRUNCATED(a distinct result, not a parse error) and the CSVBox API is not called β reduce the column count / modules or use a model with a larger output budget and retry.
Beyond the six sheet properties, the CSVBox Sheet API accepts three collections whose items carry a js_code string that CSVBox executes during an import:
| Collection | Identified by | Max | js_code must⦠|
|---|---|---|---|
virtual_columns | column_name | 20 | return the computed cell value |
validation_functions | function_name | 10 | return an array of error strings ([] = valid) |
data_transforms | transform_name | 10 | mutate the csvbox object and return it |
Inside js_code the csvbox object exposes row, column, virtual, user, import, and environment. The two accessors are not interchangeable β a virtual column is per-row and uses csvbox.row.<name> (a scalar), while a "column"-scoped function sees the whole column via csvbox.column.<name> (an array).
Shared optional fields: scope (column | row; not on virtual columns), run_at (before_validation | after_validation; data transforms only), columns / dynamic_columns, active, dependencies, and _delete (PATCH only).
Returns { "virtual_columns": [...], "validation_functions": [...], "source": ..., "validation": {...} }. Collections the request does not imply are omitted, never returned as empty arrays.
This tool does not call the CSVBox API. Read the generated js_code, then apply it yourself with patch_sheet. Pass sheet so the model references real column names and the validator can check those references β CSVBox has no read endpoint, so it must be supplied inline. Without an LLM key, use the csvbox_sheet_functions MCP prompt instead.
update_sheet (PUT) | patch_sheet (PATCH) | |
|---|---|---|
| Collection you send | authoritative β any existing item not named is deleted | merged β unnamed items are left alone |
"virtual_columns": [] | deletes all 20 | no-op |
| Key omitted | untouched | untouched |
_delete: true | not valid | removes that item (all its other fields ignored) |
Use patch_sheet to apply generated functions. Validate first with the matching verb:
mode is create (default), put, or patch. It only affects the function collections β under put an empty array is a hard error rather than a warning, and _delete is rejected outside patch.
An item may load up to 5 third-party scripts:
Only cdn.jsdelivr.net, unpkg.com, and cdnjs.cloudflare.com are allowed; https only, .js/.mjs path, no query string, fragment, userinfo, or port.
Security. This server never executes
js_codeβ it is an opaque string here. Generated JavaScript is unreviewed model output, so read it before you PATCH it into a live importer. A dependency without anintegritydigest can change under your customers at any time;validate_schemawarns when one is missing.
See docs/sheet-functions-example.json for a full payload.
Or build from source:
This produces dist/index.js β the entrypoint MCP clients launch.
Copy .env.example to .env and fill in your CSVBox credentials:
CSVBox credentials are only required for the API-backed tools (create_sheet, update_sheet, patch_sheet, create_importer_from_prompt). validate_schema and generate_import_code work without any credentials.
Auth header note: the client sends
x-csvbox-api-keyandx-csvbox-secret-api-key(matching the CSVBox reference payloads). These are defined as constants insrc/services/csvbox-api.tsif your account uses different header names.
Every request this server sends to the CSVBox API carries two extra headers:
CSVBox records how each sheet was created; without these, sheets and imports made through MCP are indistinguishable from any other REST caller. The version is read from package.json and is the same one the server advertises to your MCP client, so the two can never disagree.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/csvbox-mcp-server)<a href="https://allmcps.com/mcp/csvbox-mcp-server"><img src="https://allmcps.com/api/badge/csvbox-mcp-server?style=directory" alt="Csvbox MCP Server on AllMCPs" /></a>