Fly.io MCP server for AI agents

Live

OAUTH 2.1

CLOUD INFRASTRUCTURE

Developer Tools

Fly.io MCP gives your agent your Fly.io organization: manage Sprites, run commands and edit files on them, checkpoint and restore state, and manage Managed Postgres clusters, databases, and backups.

  • Per-user credentials: each call uses the actual user's token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Fly.io MCP
agent · Acme Q3
Run
Which queries are slowest in my orders database?
S
flymcp_list_postgres_slow_queries
391ms
Cloud ops agent
Listed the 20 queries with the highest cumulative execution time in that database, heaviest first.
Sources: Fly.io Managed Postgres, 1 database
flymcp
20 queries
18:29
Message Claude...

Tools your cloud infrastructure agent reaches for on Fly.io, scoped per user.

CALL ANY TOOL
47 tools for cloud infrastructure in Fly.io: list and manage Sprites, run commands and edit files, checkpoint state, and manage Managed Postgres clusters and backups.
flymcp_checkpoint_create
Create checkpoint
Create a new checkpoint of the current sprite state. Returns streaming NDJSON progress.
Parameters
Name
Type
Required
Description
sprite
string
Required
Name of the sprite to target.
comment
string
Optional
No description.
sprite_id
string
Optional
Expected Sprite ID from a mention or Inspector. Rejects a deleted and recreated Sprite with the same name.
flymcp_checkpoint_get
Get checkpoint
flymcp_checkpoint_list
List checkpoint
flymcp_checkpoint_restore
Restore checkpoint
flymcp_create_postgres_backup
Create postgres backup
flymcp_create_postgres_database
Create postgres database
flymcp_create_sprite
Create sprite
flymcp_destroy_sprite
Destroy sprite
flymcp_exec
Exec
flymcp_exec_list
List exec
flymcp_file_copy
Copy file
flymcp_file_delete
Delete file
flymcp_file_read
Read file
flymcp_file_rename
File rename
flymcp_fork_postgres_cluster
Fork postgres cluster
flymcp_get_credit_balance
Get credit balance
flymcp_get_launch_requirements
Get launch requirements
flymcp_get_postgres_cluster
Get postgres cluster
flymcp_get_postgres_plans
Get postgres plans
flymcp_list_organizations
List organizations
flymcp_list_postgres_backups
List postgres backups
flymcp_list_postgres_databases
List postgres databases
flymcp_list_postgres_slow_queries
List postgres slow queries
flymcp_list_sprites
List sprites
flymcp_policy_network_get
Get policy network
flymcp_policy_network_update
Update policy network
flymcp_search_sprite_mentions
Search sprite mentions
flymcp_service_logs
Service logs
flymcp_service_start
Start service
flymcp_service_stop
Stop service

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Fly.io tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["flymcp"], toolNames: [
    "flymcp_list_sprites",
    "flymcp_service_list",
    "flymcp_service_logs"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List my Sprites, show the services running on the first one, and pull the logs for the busiest service" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["flymcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List my Sprites, show the services running on the first one, and pull the logs for the busiest service" }],
  tools,
});

// Execute the tool call with the user's vaulted Fly.io OAuth token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["flymcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List my Sprites, show the services running on the first one, and pull the logs for the busiest service" }],
  tools,
});

// Tool call runs with the user's vaulted Fly.io OAuth token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["flymcp"] }, pageSize: 100,
});

const agent = new Agent({
  name: "cloud_ops_agent",
  model: "gemini-2.5-pro",
  instruction: "Fly.io tools scoped to this user",
  tools,
});

await agent.run("List my Sprites, show the services running on the first one, and pull the logs for the busiest service");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Fly.io MCP tool. Click to copy, paste into your agent, done.
Sprites
Copy the prompt
Copied
List the Sprites I can access.
Copy the prompt
Copied
Run this command on the build Sprite and show the output.
Copy the prompt
Copied
Create a checkpoint of this Sprite.
Managed Postgres
Copy the prompt
Copied
List my Managed Postgres clusters.
Copy the prompt
Copied
Show the active queries in this database.
Copy the prompt
Copied
Create a backup of this cluster.
Services and organization
Copy the prompt
Copied
Show the logs for this service.
Copy the prompt
Copied
Show my organization's credit balance.
Copy the prompt
Copied
Read the network policy for this Sprite.
SEE HOW AUTH WORKS
Each user signs in to Fly.io once, and Scalekit stores and refreshes their tokens. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Fly.io MCP
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Fly.io MCP
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Fly.io MCP
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Fly.io MCP
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Engineering Teams
Engineering standup agent
Pulls commits from GitHub and GitLab, tracks issue movement in Jira, and posts a per-engineer standup brief to Slack. Each engineer's activity is read on their own delegated OAuth.
Test other agents
See the same per-user auth pattern across other developer tools connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
ENGINEERING
Engineering standup agent
Pull commits from GitHub and GitLab, track Jira issue movement, and post a per-engineer standup brief to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Fly.io token looks fine in a demo. In production every Sprite and Postgres change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Fly.io today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Fly.io as the user or through a shared service account?
As the user. Each user signs in to Fly.io once, and Scalekit stores and refreshes their tokens. Every Sprite and Postgres change in your audit trail is attributed to that user, not a shared service account.
Where is the Fly.io OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Fly.io?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without flymcp_destroy_sprite, which destroys a Sprite, and flymcp_file_delete, which deletes a file or directory on one. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Fly.io access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent run commands on a Sprite?
Yes, if you expose flymcp_exec, which runs a command on the named Sprite without a TTY and returns its output. Pair it with flymcp_file_read and flymcp_file_write for files, or leave the exec and file tools out to keep the agent to read tools such as flymcp_list_sprites and flymcp_service_logs.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""flymcp"": {
""url"": ""https://mcp.scalekit.com/flymcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.flymcp]
url = ""https://mcp.scalekit.com/flymcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""flymcp"": {
""url"": ""https://mcp.scalekit.com/flymcp"",
""type"": ""http""
}
}
}