csvto-mcp
v0.1.2Local CSV, JSON and Excel conversion.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
inspect_file Inspect a CSV, JSON or Excel file
Report the columns, row count and any parse warnings for a CSV, JSON or Excel file without loading the whole thing into the conversation. Use before converting so you know the shape of the data.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | Absolute path to the source file on this machine. |
format | string | Defaults to detection from the file extension. |
has_header | boolean | Treat the first row as column names. Default true. |
read_rows Read rows from a CSV, JSON or Excel file
Read a slice of rows from a tabular file, with optional search and sorting, returning them as a compact table. Use this to look at part of a large file without pulling the whole thing into the conversation: ask for the rows you need rather than reading the file directly.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | Absolute path to the source file on this machine. |
filter | string | Case-insensitive text match across all columns. |
format | string | Defaults to detection from the file extension. |
has_header | boolean | Treat the first row as column names. Default true. |
limit | integer | Rows to return. Default 50, maximum 500. |
offset | integer | Rows to skip. Default 0. |
sort_column | string | Column name to sort by. |
sort_direction | string | Default asc. Empty cells always sort last. |
csv_to_excel Convert CSV to Excel
Convert a CSV file on this machine to Excel and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | Absolute path to the source file on this machine. |
has_header | boolean | Treat the first row as column names. Default true. |
max_rows | integer | Stop after this many data rows. |
output_path | string | Where to write the result. Defaults to the input path with a new extension. |
sheet_name | string | Worksheet name. Defaults to Sheet1. |
csv_to_pdf Convert CSV to PDF
Convert a CSV file on this machine to PDF and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. PDF text is limited to latin-1; characters outside it become question marks and are reported. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | Absolute path to the source file on this machine. |
has_header | boolean | Treat the first row as column names. Default true. |
max_rows | integer | Stop after this many data rows. |
orientation | string | Use landscape for wide tables. |
output_path | string | Where to write the result. Defaults to the input path with a new extension. |
page_size | string | Page size. Default a4. |
title | string | Optional title printed above the table. |
csv_to_json Convert CSV to JSON
Convert a CSV file on this machine to JSON and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | Absolute path to the source file on this machine. |
has_header | boolean | Treat the first row as column names. Default true. |
indent | integer | Indent width. 0 for compact output. |
max_rows | integer | Stop after this many data rows. |
output_path | string | Where to write the result. Defaults to the input path with a new extension. |
shape | string | objects gives one object per row keyed by column name (default). |
json_to_csv Convert JSON to CSV
Convert a JSON file on this machine to CSV and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | Absolute path to the source file on this machine. |
has_header | boolean | Treat the first row as column names. Default true. |
max_rows | integer | Stop after this many data rows. |
output_path | string | Where to write the result. Defaults to the input path with a new extension. |
excel_to_csv Convert Excel to CSV
Convert a Excel file on this machine to CSV and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | Absolute path to the source file on this machine. |
has_header | boolean | Treat the first row as column names. Default true. |
max_rows | integer | Stop after this many data rows. |
output_path | string | Where to write the result. Defaults to the input path with a new extension. |
sheet | string | Worksheet name. Defaults to the first sheet. |
csv_to_xml Convert CSV to XML
Convert a CSV file on this machine to XML and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | Absolute path to the source file on this machine. |
has_header | boolean | Treat the first row as column names. Default true. |
max_rows | integer | Stop after this many data rows. |
output_path | string | Where to write the result. Defaults to the input path with a new extension. |
root_element | string | Root element name. Default "rows". |
row_element | string | Per-record element name. Default "row". |
csv_to_sql Convert CSV to SQL
Convert a CSV file on this machine to SQL and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | Absolute path to the source file on this machine. |
create_table | boolean | Include a CREATE TABLE statement. Default true. |
dialect | string | Identifier quoting style. |
has_header | boolean | Treat the first row as column names. Default true. |
max_rows | integer | Stop after this many data rows. |
output_path | string | Where to write the result. Defaults to the input path with a new extension. |
table_name | string | Target table name. Default "my_table". |
csv_to_markdown Convert CSV to Markdown
Convert a CSV file on this machine to Markdown and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.
| Parameter | Type | Description |
|---|---|---|
input_path * | string | Absolute path to the source file on this machine. |
has_header | boolean | Treat the first row as column names. Default true. |
max_rows | integer | Stop after this many data rows. |
output_path | string | Where to write the result. Defaults to the input path with a new extension. |