Skip to main content
Glama
cithukyaw

mcp-csv-forwarder

by cithukyaw

mcp-csv-forwarder

A simple MCP server that sends CSV data to a configured API endpoint.

Build & Inspect

npm run build
npm run inspect

or

npx tsc
npx @modelcontextprotoc/inspector node build/server.js

Example mcp.json:

{
    "mcpServers": {
        "mcp-csv-forwarder": {
            "command": "node",
            "args": ["/path/to/mcp-csv-forwarder/build/server.js"],
            "env": {
                "API_URL": "https://example.com/api/csv", // required
                "API_KEY": "your_api_key_here", // required
                "CSV_COL_COUNT": 5 // optional: default to 5
            }
        }
    }
}

Example prompt

Hey mcp-csv-forwarder, send a group of CSV data:
r1c1,r1c2,r1c3,r1c4,r1c5
r2c1,r2c2,r2c3,r2c4,r2c5
2025-12-17
r1c1,r1c2,r1c3,r1c4,r1c5
r2c1,r2c2,r2c3,r2c4,r2c5
2025-12-16
r1c1,r1c2,r1c3,r1c4,r1c5
r2c1,r2c2,r2c3,r2c4,r2c5

It will send data to the server in the format below:

[
  {
    "csvLines": "r1c1,r1c2,r1c3,r1c4,r1c5\nr2c1,r2c2,r2c3,r2c4,r2c5
  },
  {
    "date": "2025-12-17",
    "csvLines": "r1c1,r1c2,r1c3,r1c4,r1c5\nr2c1,r2c2,r2c3,r2c4,r2c5
  },
  {
    "date": "2025-12-16",
    "csvLines": "r1c1,r1c2,r1c3,r1c4,r1c5\nr2c1,r2c2,r2c3,r2c4,r2c5
  },
]

Notes:

  • You can implement your API endpoint to process this incoming data.

  • You can also adjust the column count in the MCP config CSV_COL_COUNT.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Comprehensive CSV processing MCP server with 40+ operations for data manipulation, analysis, and validation. Features auto-save, undo/redo, and handles GB+ files
    39
    25
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Enables comprehensive CSV file management including creating, editing, analyzing, and transforming CSV data anywhere in the filesystem. Provides statistical analysis, data validation, filtering, and grouping capabilities through MCP protocol over stdio transport.
    15
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables efficient reading, analyzing, and querying of Excel, CSV, and JSON files with support for chunked processing, column/field filtering, and streaming for large datasets. Supports multiple transport protocols (stdio, HTTP, SSE) for flexible integration.
    26 npm
    4
    ISC