Fly.io MCP server
54 operations0 webhooks
Manage Fly.io apps, Machines, volumes, secrets, certificates and IP addresses through Fly's public Machines REST API.
Try Fly.io with your agent
Connect Fly.io, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Fly.io on my account, then run one read-only example and show me the result.
Fly.io tools and triggers
Tools are what your agent can do in Fly.io through Corsair's MCP server. Triggers are the Fly.io events a routine can start from.
Machines
- CordonWrite
Cordon a Machine so Fly Proxy stops routing requests to it
machines.cordon
- CreateDestructive
Create (and by default start) a Machine. Fly bills it while it runs and for its root filesystem.
machines.create
- Create LeaseWrite
Take (or, with lease_nonce, refresh) an exclusive lease on a Machine
machines.createLease
- DeleteDestructive
Permanently destroy a Machine. It must be stopped unless force is true.
machines.delete
- Delete Metadata KeyDestructive
Delete one metadata key from a Machine
machines.deleteMetadataKey
- ExecDestructive
Run a command inside a running Machine and return its stdout, stderr and exit code
machines.exec
- GetRead-only
Get a Machine
machines.get
- Get LeaseRead-only
Get the lease currently held on a Machine
machines.getLease
- Get MetadataRead-only
Get a Machine's metadata key/value pairs
machines.getMetadata
- Get Metadata KeyRead-only
Get one metadata value of a Machine
machines.getMetadataKey
- ListRead-only
List an app's Machines (all of them; use listForOrg to page through an organization)
machines.list
- List EventsRead-only
List a Machine's recent events, newest first
machines.listEvents
- List For OrgRead-only
List the Machines of every app in an organization, page by page with next_cursor. Pass region: on 2026-11-16 Fly answered 400 "misfired replay" without it whenever the org had a Machine.
machines.listForOrg
- List ProcessesRead-only
List the processes running on a started Machine
machines.listProcesses
- List VersionsRead-only
List a Machine's configuration versions
machines.listVersions
- Release LeaseWrite
Release a lease you hold on a Machine
machines.releaseLease
- RestartWrite
Restart a Machine
machines.restart
- Set Metadata KeyWrite
Set one metadata key on a Machine
machines.setMetadataKey
- SignalWrite
Send a Unix signal to a Machine's main process
machines.signal
- StartDestructive
Start a stopped or suspended Machine. Fly bills CPU and memory while it runs.
machines.start
- StopWrite
Stop a Machine, optionally with a signal and timeout
machines.stop
- SuspendWrite
Suspend a Machine so the next start can resume it from a memory snapshot
machines.suspend
- UncordonWrite
Uncordon a Machine so Fly Proxy routes requests to it again
machines.uncordon
- UpdateDestructive
Replace a Machine's whole configuration (image, size, services…). A larger size bills more.
machines.update
- Update MetadataWrite
Set several metadata keys at once; an empty string removes a key. Keys not listed stay as they are.
machines.updateMetadata
- WaitRead-only
Wait (up to 60 seconds) for a Machine to reach a state, such as started or stopped
machines.wait
Volumes
- CreateDestructive
Create a volume, empty or restored from a snapshot or another volume. Fly bills it by size.
volumes.create
- Create SnapshotDestructive
Take a snapshot of a volume now. Fly bills snapshot storage beyond the free allowance.
volumes.createSnapshot
- DeleteDestructive
Permanently destroy a volume and its data
volumes.delete
- ExtendDestructive
Grow a volume to a larger size. Volumes cannot shrink, and Fly bills the new size.
volumes.extend
- GetRead-only
Get a volume
volumes.get
- ListRead-only
List an app's volumes (all of them; use listForOrg to page through an organization)
volumes.list
- List For OrgRead-only
List the volumes of every app in an organization, page by page with next_cursor
volumes.listForOrg
- List SnapshotsRead-only
List a volume's snapshots
volumes.listSnapshots
- UpdateDestructive
Change a volume's automatic snapshots and their retention. More snapshots kept means more billed snapshot storage.
volumes.update
Certificates
- CheckWrite
Look up a hostname's DNS now and re-validate its certificate
certificates.check
- DeleteDestructive
Remove a hostname and all its certificates from an app
certificates.delete
- GetRead-only
Get a certificate with the DNS records to create and its validation state
certificates.get
- ListRead-only
List an app's custom-domain certificates
certificates.list
- RequestDestructive
Add a hostname to an app and request Fly-issued (ACME) certificates for it. Fly bills certificates beyond the free allowance.
certificates.request
Secrets
- DeleteDestructive
Delete one secret. Running Machines keep the old values until they are updated with min_secrets_version set to the returned version.
secrets.delete
- GetRead-only
Get one secret's name and digest (not its value)
secrets.get
- ListRead-only
List an app's secrets: names and digests, never values
secrets.list
- SetDestructive
Create or overwrite one secret. An overwritten value cannot be recovered. Running Machines keep the old values until they are updated with min_secrets_version set to the returned version.
secrets.set
- UpdateDestructive
Set and delete several secrets at once: a string sets one, null deletes it. Running Machines keep the old values until they are updated with min_secrets_version set to the returned version.
secrets.update
Apps
- CreateWrite
Create an app in an organization. The app costs nothing until it has Machines or volumes.
apps.create
- DeleteDestructive
Permanently delete an app with its Machines, volumes, secrets, certificates and IP addresses
apps.delete
- GetRead-only
Get an app by name
apps.get
- ListRead-only
List the apps in an organization. Pass limit to page through results with next_cursor.
apps.list
Ip Assignments
- CreateDestructive
Assign an IP address to an app. Dedicated IPv4 and egress addresses are billed monthly; shared_v4, v6 and private_v6 are free.
ipAssignments.create
- DeleteDestructive
Release an IP address from an app. A released address cannot be got back.
ipAssignments.delete
- ListRead-only
List an app's IP addresses, including its shared IPv4 and egress addresses
ipAssignments.list
Platform
- RegionsRead-only
List Fly regions with their location, capacity and whether they need a paid plan
platform.regions
Tokens
- CurrentRead-only
Show which organization, apps and Machine the stored token is scoped to
tokens.current
Connect Fly.io to Claude, ChatGPT or Cursor
- 1
Connect Fly.io in Corsair
Add your Fly.io API key once in Corsair. Corsair stores the credential encrypted and makes the Fly.io API calls for your agent, so it never goes into a prompt or a config file. Connect Fly.io
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Fly.io. On a ChatGPT personal plan, connect Fly.io here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Customize → Connectors → Add custom connector, paste the address, then select Connect.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Fly.io's read and write operations run right away and its 19 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/fly, add the Fly.io plugin, and connect with an API key. Then call methods like corsair.fly.api.apps.create() from your app. Corsair keeps each tenant isolated.
Yes. Fly.io requires an API key from your Fly.io account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Fly.io, GitHub, Notion, Stripe, and the rest. Trigger Fly.io from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for manage Fly.io apps, Machines, volumes, secrets, certificates and IP addresses through Fly's public Machines REST API. Common builds include sync jobs, admin tooling, and agents that call Fly.io APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Fly.io API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/fly in the open repo. When Fly.io ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Fly.io data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Fly.io data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Fly.io on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 19 destructive Fly.io operations. You can change a link's mode at hub.corsair.dev/me.