What is the Flexprice MCP server?
- An MCP server that exposes your Flexprice API as MCP tools so AI assistants can call your API without reading REST docs.
- Authenticated via API key (no OAuth). You provide the key in your MCP client config.
- Works with any MCP client that supports stdio: Cursor, VS Code, Claude Desktop, Claude Code, Gemini, Windsurf, and others.
- npx (recommended): One command, no install. Run
npx -y @flexprice/mcp-server startwith your API key and server URL. Ideal for Cursor, VS Code, Claude Code, Gemini, Windsurf, and most MCP clients. - Local or Docker: Clone the repo and run with Node, or use the official Docker image. Great for development, custom builds, or environments where you prefer not to use npx.
MCP server quick start
Cursor
One-click install
VS Code
One-click install
Claude Code
See instructions
Gemini
See instructions
Windsurf
See instructions
Other clients
See all options
Authenticating the MCP server
The MCP server uses your Flexprice API key only (no OAuth).- Where to get the key: From your Flexprice account (Dashboard or API keys settings).
- Where to set it: In the MCP config as
--api-key-auth YOUR_API_KEY(npx) or in theenvobject asAPI_KEY_APIKEYAUTH(local/Docker). Do not commit API keys; rotate if exposed.
MCP server security and credentials
- Do not commit API keys. Keep your key only in local MCP config or environment variables.
- Rotate keys if a key is ever committed or exposed.
- We recommend enabling human confirmation for write or destructive operations in your MCP client.
Installing the Flexprice MCP server
Installing in Cursor
Cursor
Click to install the MCP server configuration for Cursor.
- Open Cursor → Settings → Cursor Settings and go to the MCP tab.
- Click + Add new global MCP server (or open the MCP configuration file).
- Add the following to your
~/.cursor/mcp.jsonfile. ReplaceYOUR_API_KEYwith your Flexprice API key. See Cursor MCP documentation.
- Save and restart Cursor.
Installing in VS Code
VS Code
Click to install the MCP server configuration for VS Code.
- Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and run MCP: Add Server or MCP: Open User Configuration.
- Add the following to your MCP config. Replace
YOUR_API_KEYwith your Flexprice API key. See VS Code MCP documentation.
- Save and restart VS Code.
Installing in Claude Code
Claude Code
See instructions below.
- Run the following command to add the Flexprice MCP server. Replace
YOUR_API_KEYwith your Flexprice API key.
- Enter Claude Code:
claude - List MCP servers with
/mcpto confirm the server is connected. See Claude Code MCP documentation.
Installing in Gemini
Gemini
See instructions below.
- Run the following command. Replace
YOUR_API_KEYwith your Flexprice API key.
- Enter Gemini:
geminiand use/mcp listto verify. See Gemini CLI for details.
Installing in Windsurf
Windsurf
See instructions below.
- Open Windsurf Settings → Cascade → Manage MCPs → View raw config.
- Add the Flexprice server to the config (same JSON structure as Cursor). Replace
YOUR_API_KEYwith your Flexprice API key. See Windsurf MCP documentation.
Installing in other MCP clients
Other clients
See instructions below.
~/Library/Application Support/Claude/claude_desktop_config.json; Windows: %APPDATA%\Claude\claude_desktop_config.json.
Alternative: run from local repo (Node). If you cloned the Flexprice repo and run the server with node:
/path/to/mcp-server and env values as needed. Save the config and restart your client.
What can you ask the MCP server?
Once connected, you can ask your AI assistant to:- “List my customers” or “Get customer by id …”
- “Create a subscription for customer … on plan …”
- “Get plan by id …” or “List plans”
- “Get usage for subscription …”
Which tools the MCP server exposes
The server exposes the Flexprice API as MCP tools (one tool per OpenAPI operation). We recommend enabling human confirmation of tools and exercising caution when using the Flexprice MCP with other servers to avoid prompt injection attacks.
For the full list, see your MCP client’s tool list after connecting or the API Reference.
Troubleshooting the MCP server
Related MCP and API references
- API Reference: full list of Flexprice API operations (each maps to an MCP tool).

