Skip to main content
MCP (Model Context Protocol) servers provide tools (individual capabilities for accessing specific APIs or databases) that can be used by AI agents. These servers can be hosted on Blaxel’s computing platform and used by AI agents via each server’s global endpoint. This quickstart walks you through the process of adapting an existing stdio-based MCP server for deployment on Blaxel using the streamable HTTP transport.

Install the Blaxel CLI

Run the installer in a terminal:
The installer checks the Blaxel CLI (bl) against the release checksums, installs it, and adds it to your PATH. On macOS and Linux, it also installs completions for your current shell if you use zsh, bash, or fish. On Windows, configure PowerShell completions separately. It then runs bl setup, which shows what it found and installs it when you press Enter: the Blaxel skills and MCP servers for the coding agents on your machine (Claude Code, Codex, Cursor and others), then the browser login. Run it again at any time to add what is missing.
Homebrew 6.0.0+ requires explicit trust for non-official taps, so use the fully qualified formula name.
On macOS and Linux, set these variables for sh:For example, to install a specific release for all users:
Under sudo, the installer still sets up your own shell, coding agents and login. In CI, it installs the CLI only and leaves the shell configuration and coding agents alone. On Windows, run $env:BL_INSTALL_SETUP = "false" before the installer to install the CLI only.
The installer logs you in. To log in again later, open a terminal and run:

Get the example project

This quickstart adapts the simple stdio-based MCP weather server from the official Model Context Protocol GitHub repository.
Clone the repository and change to the project working directory:

Adapt the server

If your MCP server is already configured to use streamable HTTP, you may skip this step.
Blaxel uses streamable HTTP as the transport layer for MCP servers deployed on its infrastructure. If your MCP server uses stdio (as in this example), you must adapt it to use streamable HTTP instead. The host name and port for the server to bind to are automatically injected by Blaxel during deployment, as HOST and PORT environment variables.
The changes shown below are illustrative only and based on the Blaxel MCP server template for TypeScript.
Add Express to handle HTTP requests and responses:
Here is an example of how you could adapt the existing src/server.ts file for a streamable HTTP server.

Create the deployment configuration

Blaxel looks for a blaxel.toml file to configure the deployment of the MCP server on Blaxel. This file is not mandatory; if the file is not found or a required option is not set, you will be prompted for the information during deployment. Create a new blaxel.toml file with the following content:
Blaxel also automatically detects a Dockerfile at the root of the project and uses it to create and deploy a container image of your MCP server. This is a very useful feature that allows you to completely customize the deployment environment for your MCP server, including installing additional system dependencies and using specific versions of libraries or tools. Create a new Dockerfile with the following content:

Deploy the MCP server on Blaxel

Deploy the server on Blaxel by running the following command:
Blaxel will handle the build and deployment, producing an HTTPS endpoint on Global Agentics Network. The server endpoint looks like this:
You can now connect to this endpoint from any MCP-aware client.
Last modified on October 5, 2026