The runtime environment for deployed MCP servers
This page is for developers whose FastMCP, SDK, or other Python runs on Arcade Deploy. It covers the environment the server runs in: the Python version, how its dependencies install, which system libraries it can load, its filesystem, and its time limits. It also explains each readiness status and failure reason, so you can tell why a release didn’t reach Running.
Python and dependencies
Deployed servers run on Python 3.12 on Linux x86-64 or arm64 (glibc, manylinux_2_41 and older). The server’s requires-python must allow 3.12.
The runner installs the server’s dependencies from the first of uv.lock, requirements.txt, or the pyproject.toml dependencies that the contains. A uv.lock installs with uv at its locked versions; the others install with pip. A fastmcp.json adds the dependencies its environment declares.
Any virtual environment in the directory is discarded. The runner builds the server’s own.
Network access during install
Installs download packages from PyPI, so the installation must allow outbound access to pypi.org and files.pythonhosted.org. Private package indexes and installs without internet access aren’t supported yet.
Database drivers and system libraries
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 aren’t supported.
Most database drivers publish manylinux wheels and install with no extra steps, for example psycopg2-binary, psycopg[binary], asyncpg, PyMySQL, mysql-connector-python, oracledb in its default thin mode, pymongo, redis, and snowflake-connector-python.
Before it uploads anything, arcade deploy refuses a source-only package, naming it. Use a package that publishes wheels instead. See A dependency publishes only a source distribution.
| Source-only package | Use instead |
|---|---|
psycopg2 | psycopg2-binary, or psycopg[binary] |
mysqlclient | PyMySQL or mysql-connector-python |
python-ldap | ldap3 |
System libraries
Some wheels load system libraries they don’t include. pyodbc, for example, needs the unixODBC driver manager. The runner image doesn’t include unixODBC, libaio, or libgssapi, so list the Debian packages that provide such libraries in apt_packages:
[tool.arcade.deploy]
apt_packages = ["unixodbc"]The runner installs them from a pinned Debian trixie snapshot into the server’s environment and puts them on the library search path. Before it uploads, arcade deploy refuses a server whose packages need a library that neither their wheels nor apt_packages provide, naming the library and the Debian package to add. See A dependency needs a system library.
Drivers that come from a database vendor rather than from Debian aren’t supported yet: Microsoft’s ODBC driver (msodbcsql18), Oracle Instant Client, and oracledb thick mode, which loads Instant Client.
Filesystem
The server’s files, including the directory, are read-only. The server can write to:
HOME, a writable directory that FastMCP also uses forFASTMCP_HOMETMPDIR, a writable temporary directory
Both are limited in size and are emptied when the server restarts or moves to a new instance. Keep lasting state in an external store, such as a database.
Tool call time limits
On Arcade Cloud, a call times out after roughly 30 to 60 seconds, as for every deployed server. Return a result before then, or start long-running work elsewhere and return a reference to it.
Readiness
A release moves through these statuses while it starts:
| Status | Meaning |
|---|---|
installing | The runner is installing the server’s dependencies. |
starting | The dependencies are installed and the runner has started the server; it’s waiting for the server to answer MCP. |
ready | The server answers MCP. The Servers page shows Running. |
unhealthy | The server stopped answering after it was ready, or exited and is restarting. |
failed | The server can’t become ready. The reason says why. |
The Servers page shows Deploying while a release is installing or starting.
A server that fails after it was running, for example because a database it needs is down, is restarted until the cause clears. A server that keeps exiting as it starts is reported as failed with its last error.
Failure reasons
| Reason | What to do |
|---|---|
| The installer’s error, naming the package that didn’t install | Fix the dependency. Check the package and version exist on PyPI and publish a manylinux wheel for Linux x86-64 or arm64. See Database drivers and system libraries. |
Installing the server's dependencies did not finish in time. | Reduce the dependencies, or lock them in a uv.lock so the install resolves less, and deploy again. |
The server could not be started. | The start command couldn’t run. Check command in the deploy settings names a program the project installs. |
The server exited N times without staying up; the last run ended with exit code N., followed by the server’s last output | Read the output. A ModuleNotFoundError names a dependency the project doesn’t declare; a KeyError on an environment variable names a value or secret it doesn’t declare. Exit code 137 means the server was killed, most often for running out of memory. |
The server listens on <address>. It must run on 127.0.0.1. | Make the server listen on 127.0.0.1 instead of 0.0.0.0 or another address. |
The server did not become ready in time, with what the health check heard | The server started but didn’t answer MCP at /mcp or /. If it serves MCP on another path, set path. If it’s slow to start, move slow work out of startup. |
| A reason that asks for the path the server serves MCP on | Set path to the path the server answers MCP on. |
A reason that names the server’s http:// resource identifier | An OAuth server must identify as an https URL. Set the public URL the server reports in its protected resource metadata to an https address. |
The server's installed dependencies could not be fetched from the artifact store, so it was not started. The next start tries again. | A temporary platform problem. The runner retries on its own. |
To deploy a fix, run arcade deploy again. A deploy after a failed release always rolls the server out again, even when nothing changed.
Last updated on
Configuration reference
Every setting arcade deploy reads for a FastMCP, MCP SDK, or other Python MCP server, and the environment and secret names the runtime reserves
Refusal reasons
Each reason arcade deploy refuses a FastMCP, MCP SDK, or other Python MCP server before uploading it, and what to do instead