Fly Io

com.pulsemcpPublished by pulsemcp.comv0.1.7Updated Oct 24, 2026

MCP server for managing Fly.io machines, apps, logs, and Docker images.

VerifiedSTDIODesktop onlyCloud & InfrastructureDeveloper Tools

Overview

AI-generated overview

An MCP server that lets an assistant manage Fly.io apps, machines, logs and Docker images through the Fly.io CLI.

What you can do
List, inspect, create and delete Fly.io applications, optionally scoped to one app name via FLY_IO_APP_NAME, which disables app management tools and blocks cross-app operations. List, inspect, create, update and delete machines, plus start, stop, restart, suspend and wait for state transitions. Read machine event logs and application logs with region and machine filtering. Execute arbitrary commands on running machines through the machine_exec tool. View the current image, list releases and update an app's image, and push, pull or check images in the Fly.io registry.
When to use it
Useful when you want an assistant to operate Fly.io deployments conversationally: inspecting apps and machines, scaling or restarting machines, debugging crashes from logs and events, updating images, or running commands inside a machine. App scoping helps when you want to restrict the assistant to a single application.
Requirements
Runs locally via npx, so Node.js 18+ is needed. Requires a Fly.io account and an API token supplied in FLY_IO_API_TOKEN. The Fly.io CLI (fly) must be installed; the Docker CLI is optional and only needed for registry tools. Optional variables: FLY_IO_APP_NAME, ENABLED_TOOLGROUPS, SKIP_HEALTH_CHECKS, DISABLE_DOCKER_CLI_TOOLS.
Before you install
The token grants control over your Fly.io account, and write and admin tools can create, update, restart, suspend and delete apps and machines. The machine_exec tool runs arbitrary commands on machines and is enabled by default; restrict it with ENABLED_TOOLGROUPS, for example to readonly. The server shells out to the fly CLI, so it can execute shell commands. Operations are subject to Fly.io API rate limits.

Installation

In SourceWeft

  1. Open Fly Io in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

Fly.io MCP Server

MCP server for managing Fly.io machines and applications. This server provides tools for CRUD operations on Fly.io apps and machines (VMs).

Highlights

  • Manage Fly.io applications and machines via MCP
  • Full CRUD operations for apps and machines
  • Start, stop, restart, and suspend machines
  • Get machine event logs for debugging
  • Wait for machine state transitions
  • Deploy Docker images to Fly.io
  • Retrieve application logs with region and machine filtering
  • Execute commands on running machines
  • Manage Docker images - view current image, list releases, update to new versions
  • Push/pull images to Fly.io registry - interact with registry.fly.io directly
  • Tool grouping for permission-based access control
  • Health checks for API credential and CLI tool validation

Capabilities

Tools

ToolPermissionsFeatureDescription
list_appsreadonly, write, adminappsList all Fly.io applications
get_appreadonly, write, adminappsGet details for a specific app
create_appwrite, adminappsCreate a new Fly.io application
delete_appadminappsDelete an application
list_machinesreadonly, write, adminmachinesList all machines in an app
get_machinereadonly, write, adminmachinesGet details for a specific machine
get_machine_eventsreadonly, write, adminmachinesGet event log for a machine (for debugging)
create_machinewrite, adminmachinesCreate a new machine with a Docker image
update_machinewrite, adminmachinesUpdate a machine's configuration
delete_machineadminmachinesDelete a machine
start_machinewrite, adminmachinesStart a stopped machine
stop_machinewrite, adminmachinesStop a running machine
restart_machinewrite, adminmachinesRestart a machine (stop then start)
suspend_machinewrite, adminmachinesSuspend a machine (save state to disk)
wait_machinewrite, adminmachinesWait for a machine to reach a state
get_logsreadonly, write, adminlogsGet application logs
machine_execwrite, adminsshExecute a command on a machine
show_imagereadonly, write, adminimagesShow current Docker image details
list_releasesreadonly, write, adminimagesList releases with image references
update_imagewrite, adminimagesUpdate app's image to latest or specific
push_new_fly_registry_imagewrite, adminregistryPush local image to Fly.io registry
pull_fly_registry_imagereadonly, write, adminregistryPull image from Fly.io registry
check_fly_registry_imagereadonly, write, adminregistryCheck if image exists in registry

Security Considerations

The machine_exec tool allows executing arbitrary commands on Fly.io machines. This is a powerful capability that should be used with caution:

  • Consider using ENABLED_TOOLGROUPS="readonly" or ENABLED_TOOLGROUPS="readonly,write" to disable administrative tools including machine_exec
  • The server requires the fly CLI to be installed, which means it has access to execute shell commands
  • All operations are authenticated via your FLY_IO_API_TOKEN

Tool Groups

Control which tools are available via the ENABLED_TOOLGROUPS environment variable. Two types of groups are supported and can be combined:

Permission Groups (what operations are allowed)
GroupDescription
readonlyRead-only operations (list, get)
writeWrite operations (create, update, start, stop)
adminAdministrative operations (delete apps/machines)
Feature Groups (what features are enabled)
GroupDescription
appsApp management tools (list_apps, get_app, create_app, delete_app)
machinesMachine management tools (list, get, create, update, delete, start, stop)
logsLog retrieval tools (get_logs)
sshRemote execution tools (machine_exec)
imagesImage management tools (show_image, list_releases, update_image)
registryDocker registry tools (push_new_fly_registry_image, pull_fly_registry_image, check_fly_registry_image) - requires Docker CLI

Examples:

  • ENABLED_TOOLGROUPS="readonly" - Only read operations (all features)
  • ENABLED_TOOLGROUPS="readonly,write" - Read and write, no delete (all features)
  • ENABLED_TOOLGROUPS="machines,logs" - All permissions, only machines and logs features
  • ENABLED_TOOLGROUPS="readonly,machines" - Read-only access to machines only
  • Not set - All tools enabled (default)

App Scoping

When FLY_IO_APP_NAME is set, the server operates in "scoped mode":

  • App management tools are disabled: list_apps, get_app, create_app, delete_app are not available
  • Machine tools are restricted: All machine operations only work on the configured app
  • app_name becomes optional: Machine tools will automatically use the scoped app
  • Cross-app operations are blocked: Attempting to operate on a different app returns an error

This is useful for:

  • Restricting access to a single application
  • Simplifying tool usage (no need to specify app_name)
  • Preventing accidental operations on wrong apps

Quick Start

Prerequisites

  1. A Fly.io account - Sign up at fly.io
  2. A Fly.io API token - Create one here
  3. Fly.io CLI (fly) installed - Install instructions
  4. Docker CLI installed (optional) - Required for registry tools (push_image, pull_image, check_registry_image)
  5. Node.js 18+ installed

Configuration

Environment Variables
VariableRequiredDescriptionDefault
FLY_IO_API_TOKENYesAPI token for Fly.io authentication-
FLY_IO_APP_NAMENoScope server to a single app (disables app management)-
ENABLED_TOOLGROUPSNoComma-separated tool groups to enableAll enabled
SKIP_HEALTH_CHECKSNoSkip API validation at startupfalse
DISABLE_DOCKER_CLI_TOOLSNoDisable Docker-based registry toolsfalse

Claude Desktop Configuration

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{  "mcpServers": {    "fly-io": {      "command": "npx",      "args": ["-y", "fly-io-mcp-server"],      "env": {        "FLY_IO_API_TOKEN": "fo_your_token_here"      }    }  }}

With app scoping (restricts to a single app):

json
{  "mcpServers": {    "fly-io": {      "command": "npx",      "args": ["-y", "fly-io-mcp-server"],      "env": {        "FLY_IO_API_TOKEN": "fo_your_token_here",        "FLY_IO_APP_NAME": "my-production-app"      }    }  }}

Restart Claude Desktop and you should be ready to go!

Usage Examples

List all apps

Use the list_apps tool to see all my Fly.io applications.

Create a new app and deploy a machine

Create a new Fly.io app called "my-web-app" in my personal organization,then deploy an nginx container to it with 512MB of RAM.

Scale machines

List the machines in my-web-app and create two more copiesin different regions (lax and lhr).

Update a deployment

Update all machines in my-web-app to use the nginx:1.25 image.

Debug a crashed machine

Get the events for machine abc123 in my-web-app to see why it crashed.

Restart a stuck machine

Restart machine abc123 in my-web-app to clear its state.

View application logs

Get the logs for my-web-app to see what's happening.

Execute a command on a machine

Run "ls -la /app" on machine abc123 in my-web-app to see the app files.

Check current image version

Show me the current Docker image details for my-web-app.

List deployment history

List the last 5 releases for my-web-app to see the deployment history.

Update to a new image

Update my-web-app to use the latest image version.

Push a local image to Fly.io registry

Push my local "my-app:v2" image to the Fly.io registry for my-web-app with tag "v2".

Check if an image exists in the registry

Check if the image with tag "v2" exists in the Fly.io registry for my-web-app.

Development

Setup

bash
# Clone the repositorygit clone https://github.com/pulsemcp/mcp-servers.gitcd mcp-servers/experimental/fly-io
# Install dependenciesnpm run install-all
# Buildnpm run build

Running in Development Mode

bash
npm run dev

Testing

bash
# Run functional tests in watch modenpm test
# Run tests oncenpm run test:run
# Run integration testsnpm run test:integration
# Run manual tests (requires .env with API token)npm run test:manual:setup  # First time onlynpm run test:manual

Linting and Formatting

bash
# Check for linting issues (run from repo root)npm run lint
# Auto-fix linting issuesnpm run lint:fix
# Format codenpm run format

Architecture

This server uses the Fly.io CLI (fly) for all operations instead of the REST API directly. This approach:

  • Ensures consistent behavior across all tools
  • Enables CLI-only features like logs and command execution
  • Simplifies authentication (uses FLY_API_TOKEN environment variable)

Rate Limits

The Fly.io API enforces rate limiting (applied by the CLI):

  • General: 1 request/second/action (burst: 3 req/s)
  • Get Machine: 5 req/s (burst: 10 req/s)
  • Delete App: 100/minute

Project Structure

fly-io/├── local/                 # Local server implementation│   ├── src/│   │   ├── index.ts      # Main entry point│   │   └── index.integration-with-mock.ts│   └── package.json├── shared/               # Shared business logic│   ├── src/│   │   ├── server.ts     # Server factory│   │   ├── tools.ts      # Tool registration│   │   ├── tools/        # Individual tool implementations│   │   ├── fly-io-client/  # Fly.io CLI client│   │   │   ├── fly-cli-client.ts   # CLI wrapper│   │   │   └── fly-io-client.ts    # Interface & exports│   │   ├── logging.ts│   │   └── types.ts│   └── package.json├── tests/│   ├── functional/       # Unit tests with mocks│   ├── integration/      # MCP protocol tests│   ├── manual/          # Real API tests│   └── mocks/├── scripts/├── package.json└── README.md

License

MIT

Source: experimental/fly-io/README.md at commit 0ed34de

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.7LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts