Skip to content
flint

MCP server

The payments MCP server with commerce built in.

Flint's MCP server gives Claude, ChatGPT, Cursor, and any MCP client access to Flint API operations your credential can call: payment links and hosted checkout, orders, refunds, subscriptions, invoices, inventory, and gift cards. Five small tools find, describe, and call supported operations. It runs on your machine with your sandbox key, refuses live data until you allow it, and holds live sensitive writes for your approval.

Add Flint to Claude Code
claude mcp add --transport stdio flint -- flint mcp serve

The server runs flint mcp serve with the credential the Flint CLI already has. Configs for Cursor, Claude Desktop, ChatGPT desktop, and Codex are under Connect.

5

tools on by default, about 6 KB

flint mcp serve

634

tools with --tools all

flint mcp serve --tools all

7

docs tools, no API key

developers.withflintpay.com/mcp

01A session

A payment link in one sentence. A refund only with your yes.

The agent finds the operation, reads its arguments, and calls it with real API arguments, checked against the operation's schema before Flint sees them. Every result names the environment it ran in, and a live refund stops and asks you.

flint mcp servesandbox
  1. You

    Make a $40 payment link for a 30-minute consult.

  2. flint_write

    {
      "operation": "payment-links.create",
      "arguments": {
        "name": "30-minute consult",
        "line_items": [
          {
            "type": "custom_fixed",
            "name": "30-minute consult",
            "unit_price_money": { "amount": 4000, "currency": "USD" }
          }
        ]
      },
      "idempotency_key": "consult-link-1",
      "select": ["payment_link_id", "url", "status"]
    }

    {"data":{"payment_link_id":"pl_1kmn0aExample","status":"active","url":"https://checkout.withflintpay.com/pay/pl_1kmn0aExample"}}

    Flint environment: sandbox

  3. Agent

    Here it is: checkout.withflintpay.com/pay/pl_1kmn0aExample. It’s in your sandbox, so a test card pays it and nothing is charged.

The agent searches and describes first, then sends flint_write with the operation, the API request body, an idempotency key so a retry can’t create a second link, and a field selection so it reads three fields instead of the whole object.
flint mcp serve --allow-livelive
  1. You

    Maya canceled. Refund order ord_1kmn0aExample in full.

  2. flint_write

    {
      "operation": "refunds.create",
      "arguments": {
        "order_id": "ord_1kmn0aExample",
        "refund_type": "full",
        "reason": "requested_by_customer"
      },
      "idempotency_key": "refund-consult-1",
      "confirm": true,
      "live": true,
      "select": ["refund_id", "status", "amount_money"]
    }
  3. Your MCP client asks you · elicitation/create

    Approve this live Flint operation?

    refunds.create: Create refund

    Merchant: mer_1kmn0aExample (live)

    Resources: ord_1kmn0aExample

    This can't be undone through the API.

    Request: POST /v1/refunds

    Arguments: {"order_id":"ord_1kmn0aExample","reason":"requested_by_customer","refund_type":"full"}

    Idempotency key: refund-consult-1

    Approve refunds.createDeclineAccept
  4. {"data":{"refund_id":"ref_1kmn0aExample","status":"succeeded","amount_money":{"amount":4000,"currency":"USD"}}}

    Flint environment: live

  5. Agent

    Refunded $40.00 on order ord_1kmn0aExample.

Started with --allow-live, the server still needs live: true and confirm: true on the call, and it pauses a live refund to ask you. On a server started without the flag, the same call is refused before it runs.

The link is a regular Flint payment link on hosted checkout, and the refund goes back to the card the buyer paid with. Order tools, gift cards, subscriptions, and the rest of the API are operations the same five tools already reach. Sandbox writes that move money or can’t be undone, such as orders and refunds, need confirm: true; a payment link doesn’t.

02Connect

Add it to the client you already use.

flint mcp serve is a standard stdio server, so any MCP client that launches local servers can run it. It uses the same credential as the Flint CLI: your saved flint login, a profile in FLINT_PROFILE, or a key in FLINT_API_KEY.

Claude Code
claude mcp add --transport stdio flint -- flint mcp serve

