[Home](/index.md) › [MCP servers](/mcp.md) › Fly MCP

# Fly MCP

MCP server

- 93 callable tools
- 5 capabilities

[Installation guide](https://mcp.fly.io/guide.md)

## 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.

- [Fly](/tools/fly.md): Hardware-isolated app hosting

## Tools

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

### `get_fly_context`

Show this connection's current authorized resource bindings, per-resource scopes, and restrictions, including the Sprites name_prefix and max_sprites_total crea

### `list_organizations`

List current organization identities and roles under explicitly granted account-directory access.

### `get_organization`

Read the selected organization's identity, current role and launch eligibility.

### `get_launch_requirements`

Explain launch blockers and return browser handoffs for billing, SSO or provider terms.

### `submit_feedback`

Send the Fly.io team a report about a Fly.io platform bug, a documentation problem or a missing feature you hit while working.

### `list_apps`

List app identity, organization, status, and counts.

### `get_app`

Read an app's identity, organization, status, and counts.

### `delete_app`

Permanently delete the app.

### `list_machines`

List Machine identity and lifecycle summaries for an app.

### `get_machine`

Read a Machine's identity and lifecycle summary.

### `get_machine_configuration`

Read the full Machine configuration under explicit authorization.

### `create_machine`

Create a billable Machine from explicit configuration.

### `delete_machine`

Permanently destroy the Machine and its ephemeral root filesystem.

### `start_machine`

Start a stopped or suspended Machine using its existing configuration.

### `stop_machine`

Stop running work on the Machine.

### `restart_machine`

Restart the Machine and interrupt its running work.

### `suspend_machine`

Suspend running work on the Machine; this interrupts service until resumed.

### `signal_machine`

Send a Unix signal to the running Machine's main process.

### `cordon_machine`

Remove this Machine from proxy routing; existing application work can continue.

### `uncordon_machine`

Allow proxy routing to this Machine again.

### `list_machine_events`

List lifecycle events for the named Machine, including state transitions and their timestamps, to investigate starts, stops and failures.

### `list_machine_versions`

Read historical Machine configurations under explicit authorization.

### `list_machine_processes`

Read process details, which can include sensitive command arguments, under explicit authorization.

### `wait_for_machine_state`

Wait for the named Machine to reach the requested state, optionally for a specific version or instance.

### `get_machine_lease`

Read the active lease under an explicit management grant.

### `get_machine_metadata`

Read arbitrary Machine metadata under explicit authorization; values can be sensitive.

### `get_machine_metadata_key`

Read one arbitrary Machine metadata value under explicit authorization.

### `exec_machine_command`

Execute an explicit argv array on the Machine, without an implicit shell.

### `create_machine_lease`

Acquire a temporary Machine lease, or renew it with the existing lease_nonce.

### `release_machine_lease`

Release the Machine lease using its exact lease_nonce.

### `get_machine_memory`

Read the named Machine's current memory limit and available memory in MiB.

### `set_machine_memory_limit`

Set the named Machine's memory limit to limit_mb MiB.

### `reclaim_machine_memory`

Request reclamation of amount_mb MiB from the named Machine.

### `update_machine_metadata`

Set or remove metadata keys, without replacing other keys.

### `set_machine_metadata_key`

Create or replace the value of one metadata key on the named Machine, leaving other keys unchanged.

### `delete_machine_metadata_key`

Remove one metadata key from the named Machine, leaving other keys unchanged.

### `list_volumes`

List volumes, hiding deletion-state volumes by default.

### `create_volume`

Create a new billable persistent volume.

### `get_volume`

Read the named persistent volume's size, region, attachment and snapshot settings.

### `update_volume`

Update the named volume's automatic snapshot setting (auto_backup_enabled) and/or snapshot retention in days (snapshot_retention).

### `delete_volume`

Permanently destroy a persistent volume and its data.

### `extend_volume`

Increase the named persistent volume to size_gb GiB total, not by that amount.

### `list_volume_snapshots`

List snapshots for the named volume, including snapshot IDs, creation times and status.

### `create_volume_snapshot`

Schedule a volume snapshot.

### `list_app_secrets`

List secret names, digests and timestamps.

### `get_app_secret`

Read one secret's name, digest and timestamps.

### `update_app_secrets`

Set or remove several secrets.

### `set_app_secret`

Set a secret value. The result contains metadata only; secret values are not echoed.

### `delete_app_secret`

Delete an app secret.

### `list_app_ips`

List the named app's assigned IP addresses and their types for inspecting public and private networking.

### `list_app_certificates`

List TLS certificates configured for the named app, including hostnames and certificate status.

### `get_app_certificate`

Read TLS certificate details and validation status for one hostname on the named app.

### `list_postgres_clusters`

List Managed Postgres clusters for an organization.

### `get_postgres_plans`

List the Managed Postgres plans available when creating or forking a cluster in an organization, cheapest first.

### `get_postgres_cluster`

Get details of a specific Managed Postgres cluster, including its status and, once it is ready, its endpoints.

### `create_postgres_cluster`

Create a Managed Postgres cluster in the organization.

### `fork_postgres_cluster`

Fork 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_backups`

List all backups associated with a specific cluster.

### `create_postgres_backup`

Create a backup for a specific cluster.

### `list_postgres_databases`

List all databases within a specific cluster.

### `list_postgres_extensions`

List all extensions available within a specific database, indicating which are installed.

### `create_postgres_database`

Create a database within a specific cluster.

### `enable_postgres_extension`

Enable a Postgres extension within a specific database.

### `list_postgres_users`

List all Postgres users within a specific cluster.

### `list_postgres_active_queries`

List active queries in the supplied database.

### `list_postgres_slow_queries`

List the top 20 queries by cumulative total execution time, excluding the postgres database.

### `list_sprites`

List Sprites visible to this connection.

### `create_sprite`

Create a Sprite within this connection's grant restrictions.

### `destroy_sprite`

Destroy a sprite in the authenticated organization.

### `search_sprite_mentions`

Find up to 20 authorized Sprites by name prefix for composer mentions.

### `open_sprite_inspector`

Open a read-only Sprite Inspector showing environments, services, checkpoints and recent service logs.

### `get_sprite_info`

Read authorized Sprite metadata without waking it.

### `exec_list`

List active exec sessions.

### `exec`

Run a command on the named Sprite without a TTY and return its output; interactive commands that need a terminal are not supported.

### `exec_kill`

Kill an exec session by session ID.

### `file_read`

Read file contents from the sprite filesystem.

### `file_write`

Write up to 16 MiB of file contents to the sprite filesystem.

### `file_list`

List directory contents.

### `file_delete`

Delete a file or directory on the named Sprite.

### `file_rename`

Rename or move a file or directory on the named Sprite.

### `file_copy`

Copy a file or directory on the named Sprite.

### `service_list`

List all configured services and their current state.

### `service_get`

Get details of a specific service.

### `service_create`

Register a named service on the Sprite.

### `service_start`

Start a service. Returns streaming NDJSON with stdout/stderr.

### `service_stop`

Stop a running service.

### `service_logs`

Stream logs for a service.

### `checkpoint_create`

Create a new checkpoint of the current sprite state.

### `checkpoint_list`

List all checkpoints.

### `checkpoint_get`

Get details of a specific checkpoint.

### `checkpoint_restore`

Restore to a specific checkpoint.

### `policy_network_get`

Read the named Sprite's current network policy rules before preparing a replacement.

### `policy_network_update`

Replace the named Sprite's entire network policy with the supplied rules; this does not append rules.

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add Fly MCP to Claude Code

Run this in your terminal:

```sh
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.

### Add Fly MCP to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=fly&config=eyJ1cmwiOiJodHRwczovL21jcC5mbHkuaW8ifQ%3D%3D)

```json
{
  "mcpServers": {
    "fly": {
      "url": "https://mcp.fly.io"
    }
  }
}
```

### Add Fly MCP to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

```json
{
  "servers": {
    "fly": {
      "type": "http",
      "url": "https://mcp.fly.io"
    }
  }
}
```

### Add Fly MCP to Codex

Run this in your terminal:

```sh
codex mcp add fly --url https://mcp.fly.io
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.fly]
url = "https://mcp.fly.io"
```

If the server uses OAuth, sign in with `codex mcp login fly`.

### Add Fly MCP to Claude

Add it as a custom connector with this URL:

```
https://mcp.fly.io
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add Fly MCP to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://mcp.fly.io
```

[Read the installation guide](https://mcp.fly.io/guide.md)

## Related MCP servers

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

- [Fly docs MCP](/mcp/fly-docs.md)
- [Sprites MCP server](/mcp/sprites.md)

## Sources

Documentation and source code reviewed on 10 November 2026.

- [mcp.fly.io/guide.md](https://mcp.fly.io/guide.md)
- [mcp.fly.io](https://mcp.fly.io/)
