Develop a custom MCP server
Create your own custom MCP Servers.
You can develop custom MCP servers in TypeScript or Python and deploy them on Blaxel by integrating a few lines of the Blaxel SDK and leveraging our other developer tools (Blaxel CLI, GitHub action, etc.).
Quickstart
You can quickly initialize a new MCP server from scratch by using CLI command bl create-mcp-server
. This will create a pre-scaffolded local repo where your entire code can be added.
You can test it by running the following command which launches both the server and a web application (MCP Inspector, managed by MCP) locally for testing the server’s capabilities during development.
The web application is accessible at: http://127.0.0.1:6274. Alternatively, you can just simply serve the server locally by running bl serve --hotreload
.
Develop the MCP server logic (TypeScript)
If you open the src/server.ts
file, you’ll see the complete server implementation. It follows the MCP server standard closely, with the only difference being our use of Blaxel transport for efficient platform serving.
The main component you’ll need to modify is the tool definition:
Remember that the name
, description
, and parameters are crucial—they help your agent understand how your tool functions.
Develop the MCP server logic (Python)
If you open the src/server.py
file, you’ll see the complete server implementation. It follows the MCP server standard closely, with the only difference being our use of Blaxel transport for efficient platform serving.
The main component you’ll need to modify is the tool definition:
Deploy your MCP server
Just run bl deploy
in the folder of your project, as explained in this guide.
Deploy your MCP server
Read our complete guide for deploying your custom MCP server on Blaxel.
Was this page helpful?