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.
- Hosted by Flexprice. Add your region’s URL to your MCP client. There is nothing to install or run.
- Log in with your browser, or send an API key when your client or agent cannot log in.
- Works with any MCP client that supports remote servers: Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Antigravity, and others.
--scope, or for clients that only run local servers.
MCP server URLs
Use the URL for the region your account was created in, the one whose dashboard you log in to. The examples on this page use the US URL. India accounts use
https://mcp.in.flexprice.io/mcp instead.
MCP server quick start
Cursor
One-click install
VS Code
See instructions
Claude Code
See instructions
Antigravity
See instructions
Windsurf
See instructions
Other clients
See all options
Authenticating the MCP server
There are two ways to authenticate. Browser login (recommended). Add the URL with no credentials. The first time your client connects, it opens the Flexprice dashboard in your browser. Log in, pick the environment the assistant should work in, and click Authorize. Every tool then works in that environment only. To switch environment, remove the server from your client and add it again. API key. Send your key in theapi-key-auth header. The server then works in the key’s environment. Use this for clients without browser login and for agents that run unattended. Create keys in the dashboard under Developers. See Manage API keys.
Each region has its own accounts and keys. An India account cannot log in through the US URL, and a US key does not work on the India URL.
MCP server security and credentials
- With browser login, the assistant can do anything your user can do, in the environment you picked.
- To limit an agent, use an API key with a restricted role, or run the server yourself with
--scope read. - Do not commit API keys. Rotate a key if it 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 Claude Code
Add the server for your region:claude, type /mcp, select flexprice, and choose Authenticate. Your browser opens the Flexprice dashboard to log in and pick an environment. See Claude Code MCP documentation.
To use an API key instead, add a header:
Installing in Cursor
Install for US
One-click install with the US URL.
Install for India
One-click install with the India URL.
- Open Cursor → Settings → Cursor Settings and go to the MCP tab.
- Click + Add new global MCP server (or open
~/.cursor/mcp.json) and add:
- Save. Cursor asks you to log in: follow the prompt and log in to Flexprice in your browser. See Cursor MCP documentation.
headers object next to url:
Installing in VS Code
- Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and run MCP: Open User Configuration.
- Add the following. See VS Code MCP documentation.
- Start the server. VS Code asks you to log in to Flexprice in your browser.
"headers": { "api-key-auth": "YOUR_API_KEY" } next to url.
Installing in Antigravity
The Antigravity CLI (agy), IDE, and app read MCP servers from the same file.
- Open
~/.gemini/config/mcp_config.json, or create it if it does not exist. In the IDE, you can also click … at the top of the agent panel, select MCP Servers, then Manage MCP Servers → View raw config. - Add the server. See Antigravity MCP documentation.
- Log in. In the CLI, run
agy, type/mcp, select flexprice, and choose Authenticate. In the IDE or app, open Agent settings, go to the Customizations tab, and click Authenticate next to flexprice. Log in to Flexprice in your browser and pick an environment, then paste the code Antigravity shows back into Antigravity.
"headers": { "api-key-auth": "YOUR_API_KEY" } next to serverUrl.
Installing in Windsurf
- Open Windsurf Settings → Cascade → Manage MCPs → View raw config.
- Add the server. See Windsurf MCP documentation.
"headers": { "api-key-auth": "YOUR_API_KEY" } next to serverUrl.
Installing in other MCP clients
Any client that supports remote (Streamable HTTP) MCP servers can connect with your region’s URL. Clients that support MCP authorization open the browser login. Otherwise, send your key in theapi-key-auth header.
In Claude Desktop, add Flexprice as a custom connector:
- Open Settings → Connectors and click Add custom connector.
- Enter the name
Flexpriceand your region’s MCP server URL. - Click Connect and log in to Flexprice in the browser window that opens.
Running the MCP server yourself
Run the server on your own machine when you:- use a self-hosted Flexprice,
- want to limit tools with
--scopeor--mode dynamic, or - use a client that only runs local (stdio) servers.
~/Library/Application Support/Claude/claude_desktop_config.json; Windows: %APPDATA%\Claude\claude_desktop_config.json. Save the file and restart the client.
Limit the tools. Add "--scope", "read" to the arguments for read-only access. Repeat --scope to combine read, write, and delete. Without --scope, every tool is mounted. Add "--mode", "dynamic" to expose three discovery tools (list_tools, describe_tool_input, execute_tool) instead of one tool per operation.
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 environment are you working in?” (browser login only)
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.
With browser login, the server also adds
get-current-environment, which returns the environment the connection works in.
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).

