MCP servers (called functions in Blaxel API) are lightweight programs that expose specific capabilities (accessing databases, APIs, local files, etc.) through the standardized Model Context Protocol (MCP).

MCP servers are designed to equip agents with tools to interact with the world.

Essentials

MCP Server Hosting is a serverless computing service that allows you to host remote MCP servers without having to manage infrastructure. It gives you full observability and tracing out of the box.

You only provide the MCP server code, and Blaxel automates its hosting, execution and scaling - providing you with one single global endpoint to access the MCP server. The deployed server implements Blaxel’s customized WebSockets transport layer.

Blaxel SDK allows to retrieve the tools from an MCP server in your code. When both an agent and MCP server run on Blaxel, the tool call in the MCP server is execute separately from the agent logic. This ensures not only optimal resource utilization, but also better design practice for your agentic system.

Requirements & limitations

  • Your MCP server must implement Blaxel’s customized WebSockets transport layer.

  • Deployed MCP servers have a runtime limit after which executions time out. This timeout duration is determined by your chosen infrastructure generation. For Mk 2 generation, the maximum timeout is 10 minutes.

MCP hosting on Blaxel

Blaxel has a purpose-built implementation for MCP transport that uses WebSockets protocol instead of Server-Sent Events (SSE) or stdio to feature cloud deployment capabilities.

At this time, MCP servers deployed on Blaxel are only hosted server-side and cannot be installed locally. Only WebSockets protocol is supported.

For developers interested in the technical details, our implementation is available open-source through Blaxel’s Supergateway and Blaxel’s SDK.

There are two routes you can take when hosting MCPs on Blaxel:

  • Use one of the pre-built MCP servers from the Blaxel Store
  • Deploy a custom MCP server from your code

Developing an MCP server

Read our guide for developing a custom MCP server with Blaxel.

Host an MCP server on Blaxel

Read our guide for deploying your custom MCP server to Blaxel.

Connect to an MCP server

Learn how to run invocation requests on your MCP server.

Examples

Implement semantic tool search

This example highlights how to use OneGrep for semantic tool search & selection to enable effective function calling even with a high number of tools.