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.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cithukyaw/mcp-csv-forwarder'

If you have feedback or need assistance with the MCP directory API, please join our Discord server