Install the Blaxel CLI
Follow the steps below for your platform.Install on Mac
Install on Mac
Install Blaxel CLI by running the following command in a terminal:
Install on Linux
Install on Linux
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 with cURL
Install with cURL
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 on Windows
Install on Windows
Run the following command in PowerShell:Alternatively, you can use Windows Subsystem for Linux (WSL) and follow the Linux installation instructions.
Get the example project
This quickstart adapts the simple stdio-based MCP weather server from the official Model Context Protocol GitHub repository.- TypeScript
- Python
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.
HOST and PORT environment variables.
- TypeScript
- Python
The changes shown below are illustrative only and based on the Blaxel MCP server template for TypeScript.
src/server.ts file for a streamable HTTP server.Create the deployment configuration
Blaxel looks for ablaxel.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:
Dockerfile with the following content:
- TypeScript
- Python
