How Deployment Works
You can deploy an MCP server in two ways:
- Upload a zip of your project.
- Connect a GitHub repository and pick a branch.
With GitHub, MCP Express downloads the latest commit of the selected branch and deploys it.
The deployment steps
Section titled “The deployment steps”Every deployment runs through the same steps:
- Unpack and locate the project. If you uploaded a zip, it is unpacked first. MCP Express then finds the project, which is the folder containing your
package.json. - Install dependencies. The dependencies required by your project are installed.
- Find the entry point. MCP Express looks for
src/mcp.ts.src/mcp.jsandsrc/mcp.mjsalso work. - Bundle and detect. Your code is bundled, and your tools, prompts and skills are detected.
- Publish. The build is published and MCP Express starts serving your server.
What “publish” means
Section titled “What “publish” means”Publishing happens after the build. It takes the finished build and moves it to internal storage. Your server is then served from there.
Your code is loaded on demand. It is not kept running between requests. It is started when needed (see Isolation and lifecycle).
Isolation and lifecycle
Section titled “Isolation and lifecycle”Each server runs in its own sandboxed environment:
- Separate process. Every server runs in its own process with its own working directory.
- Minimal environment. The process only receives your server’s environment secrets plus a few basics:
PATH,TZand proxy settings. Nothing else from the host is exposed. - Idle shutdown. Idle runners are stopped after 5 minutes.
- Automatic restart. The next call after a shutdown starts a new process.