Skip to content

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.

Every deployment runs through the same steps:

  1. 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.
  2. Install dependencies. The dependencies required by your project are installed.
  3. Find the entry point. MCP Express looks for src/mcp.ts. src/mcp.js and src/mcp.mjs also work.
  4. Bundle and detect. Your code is bundled, and your tools, prompts and skills are detected.
  5. Publish. The build is published and MCP Express starts serving your server.

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).

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, TZ and 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.