# a second server that can only read
claude mcp add --transport stdio flint-read -- flint mcp serve --read-only

# a server pinned to another CLI profile
claude mcp add --transport stdio --env FLINT_PROFILE=staging \
  flint-staging -- flint mcp serve

Without --env, the server uses the CLI's default profile. Claude Desktop takes the JSON config under Cursor. Keep the server name to five characters or fewer if you add --tools, so prefixed tool names fit 64 characters.

No account yet

flint signup creates a Flint account from the terminal and saves a sandbox key, which is the credential the server starts with.

  • flint signup

Already on Flint

flint login signs in through the browser and preselects your sandbox. Live access needs its own approval on that page.

  • flint login
  • FLINT_PROFILE

Keys in a config file

Put a sandbox key in FLINT_API_KEY. Sandbox keys start with flint_test_ and only act on your sandbox, which is what belongs in a shared config file.

  • FLINT_API_KEY

03The tools

5 tools find and call operations.

An agent finds an operation with flint_search, reads its arguments with flint_describe, and calls it with flint_read or flint_write by operation ID, such as refunds.create. The default tools/list is about 6 KB, so an agent's context isn't spent on 634 schemas it won't call. When your client works better with one tool per operation, opt in with --tools.

flint mcp serve · tools/list5 tools

Discover 3

readOnlyHint: true
  • flint_search

    Find an operation by task words or a resource name. Each result says whether it reads or writes and whether it needs confirm or an idempotency key.

  • flint_describe

    Show one operation's arguments or result fields a level at a time, with its route, scopes, and confirm and idempotency rules. Also opens a webhook event's payload.

  • flint_help

    Explain safety, errors, webhook events, and sandbox test cards.

Read 1

readOnlyHint: true
  • flint_read

    Run any read operation by ID. Lists return one page and a next_page_token.

Write 1

destructiveHint: true
  • flint_write

    Run any write operation by ID, with idempotency_key, confirm, dry_run, and select beside it.

flint_write is annotated destructive, so a client that asks before destructive tools asks before every write. The server then adds its own gate for sensitive and irreversible ones.
--tools
# the default: 5 discovery tools, about 6 KB
flint mcp serve

# one typed tool per order operation, under 50 KB
flint mcp serve --tools orders

# only the groups and operations you name
flint mcp serve --tools customers,payment-links,refunds.create

# every operation as a typed tool: 634, under 780,000 bytes
flint mcp serve --tools all

# serve no write tool, and refuse writes
flint mcp serve --read-only

An unknown group or operation name stops the server at startup, with suggestions. flint_search, flint_describe, and flint_help stay, limited to what you chose. There is no default group to add: --tools default stops the server.

Typed tools with --tools

  • orders_create
  • orders_pay
  • orders_get
  • gift_cards_create
  • subscriptions_create
  • invoices_create
  • returns_create
  • inventory_adjustments_create
  • fulfillments_dispatch
  • resource_timelines_get
  • trigger
  • listen

Orders, gift cards, subscriptions, invoices, returns, inventory, and fulfillment are groups you name with --tools GROUP, or single operations such as --tools refunds.create. Typed tool names use only lowercase letters, digits, and underscores, and typed mode has no flint_read or flint_write. resource-timelines.get reads the history of any supported resource and listen streams webhook events. The same API is on the commerce API page, and every command is in the CLI command reference.

Schemas from the API contract

flint_describe shows each operation's arguments and result fields from the OpenAPI contract the CLI ships with, a level at a time, and the server validates arguments against the full schema before calling Flint. A wrong field comes back as an error naming it, before any request reaches Flint.

  • flint_describe
  • kind: result
  • path
  • variant

Annotations on every tool

Each tool declares whether it only reads, whether it can destroy, whether a repeat is safe, and whether it reaches outside your machine, so your client's approval settings can tell a read from a write. With --tools, each typed tool carries its own, and a read-only server serves no write tool.

  • readOnlyHint
  • destructiveHint
  • idempotentHint
  • --read-only

Results sized for a context window

Keep only the fields you need with select. Lists return 10 items and a next_page_token. A read result over 49,152 bytes is refused with advice to narrow it; a completed write always returns its result, with a warning if it is large.

  • select
  • page_size
  • RESULT_TOO_LARGE

04Guardrails

Sandbox by default. Live only when you say so.

flint mcp serve assumes the model calling it will eventually send the wrong call. You set the gates when you start the server, and an agent can narrow them but never widen them.

Sandbox reads and ordinary writesflint mcp serve: Runswith --allow-live: Runswith --allow-live --allow-destructive: Runs
Sandbox sensitive or irreversible writes, such as refunds.createflint mcp serve: Runs when the agent sends confirm: true, with no prompt to youwith --allow-live: Runs when the agent sends confirm: true, with no prompt to youwith --allow-live --allow-destructive: Runs when the agent sends confirm: true, with no prompt to you
Live reads and ordinary writesflint mcp serve: Refusedwith --allow-live: Runs with live: true on the callwith --allow-live --allow-destructive: Runs with live: true on the call
Live sensitive or irreversible writes, such as payment-intents.cancelflint mcp serve: Refusedwith --allow-live: Needs live: true and confirm: true, then asks youwith --allow-live --allow-destructive: Runs with live: true and confirm: true

Asks you: the server pauses the call and asks through MCP elicitation, in your client. A client that can’t ask gets CONFIRMATION_NEEDS_USER and an exact terminal command to run yourself. A server started with --read-only refuses every write, dry runs included.

flint_write payment-links.create with dry_run: true
{
  "data": {
    "body": {
      "line_items": [
        {
          "name": "30-minute consult",
          "type": "custom_fixed",
          "unit_price_money": { "amount": 4000, "currency": "USD" }
        }
      ],
      "name": "30-minute consult"
    },
    "dry_run": true,
    "effect": {
      "amounts": [
        {
          "amount": 4000,
          "currency": "USD",
          "display": "40.00 USD",
          "field": "line_items[0].unit_price_money"
        }
      ],
      "confirm_required": false,
      "irreversible": false,
      "resources": [],
      "sensitive": false,
      "summary": "Create payment link: 40.00 USD"
    },
    "idempotency_key": "consult-link-1",
    "method": "POST",
    "operation": "payment-links.create",
    "path": "/v1/payment-links",
    "permission_check": {
      "reason": "Credential permissions were not checked for this dry run.",
      "scope_requirement": { "mode": "all", "scopes": ["checkouts.payment_links.write"] },
      "status": "unknown"
    }
  }
}

The exact request the call would send, with nothing sent, plus an effect that lists the confirmation rule, affected resources, and formatted amounts. A dry run needs neither confirm nor live. Recorded offline from flint 0.15.0.

isError: true · {"error":{"code":"INVALID_REQUEST","message":"1 argument is invalid.","param":"live","details":[{"code":"NOT_ALLOWED","message":"live is not an available control.","param":"live"}]}}
What an agent gets for sending live: true to a server started without --allow-live. If the credential itself is live, the call fails with LIVE_ACCESS_DISABLED and tells the agent to ask you to restart the server with the flag.

Your secret key never passes through the agent. Sign-in, key import, credential store changes, config set, config unset, and sign-out aren't operations an agent can run.

auth import

The live block sits in the server's request path, so no operation can reach live data without --allow-live.

LIVE_ACCESS_DISABLED

The server's profile, merchant guard, context, and timeout are fixed when it starts. An agent can't change them from a call.

flint mcp serve

Payment intents, refunds, and order payments refuse to run without an idempotency key, and a retry with the same key returns the first result instead of charging twice.

idempotency_key

A merchant API key can't see buyer-session operations, and a partner access token reaches only install-scoped ones. Discovery and calls follow the same filter.

flint_search

The server waits up to 10 minutes for your answer. A declined call isn't performed, and the agent is told not to retry unless you ask.

CONFIRMATION_DECLINED

Streams need a bound: listen stops at 100 events or 2 minutes, whichever the agent sets.

max_events

Keys still deserve care outside MCP: the API key security guide covers scopes, rotation, and where keys belong.

reviewed 2026-10-31 against flint 0.15.0 and its source · corrections: Flint Help

05The docs server

Docs and exact schemas, no key.

Point any MCP client at developers.withflintpay.com/mcp and an agent can search the docs and Flint Help and read an endpoint's exact schema before it writes integration code. It never touches an account, so there is nothing to authorize.

Claude Code
claude mcp add --transport http flint-docs \
  https://developers.withflintpay.com/mcp

Search guides, the API reference, error codes, webhook events, CLI commands, the changelog, and the blog. Each result carries the call that opens it.

search_docs

Browse the docs by collection: the collections and the newcomer path, a collection's documents, or a document's sections and operations.

list_docs

Read one docs page as Markdown, by path or URL and an optional section. A long page ends with the exact call for the next part.

read_doc

List public API operations with method, path, operation ID, and summary, filtered by resource, path prefix, or method.

list_operations

One operation: authentication, scopes, idempotency, parameters, request body, responses, and error codes, with a section each for the request, response, errors, and examples.

read_operation

One schema's fields: types, required flags, enum values, and constraints, with nested schemas as calls instead of expanded text.

read_schema

Search Flint Help for answered questions and known issues, for the error or decline code the docs don't cover.

search_flint_help

A typical loop is search_docs or list_operations to find the operation, then read_operation for its overview and again with a section for its request fields. Every result is capped, and a longer one ends with the exact call that continues it. Any page is Markdown with .md on its URL, llms.txt and its manifest index them, and SKILL.md holds the API reference for offline use. The AI agents guide covers when to use which.

06Compared

Flint's MCP server and Stripe's.

Flint's server puts the commerce API behind an agent, through five discovery tools or one typed tool per operation, and keeps live mode off until you start it otherwise. Stripe's MCP server is hosted at mcp.stripe.com, with OAuth sign-in.

ToolsFlint MCP server: 5 discovery tools by default, or up to 634 typed tools, one per operation, with --toolsStripe MCP server: stripe_api_read and stripe_api_write call supported API methods, beside docs, account, and analytics tools
Orders, stock, and returnsFlint MCP server: Order, inventory, fulfillment, and return toolsStripe MCP server: No order, inventory, or return methods in its supported list
Live modeFlint MCP server: Off until you start the server with --allow-live, then acknowledged with live: true on each callStripe MCP server: Granted per live account or sandbox on Stripe's OAuth consent page
Approving a risky callFlint MCP server: On live data, your MCP client asks you before the call runsStripe MCP server: Refunds and outbound payments return an approval URL, and the agent retries after you approve
Where it runsFlint MCP server: On your machine over stdio, with your CLI login or keyStripe MCP server: Hosted at mcp.stripe.com, with OAuth or an agent API key

Flint runs card processing on Stripe. Building a whole store with an agent is on the sell online with AI page, and products that take payments for their own users are on payments for AI app builders.

07Start

Connect it to your sandbox.

Install the CLI

npm install -g @flintpay/cli

Create an account and a sandbox key

flint signup

Add Flint to Claude Code

claude mcp add --transport stdio flint -- flint mcp serve

Then ask for a $40 payment link and open it. Pay with 4242 4242 4242 4242 and any future expiry, and ask the agent to get the link again: its completed_count is now 1. Already have an account? Run flint login instead of flint signup.

Then read these

  1. 01
    Agents and MCP in the CLI guideFlags, controls, and the credential the server uses
  2. 02
    The docs MCP serverTools, protocol notes, and SKILL.md
  3. 03
  4. 04
  5. 05

Sources

Where each outside claim comes from.

  • Stripe's MCP server is hosted at mcp.stripe.com and authenticates with OAuth or an agent API key, and OAuth consent grants access per live mode account or sandbox. Its API tools are stripe_api_search, stripe_api_details, stripe_api_read for GET methods, and stripe_api_write for POST, PATCH, PUT, and DELETE methods, beside account, analytics, Treasury, and documentation tools. The supported methods cover customers, charges, refunds, PaymentIntents, Checkout Sessions, invoices, subscriptions, products, prices, payment links, disputes, tax, and payouts, with no order, inventory, or return methods. Certain writes, such as refunds and outbound payments, wait for a person to approve them at a URL the agent provides, and the agent then retries. Stripe docs: Model Context Protocol (MCP)

    docs.stripe.com · checked 2026-10-31
  • The ChatGPT desktop app, Codex CLI, and Codex IDE extension run local stdio and remote streamable HTTP MCP servers and share one MCP configuration, added with codex mcp add. ChatGPT on the web doesn't read local Codex configuration files. OpenAI docs: MCP in Codex

    learn.chatgpt.com · checked 2026-10-31

last reviewed 2026-10-31 · corrections: Flint Help

FAQ

Questions about Flint's MCP server.

Does Flint have an MCP server?

Yes, two. flint mcp serve, part of the Flint CLI, is the account server: it runs on your machine over stdio and gives an MCP client Flint's API, from payment links and checkout to orders, refunds, subscriptions, invoices, and gift cards, through 5 tools by default: flint_search, flint_describe, flint_read, flint_write, and flint_help. Add --tools to list one typed tool per operation instead, up to 634 with --tools all. The docs server at developers.withflintpay.com/mcp is hosted, public, and read-only: any client can search the docs and Flint Help and read exact endpoint schemas without an API key.

Which MCP clients work with Flint?

Any client that can launch a local stdio server runs flint mcp serve, including Claude Code, Claude Desktop, Cursor, and the ChatGPT desktop app and Codex, which share one MCP configuration. ChatGPT on the web doesn't read local MCP configuration. The docs server is a remote streamable HTTP server, so a client that takes a server URL can add it directly.

Do I need a Flint API key?

Not for the docs server. flint mcp serve uses the same credential as the CLI: the session from flint login, a profile named in FLINT_PROFILE, or a key in FLINT_API_KEY. If you don't have an account yet, flint signup creates one and saves a sandbox key. Sandbox keys start with flint_test_ and only act on your sandbox.

Can an AI agent move real money through Flint's MCP server?

Only on a server you started for it. flint mcp serve refuses live keys and live contexts unless you start it with --allow-live, and even then each live call has to carry live: true. Sensitive and irreversible writes, such as refunds, also need confirm: true and, on live data, your approval: the server asks you through MCP elicitation, or returns CONFIRMATION_NEEDS_USER with the exact terminal command when your client can't ask. Only a server started with --allow-destructive lets an agent confirm those itself. With --read-only, the server serves no write tool at all.

Why does the account server run on my machine?

So your secret key stays there. flint mcp serve reads the credential from your OS keychain or environment, sign-in and key import aren't tools an agent can call, and requests go from your machine straight to Flint's API. The docs server can be hosted and public because it holds no credential and touches no account.

How many tools does Flint's MCP server have?

5 by default: flint_search finds an operation, flint_describe shows its arguments, flint_read and flint_write call it by operation ID, and flint_help explains safety, errors, webhook events, and test cards. The default tools/list is about 6 KB. With --tools, the server lists one typed tool per operation instead: under 50 KB for --tools orders, and 634 tools under 780,000 bytes for --tools all. Typed mode drops flint_read and flint_write and keeps search, describe, and help for the same scope.

Can my agent sign up for Flint?

Yes. The signup operation, called through flint_write, creates a Flint account and a sandbox API key in two calls: the agent sends your email and name, Flint emails you a code, and the agent sends the code back. It only runs for a CLI profile with no saved credential, so it can't replace a login you already have.

Is Flint's MCP server free?

Yes. Both servers are free, and the docs server needs no account. Flint charges when you take payments: 3.79% + 35¢ on cards, with no monthly fee. The sandbox is free, with no credit card. Flint pricing

How is Flint's MCP server different from Stripe's?

Flint's server reaches supported operations, including orders, inventory, fulfillment, and returns, through five discovery tools or one typed tool per operation with --tools, and it keeps live mode off until you start it with --allow-live. Approvals happen in your MCP client before a live call runs. Stripe's MCP server is hosted at mcp.stripe.com with OAuth sign-in and routes API calls through stripe_api_read and stripe_api_write tools. Flint runs card processing on Stripe.