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

Follow the steps below for your platform.
To install Blaxel CLI with Homebrew, make sure Homebrew is installed on your machine. Homebrew 6.0.0+ requires explicit trust for non-official taps, so use the fully qualified formula name below. We are currently in the process of supporting additional installers. Check out the cURL method down below for general installation.
Install Blaxel CLI by running the following command in a terminal:
Install Blaxel CLI by running the following command in a terminal (non-sudo alternatives below):
If you need a non-sudo alternative (it will ask you questions to configure):
If you need to install a specific version (e.g. v0.1.21):
Install Blaxel CLI by running the following command in a terminal (non-sudo alternatives below):
If you need a non-sudo alternative (it will ask you questions to configure):
If you need to install a specific version (e.g. v0.1.21):
Run the following command in PowerShell:
Alternatively, you can use Windows Subsystem for Linux (WSL) and follow the Linux installation instructions.
Once installed, open a terminal and log in to the Blaxel Console using this command:

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 July 15, 2026