Skip to main content

MCP quickstart

MCP quickstart

This guide helps you set up your first Model Context Protocol (MCP) server and client. You learn how to deploy MCP servers locally for development and on Anyscale for scalable production deployments.

Deploy scalable MCP servers on Anyscale

For production deployments that require high availability and scalability, use the Anyscale MCP template.

Use the Anyscale template

To deploy MCP servers on Anyscale, follow these steps:

  1. Open the Anyscale MCP template.
  2. Click Launch to deploy the example.
  3. Follow the template instructions to customize the deployment for your use case.

The MCP template provides four end-to-end examples for deploying and scaling MCP servers using Ray Serve and Anyscale services. These examples cover both streamable HTTP and stdio transport types:

  1. Deploy a custom MCP in streamable HTTP: Deploys a custom weather MCP server in streamable HTTP mode behind FastAPI and Ray Serve. This example demonstrates autoscaling, load balancing, and end-to-end testing on Anyscale.

  2. Build an MCP gateway with existing Ray Serve apps: Sets up a single MCP gateway that multiplexes requests to multiple pre-existing Ray Serve apps under one unified /mcp endpoint. This approach requires no code changes in the underlying services.

  3. Deploy a single MCP stdio Docker image as an HTTP service: Wraps a stdio-only MCP Docker image (such as Brave Search) with Ray Serve to expose /tools and /call HTTP endpoints. This pattern enables horizontal scaling without rebuilding the image.

  4. Deploy multiple MCP stdio Docker images as HTTP services: Extends the single Docker image pattern to run several stdio-based MCP images side by side.

Local MCP deployment tutorial

Create and run MCP servers locally using hands-on examples. The tutorial demonstrates MCP with different transport modes (stdio, SSE, and streamable HTTP) using a simple calculator server example.

Follow the complete tutorial in the GitHub repository:

github.com/anyscale/mcp-quickstart

The repository includes:

  • Complete working examples for all transport modes.
  • Integration guides for Claude Desktop and Cursor.
  • Docker deployment configurations.
  • Step-by-step instructions with code.

Additional resources

Anyscale MCP webinars

MCP documentation and tools

MCP server collections