The Flex MCP server lets AI assistants like Claude, Cursor, and Windsurf interact with your Flex account on your behalf. Ask your AI to look up a payment intent, summarize yesterday’s refunds, or create a new product — and it’ll call the Flex API directly through a secure, authenticated connection.Documentation Index
Fetch the complete documentation index at: https://docs.withflex.com/llms.txt
Use this file to discover all available pages before exploring further.
What is MCP?
The Model Context Protocol is an open standard for connecting AI assistants to external tools and data. Once you wire up the Flex MCP, your AI assistant gets a set of typed tools —create_product, list_payment_intents, refund_capture, and so on — that mirror the Flex API. The assistant chooses which to call based on your prompt; you stay in control through tool-use approval prompts in the client.
What you can do with the Flex MCP
- Customer support — Look up an order or payment intent by ID in plain English, with the full context the API returns.
- Reconciliation — Pull yesterday’s captured payments, group by product, and compare against your fulfillment system.
- Refunds & disputes — Draft a dispute response from order details, or issue a refund after a customer support conversation.
- Subscription ops — Query active subscriptions, find upcoming renewals, or update billing details on a customer.
- Reporting — Ask for weekly capture volume, top products by revenue, or a list of new customers in a date range.
Authentication
The Flex MCP supports two ways to authenticate, and you should pick based on which client you’re using:| Auth mode | Best for | How it works |
|---|---|---|
| OAuth | Claude.ai, Claude Desktop, any client with a browser | Click “Connect”, sign in with your Flex account, approve access. No API key to manage. |
| API key | Claude Code and other headless agents | Paste an fsk_… (live) or fsk_test_… (test) API key in the client’s MCP config. |
Get started
Quick start
Connect Claude.ai, Claude Code, or another MCP client in under five minutes.
Tools & sample prompts
See the tools the Flex MCP exposes, with copy-paste prompts you can try.
Authentication
OAuth vs. API key, plus how test mode behaves in each.
Security best practices
Scope your keys, stay in test mode while experimenting, and rotate credentials.