Deploy a FastMCP or MCP SDK server
This page is for developers who already have a Python server built with FastMCP, the MCP Python SDK, or another framework that serves MCP over HTTP, and want Arcade to host it. arcade deploy ships the server as it is: you don’t convert its tools or rebuild its authentication. Arcade runs it on Arcade Cloud or in a self-hosted Arcade installation, lists it on the project’s Servers page, and serves its tools through the project’s , under the same access controls as every other deployed server.
To change how a deployed server starts or what it receives, see the deploy configuration reference. For what the server can expect once it runs, see the runtime environment. When arcade deploy refuses a server, the error links to why a deploy is refused.
Support matrix
Frameworks
| Server | Support |
|---|---|
| FastMCP 4.1.8, the latest stable release | Tested. Deploys with no configuration. |
| Older FastMCP releases (2.x, 3.x) | Deploys by start command, outside the tested matrix. |
MCP Python SDK (mcp) servers | Deploys by start command, outside the tested matrix. |
| Other Python servers that serve MCP over streamable HTTP | Deploys with a command, outside the tested matrix. |
| Servers built with the Arcade MCP Framework | Supported. See Arcade Deploy. |
“Outside the tested matrix” means Arcade starts the server with the command it finds or you set, and hosts it the same way, but doesn’t test that framework release. Pin the FastMCP version your server depends on, so a deploy installs the release you tested locally.
The server must serve over streamable HTTP. Servers that serve MCP only over stdio aren’t supported. Servers that support only the stateless 2026-07-28 MCP protocol version aren’t supported yet.
Project shapes
The deployed server installs its dependencies from the first of these its contains:
| Project file | Installed with |
|---|---|
uv.lock | uv, at the locked versions, including [tool.uv.sources] |
requirements.txt | pip |
pyproject.toml dependencies | pip |
A fastmcp.json that declares an environment adds the dependencies it lists to the same environment. A with only a fastmcp.json installs those dependencies alone.
A ’s requires-python must allow Python 3.12, the version the runner uses. A Poetry project without a uv.lock or requirements.txt must export its requirements first, for example with poetry export -f requirements.txt -o requirements.txt. A project without a pyproject.toml keeps its deploy settings in an arcade.toml.
Every dependency must install from a manylinux wheel for Linux x86-64 or arm64, or be pure Python. Packages that publish only a source distribution with compiled code, such as mysqlclient, python-ldap, or psycopg2, aren’t supported, and arcade deploy refuses them before it uploads. Wheels that load system libraries, such as pyodbc, list the Debian packages that provide them in apt_packages. See Database drivers and system libraries.
Deployment targets
The same arcade deploy command deploys to Arcade Cloud and to a self-hosted Arcade installation that has Arcade Deploy turned on. The target is the Arcade you’re signed in to. From CI, set ARCADE_URL and ARCADE_API_KEY instead of signing in. On a self-hosted installation, deployed servers run in your own Kubernetes cluster, subject to the compute your platform operator allows.
Authentication
| Server authentication | Support |
|---|---|
| None | Supported. Arcade protects the server at the server level. |
| A static key or token the server checks | Supported. Declare it as api_key. |
An external authorization server: FastMCP’s RemoteAuthProvider or JWTVerifier | Supported. Each user signs in through Arcade. |
| An external authorization server without dynamic client registration, such as Microsoft Entra ID | Supported. Declare oauth_client. |
The server is its own authorization server, including FastMCP’s OAuthProxy-based providers (GitHubProvider, GoogleProvider, AzureProvider) and OAuthProvider | Not supported yet. arcade deploy refuses it. |
See Authentication and identity for how each mode works.
Deploy a server
Install the Arcade CLI and sign in
uv tool install arcade-mcp
arcade loginFor a self-hosted installation, run arcade login --url <your-arcade-url> instead.
Check the server listens on 127.0.0.1
A deployed server must listen on 127.0.0.1. Arcade reaches it through the runner in front of it, and a server listening on 0.0.0.0 or another address fails to start with a reason that names the address. FastMCP and the SDK listen on 127.0.0.1 by default, so remove any host="0.0.0.0" you set for running the server in a container.
You don’t set a port. Arcade passes HOST and PORT as hints, and finds the loopback port the server listens on whether or not it reads them.
Run arcade deploy
Run arcade deploy in the directory that holds the server’s pyproject.toml, requirements.txt, or fastmcp.json:
arcade deployarcade deploy finds the start command in this order:
- The
commandin the deploy settings. fastmcp runfor afastmcp.jsonin the directory.fastmcp runfor the file that creates a singleFastMCP(...)orMCPServer(...)object at module level.python <file>for an SDK script that callsrun("streamable-http").
When none of these applies, arcade deploy refuses the server and asks for a command.
Arcade looks for the endpoint at /mcp, then at /. A server mounted anywhere else needs path in its deploy settings.
arcade deploy checks the before it uploads anything. If it refuses the server, the error names the reason and links to why a deploy is refused.
Watch the server reach Running
The server appears on the ’s Servers page as Deploying while Arcade installs its dependencies and starts it, then Running. Its tools appear in the project’s catalog, ready to add to an MCP gateway.
If the server doesn’t become ready, the release reports Failed with a reason. See Readiness for what each reason means.
Sign in to an OAuth server
For a server that accepts tokens from an external authorization server, arcade deploy prints a sign-in URL once the release is Running. Arcade can’t list the server’s until someone signs in, so open the URL to authorize it. The Servers page also shows that the server needs authorization and offers the same sign-in.
To deploy a new version, change the code or settings and run arcade deploy again. The new release replaces the old one under the same name and gateway URL. A redeploy that changes nothing keeps the running release.
Authentication and identity
Arcade’s server-level protection and policy controls apply to every deployed server, whatever authentication it does itself. The server’s own authentication runs behind those controls; it doesn’t replace them.
No authentication
A server that checks no credential deploys as it is. Only calls through Arcade reach it, and they don’t carry the calling ’s identity.
A static key or token
A server that checks a fixed key, for example with FastMCP’s StaticTokenVerifier or its own middleware, keeps that check. Name the environment variable the server reads the key from, and the header it expects, in api_key. Arcade starts the server with the key in that variable and sends it on every call.
[tool.arcade.deploy]
api_key = { env = "API_KEY", header = "Authorization", scheme = "Bearer" }When the key is written in the server’s code, declare the variable as a secret too, so the deploy sends the key the server accepts. When you don’t supply it, the installation generates a key that only it and the server hold. Skip api_key for a server that checks no key.
Calls to an API-key server don’t carry the calling ’s identity. The key identifies Arcade, not the user.
An external authorization server
A server that verifies tokens issued by an external authorization server, with FastMCP’s RemoteAuthProvider or JWTVerifier, deploys with that configuration. Pass the issuer and audience it needs as environment values:
import os
from fastmcp import FastMCP
from fastmcp.server.auth import RemoteAuthProvider
from fastmcp.server.auth.providers.jwt import JWTVerifier
AUTHORIZATION_SERVER = os.environ["AUTHORIZATION_SERVER"]
PUBLIC_URL = os.environ["PUBLIC_URL"]
mcp = FastMCP(
"Expense Tools",
auth=RemoteAuthProvider(
token_verifier=JWTVerifier(
jwks_uri=f"{AUTHORIZATION_SERVER}/jwks.json",
issuer=AUTHORIZATION_SERVER,
audience=f"{PUBLIC_URL}/mcp",
),
authorization_servers=[AUTHORIZATION_SERVER],
base_url=PUBLIC_URL,
),
)Arcade reads the resource identifier from the server’s protected resource metadata once the release is Running, and requests each ’s token for that identifier. The identifier must be an https URL; a release whose server declares an http identifier fails with a reason that names it.
Before Arcade sends a to the authorization server, the sign-in page shows the identity the server claims and the authorization server it signs in through. The user continues or cancels there.
Each ’s calls carry the token that user authorized, so the server identifies the calling user from its own token, as it did before you deployed it.
Identity providers without dynamic client registration
Arcade registers itself as a client with authorization servers that support dynamic client registration. For an identity provider that doesn’t, such as Microsoft Entra ID:
- Register an app for Arcade in the identity provider.
- Declare its client ID and the variable that holds its secret in
oauth_client. - Run
arcade deploy. It prints the callback URL to register in the app. - Add that callback URL to the app’s redirect URIs.
Servers that run their own authorization server
FastMCP’s OAuthProxy-based providers (for example GitHubProvider, GoogleProvider, and AzureProvider) and OAuthProvider make the server its own authorization server. Arcade doesn’t support these yet, and arcade deploy refuses them. Change the server to verify tokens from your identity provider with RemoteAuthProvider or JWTVerifier.
Change a deployed server
The deploy settings define a deployed server. Its start command, path, setting, and OAuth client come only from the deploy settings, and can’t be edited in the Dashboard or the API. To change them, edit the settings and run arcade deploy again.
Environment values and secrets are the exception. You can edit them on the server’s page in the Dashboard, and the server restarts with the new values without a new bundle. The next arcade deploy sends the full set of environment values and secrets from the deploy settings and your environment, and replaces what the server had, including anything you changed in the Dashboard.
Next steps
Last updated on