MCP server
FlashProxy has an MCP server, so AI assistants such as Claude Code and Cursor can work with your account: read usage, generate proxies and extend plans. It gives the same data as the API and uses the same API key.
Before you start
- Open API keys in the dashboard and create a key. It starts with fpk_live_ and is shown only once.
- Choose its permissions. Every key can read usage; generating proxies needs proxies and extending plans needs extend.
Keep the key secret. Anyone with it can do what its permissions allow. Revoke it in the dashboard if it leaks.
Claude Code
claude mcp add --transport http flashproxy https://flash-api-staging-iuv7.onrender.com/mcp \
--header "Authorization: Bearer fpk_live_YOUR_KEY"Then run /mcp in Claude Code: flashproxy should show as connected.
Cursor
Add the server to ~/.cursor/mcp.json:
{
"mcpServers": {
"flashproxy": {
"url": "https://flash-api-staging-iuv7.onrender.com/mcp",
"headers": {
"Authorization": "Bearer fpk_live_YOUR_KEY"
}
}
}
}Other MCP clients
Use the server URL https://flash-api-staging-iuv7.onrender.com/mcp with the streamable HTTP transport and send your key in the Authorization: Bearer header (X-API-Key also works).
Tools
| Tool | What it does | Permission |
|---|---|---|
| get_account | Account email and name | usage |
| get_api_key | The key in use and its permissions | usage |
| get_balance | Account balance | usage |
| list_plans | Your plans | usage |
| list_transactions | Payments and top-ups | usage |
| list_products | Products and prices | usage |
| get_usage | Usage of all active plans | usage |
| get_plan_usage | Usage of one plan | usage |
| get_plan_usage_history | Traffic over time for one plan | usage |
| get_plan_destinations | Sites a plan sent the most traffic to | usage |
| get_plan_errors | Failed connections by cause | usage |
| get_plan_ips | Fixed IP list of a Datacenter or Dedicated ISP plan | proxies |
| get_plan_locations | Countries a plan can target | usage |
| generate_proxies | Ready-to-use proxy lines for a rotating plan | proxies |
| quote_extension | Price of adding GB or days, without charging | usage |
| extend_plan | Adds GB or days and charges your balance | extend |
| quote_purchase | Price of a new plan, without charging | usage |
| purchase_plan | Buys a new plan and charges your balance | purchase |
| list_topup_currencies | Coins and networks a crypto top-up accepts | usage |
| create_topup | Opens a crypto payment that credits your balance | purchase |
| get_topup | Status of a crypto top-up | usage |
Extending a plan
extend_plan spends your account balance. The assistant should call quote_extension first and confirm the price with you. Every call carries an idempotency_key: if a call fails, retrying with the same key charges you only once.
Buying a plan
An assistant can buy without the dashboard. list_products shows what is sold, quote_purchase prices a choice and purchase_plan buys it from your account balance and returns the new plan_id. Like extend_plan, it carries an idempotency_key so a retry charges you only once. Dedicated and Unlimited Residential plans are bought on the website.
If the balance is too low, create_topup opens a crypto payment and returns the wallet address, the network and the exact coin amount to send. get_topup reports COMPLETED once the payment is confirmed and the balance is credited.
Limits and errors
Tool calls count toward the same limits as API requests: 60 a minute per key and 120 a minute per account. A missing or wrong key, or a key without the needed permission, comes back as a tool error with a code and a readable message. See the API reference for every code.