# mcp-flow-cl

Connect an agent to Flow to create payment orders, check their status and request refunds. Useful when your project needs to work with Flow payments through an API.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/payments/flow-cl
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-flow-cl

## What it does

The server gives an agent tools to create payment orders and email customers a payment link. It can look up a payment by Flow token, Flow order number or your `commerceOrder`, list payments for a date, and start a full or partial refund. Customers pay on Flow’s hosted page, which supports Webpay, ETpay, cash networks and international cards.

Set `FLOW_API_KEY` and `FLOW_SECRET_KEY` to authenticate requests. The server creates the HMAC-SHA256 signature; the secret key stays off the wire. `FLOW_ENV` selects the environment, with `sandbox` as the default. Flow provides a separate key pair for sandbox use, so production credentials won’t work there.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `FLOW_API_KEY`, `FLOW_SECRET_KEY`, `FLOW_ENV` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env FLOW_API_KEY=<FLOW_API_KEY> --env FLOW_SECRET_KEY=<FLOW_SECRET_KEY> --env FLOW_ENV=<FLOW_ENV> --transport stdio flow-cl -- npx -y @codespar/mcp-flow-cl
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add flow-cl --env FLOW_API_KEY=<FLOW_API_KEY> --env FLOW_SECRET_KEY=<FLOW_SECRET_KEY> --env FLOW_ENV=<FLOW_ENV> -- npx -y @codespar/mcp-flow-cl
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "flow-cl": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-flow-cl"
            ],
            "env": {
                "FLOW_API_KEY": "<FLOW_API_KEY>",
                "FLOW_SECRET_KEY": "<FLOW_SECRET_KEY>",
                "FLOW_ENV": "<FLOW_ENV>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "flow-cl": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-flow-cl"
            ],
            "env": {
                "FLOW_API_KEY": "<FLOW_API_KEY>",
                "FLOW_SECRET_KEY": "<FLOW_SECRET_KEY>",
                "FLOW_ENV": "<FLOW_ENV>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e FLOW_API_KEY=<FLOW_API_KEY> -e FLOW_SECRET_KEY=<FLOW_SECRET_KEY> -e FLOW_ENV=<FLOW_ENV> flow-cl npx -y @codespar/mcp-flow-cl
```
Replace <…> with your own values

## When to use it
- create a payment order and return its link
- email a customer a Flow collection link
- check payment status using an order identifier
- list received payments for a date
- request a refund and look up its status

## Example prompts
- Create a Flow payment order and give me the customer link.
- Check the Flow payment status for token `abc123`.
- Start a partial refund for refund token `ref123`.

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 124 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
