Skip to content

Remote MCP Server

Sprites runs a hosted MCP server. Connect an MCP client to it and the client can control Sprites directly. It can create and manage them, run commands, inspect checkpoints, and change network policy through standard MCP tools.

Why use it? Your MCP client gets persistent, isolated Linux environments without you pasting API tokens into a prompt or running a local MCP bridge.

Use this URL when adding the connector:

https://sprites.dev/mcp

The connector uses OAuth. During setup, you sign in with your Fly.io account, choose the organization the client should use, and approve the level of Sprites access for that connector.

  1. Open your MCP client’s connector settings.
  2. Add a remote (or custom) MCP connector. Different clients label this differently. Look for “Remote MCP server”, “Custom connector”, or similar.
  3. Enter https://sprites.dev/mcp.
  4. Follow the browser authentication flow for Fly.io.
  5. Choose the Sprites organization the connector should use.
  6. Review the token restrictions on the consent screen and approve the connection.

The default token is restricted. The connector can only create Sprites whose names start with mcp-, and it can only create a limited number of them.

You can change both on the consent screen: pick a different name prefix, raise or lower the cap, or switch to full access if you want the connector to act on the whole organization without those guardrails.

MCP clients see Sprites as tools. There are two layers: organization-level tools that act across your Sprites, and Sprite-level tools that act inside a specific one.

ToolAccessWhat it does
list_spritesRead-onlyLists Sprites visible to the authenticated organization and token policy.
create_spriteDestructiveCreates a Sprite in the selected organization.
destroy_spriteDestructivePermanently destroys a Sprite.

The Sprite-level tools are generated from the public Sprite environment API. The exact list may change as new Sprite environment versions ship, but commonly includes:

CategoryExamples
ExecRun a command, list exec sessions, kill a session
CheckpointsCreate, list, inspect, and restore checkpoints
Network policyRead or update outbound network rules
ServicesList, create, start, stop, and inspect background services
Service logsRead recent service logs

Tools are annotated as either read-only or destructive. Your MCP client may ask for additional confirmation before using destructive tools, depending on its settings.

Sprites are isolated Linux environments. That isolation is useful for agent work, but MCP tools can still perform real actions in your organization.

  • destroy_sprite permanently deletes a Sprite and its data. There is no undo.
  • Command execution can modify files, install packages, start services, or use network access allowed by the Sprite policy.
  • Checkpoint restore rewinds a Sprite to a previous filesystem state. Any work done since that checkpoint is gone.
  • Network policy updates can allow or block outbound access from a Sprite.

For safer workflows, use a restricted OAuth token, pick a clear name prefix such as mcp-, and create a fresh Sprite for experiments.

Create a Sprite named mcp-demo, run python --version, and tell me what runtime is installed.
Create a checkpoint on mcp-demo before making changes. Then install ripgrep and verify rg --version.
List my Sprites with the mcp- prefix and summarize which ones are running.

Check that the connector URL is exactly:

https://sprites.dev/mcp

The MCP endpoint is not the REST API host. Do not use https://api.sprites.dev.

Sign out of Fly.io in your browser, sign in again, and retry the connector flow. If you belong to multiple organizations, make sure you select the one that should own Sprites created through MCP.

The Sprite may belong to a different organization, may be outside the token’s allowed name prefix, or may have been destroyed. Call list_sprites and verify the exact Sprite name.

Some tools require an existing Sprite name, service name, checkpoint ID, or exec session ID. List the relevant resource first, then retry the tool call with the exact identifier.

Cold Sprites can take a moment to wake. If the client receives a retry message, wait a few seconds and run the same tool again.

The MCP server wraps the same Sprite capabilities documented in the Sprites API reference. Use the API reference when you want endpoint schemas, SDK examples, or direct REST access instead of MCP.