Skip to content

Fly MCP

  • MCP server
  • 93 callable tools
  • 5 capabilities
Installation guide

Overview

Fly.io's remote MCP server for working with Fly apps, Machines, volumes, app secrets, Managed Postgres and Sprites from an AI client. It connects over browser sign-in at https://mcp.fly.io.

Capabilities:

  • List and inspect Fly apps, Machines, volumes and TLS certificates
  • Start, stop, restart and configure Fly Machines
  • Create, inspect and manage Sprites, including their files, commands, services and checkpoints
  • Create and manage Managed Postgres clusters, databases, backups and extensions
  • Set and remove app secrets without reading their values

Works with

The products your agent can work with through this server.

Tools

The callable functions your agent uses to work with this server.

Fly MCP tools
ToolWhat it does
get_fly_contextShow this connection's current authorized resource bindings, per-resource scopes, and restrictions, including the Sprites name_prefix and max_sprites_total crea
list_organizationsList current organization identities and roles under explicitly granted account-directory access.
get_organizationRead the selected organization's identity, current role and launch eligibility.
get_launch_requirementsExplain launch blockers and return browser handoffs for billing, SSO or provider terms.
submit_feedbackSend the Fly.io team a report about a Fly.io platform bug, a documentation problem or a missing feature you hit while working.
list_appsList app identity, organization, status, and counts.
get_appRead an app's identity, organization, status, and counts.
delete_appPermanently delete the app.
list_machinesList Machine identity and lifecycle summaries for an app.
get_machineRead a Machine's identity and lifecycle summary.
get_machine_configurationRead the full Machine configuration under explicit authorization.
create_machineCreate a billable Machine from explicit configuration.
delete_machinePermanently destroy the Machine and its ephemeral root filesystem.
start_machineStart a stopped or suspended Machine using its existing configuration.
stop_machineStop running work on the Machine.
restart_machineRestart the Machine and interrupt its running work.
suspend_machineSuspend running work on the Machine; this interrupts service until resumed.
signal_machineSend a Unix signal to the running Machine's main process.
cordon_machineRemove this Machine from proxy routing; existing application work can continue.
uncordon_machineAllow proxy routing to this Machine again.
list_machine_eventsList lifecycle events for the named Machine, including state transitions and their timestamps, to investigate starts, stops and failures.
list_machine_versionsRead historical Machine configurations under explicit authorization.
list_machine_processesRead process details, which can include sensitive command arguments, under explicit authorization.
wait_for_machine_stateWait for the named Machine to reach the requested state, optionally for a specific version or instance.
get_machine_leaseRead the active lease under an explicit management grant.
get_machine_metadataRead arbitrary Machine metadata under explicit authorization; values can be sensitive.
get_machine_metadata_keyRead one arbitrary Machine metadata value under explicit authorization.
exec_machine_commandExecute an explicit argv array on the Machine, without an implicit shell.
create_machine_leaseAcquire a temporary Machine lease, or renew it with the existing lease_nonce.
release_machine_leaseRelease the Machine lease using its exact lease_nonce.
get_machine_memoryRead the named Machine's current memory limit and available memory in MiB.
set_machine_memory_limitSet the named Machine's memory limit to limit_mb MiB.
reclaim_machine_memoryRequest reclamation of amount_mb MiB from the named Machine.
update_machine_metadataSet or remove metadata keys, without replacing other keys.
set_machine_metadata_keyCreate or replace the value of one metadata key on the named Machine, leaving other keys unchanged.
delete_machine_metadata_keyRemove one metadata key from the named Machine, leaving other keys unchanged.
list_volumesList volumes, hiding deletion-state volumes by default.
create_volumeCreate a new billable persistent volume.
get_volumeRead the named persistent volume's size, region, attachment and snapshot settings.
update_volumeUpdate the named volume's automatic snapshot setting (auto_backup_enabled) and/or snapshot retention in days (snapshot_retention).
delete_volumePermanently destroy a persistent volume and its data.
extend_volumeIncrease the named persistent volume to size_gb GiB total, not by that amount.
list_volume_snapshotsList snapshots for the named volume, including snapshot IDs, creation times and status.
create_volume_snapshotSchedule a volume snapshot.
list_app_secretsList secret names, digests and timestamps.
get_app_secretRead one secret's name, digest and timestamps.
update_app_secretsSet or remove several secrets.
set_app_secretSet a secret value. The result contains metadata only; secret values are not echoed.
delete_app_secretDelete an app secret.
list_app_ipsList the named app's assigned IP addresses and their types for inspecting public and private networking.
list_app_certificatesList TLS certificates configured for the named app, including hostnames and certificate status.
get_app_certificateRead TLS certificate details and validation status for one hostname on the named app.
list_postgres_clustersList Managed Postgres clusters for an organization.
get_postgres_plansList the Managed Postgres plans available when creating or forking a cluster in an organization, cheapest first.
get_postgres_clusterGet details of a specific Managed Postgres cluster, including its status and, once it is ready, its endpoints.
create_postgres_clusterCreate a Managed Postgres cluster in the organization.
fork_postgres_clusterFork a ready Managed Postgres cluster into a new cluster that inherits the source's settings, on the source's plan unless plan is given.
list_postgres_backupsList all backups associated with a specific cluster.
create_postgres_backupCreate a backup for a specific cluster.
list_postgres_databasesList all databases within a specific cluster.
list_postgres_extensionsList all extensions available within a specific database, indicating which are installed.
create_postgres_databaseCreate a database within a specific cluster.
enable_postgres_extensionEnable a Postgres extension within a specific database.
list_postgres_usersList all Postgres users within a specific cluster.
list_postgres_active_queriesList active queries in the supplied database.
list_postgres_slow_queriesList the top 20 queries by cumulative total execution time, excluding the postgres database.
list_spritesList Sprites visible to this connection.
create_spriteCreate a Sprite within this connection's grant restrictions.
destroy_spriteDestroy a sprite in the authenticated organization.
search_sprite_mentionsFind up to 20 authorized Sprites by name prefix for composer mentions.
open_sprite_inspectorOpen a read-only Sprite Inspector showing environments, services, checkpoints and recent service logs.
get_sprite_infoRead authorized Sprite metadata without waking it.
exec_listList active exec sessions.
execRun a command on the named Sprite without a TTY and return its output; interactive commands that need a terminal are not supported.
exec_killKill an exec session by session ID.
file_readRead file contents from the sprite filesystem.
file_writeWrite up to 16 MiB of file contents to the sprite filesystem.
file_listList directory contents.
file_deleteDelete a file or directory on the named Sprite.
file_renameRename or move a file or directory on the named Sprite.
file_copyCopy a file or directory on the named Sprite.
service_listList all configured services and their current state.
service_getGet details of a specific service.
service_createRegister a named service on the Sprite.
service_startStart a service. Returns streaming NDJSON with stdout/stderr.
service_stopStop a running service.
service_logsStream logs for a service.
checkpoint_createCreate a new checkpoint of the current sprite state.
checkpoint_listList all checkpoints.
checkpoint_getGet details of a specific checkpoint.
checkpoint_restoreRestore to a specific checkpoint.
policy_network_getRead the named Sprite's current network policy rules before preparing a replacement.
policy_network_updateReplace the named Sprite's entire network policy with the supplied rules; this does not append rules.

Installation

Add Fly MCP to Claude Code

Run this in your terminal:

claude mcp add --transport http fly https://mcp.fly.io

If the server asks you to sign in, run /mcp in Claude Code and follow the browser prompt.

Other servers for the same products, or from the same vendor.

Sources

Documentation and source code reviewed on 10 November 2026.

View sources