Host your custom MCP Servers on Blaxel in a few clicks.
The server and MCP Inspector to test it (recommended)
bl serve --hotreload
.Just the server
server.ts
/ server.py
) available on a local endpoint.Run the following command to serve the MCP server:--hotreload
to get live changes.server.ts
/ server.py
) available on a global hosted endpoint. When deploying to Blaxel, you get a dedicated endpoint that enforces your deployment policies.
Run the following command to build and deploy the MCP server on Blaxel:
Example of tool calling via Blaxel SDK
blaxel.toml
file at the root of your directory.
For more information on MCP deployment settings, refer to the reference section down at the bottom of this guide.
bl deploy
), the new traffic routing depends on the --traffic
option. Without this option specified, Blaxel will automatically deploy the new revision with full traffic (100%) if the previous deployment was the latest revision. Otherwise, it will create the revision without deploying it (0% traffic).type
so Blaxel knows which kind of entity to deploy. Others are not mandatory but allow you to customize the deployment.
name
, workspace
, and type
fields are optional and serve as default values. Any bl command run in the folder will use these defaults rather than prompting you for input.[env]
section defines environment variables that the MCP server can access via the SDK. Note that these are NOT secrets.Define entrypoints in Python
[entrypoint]
section to specify how Blaxel is going to start your server.prod
: this is the command that will be used to serve your MCP serverdev
: same as prod in dev mode, it will be used with the command --hotreload
. Example:entrypoint
section is optional. If not specified, Blaxel will automatically detect in the MCP server’s content and configure your server’s startup settings.Define entrypoints in TypeScript
scripts
in the package.json
file at the root of the directory.scripts.start
: start the server locally through the TypeScript command, to avoid having to build the project when developing.scripts.build
: build the project. It is done automatically when deploying.scripts.prod
: start the server remotely on Blaxel from the dist folder, the project needs to be have been built before.scripts.dev
: same as start, but with hotreload. It’s useful when developing locally, each file change is reflected immediately.bl deploy
runs, it generates a YAML configuration manifest automatically and deploys it to Blaxel’s hosting infrastructure. You can also create custom manifest files in the .blaxel
folder and deploy them using the following command: