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:
- Open the Anyscale MCP template.
- Click Launch to deploy the example.
- 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:
-
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.
-
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. -
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. -
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
- Unlocking Agentic AI with MCP: Webinar covering the basics of MCP.
- Agentic AI in Practice: Build Scalable and Production Ready MCP Servers: Webinar covering scalable deployment of MCP with Ray Serve and Anyscale services.
MCP documentation and tools
- MCP introduction: Official introduction to the Model Context Protocol.
- MCP documentation: Anthropic's comprehensive MCP documentation.
- MCP Python SDK: Official Python SDK for building MCP servers and clients.
- MCP Inspector: Tool for debugging and testing MCP servers.
MCP server collections
- Official MCP servers list: Anthropic's curated list of MCP server implementations.
- Docker MCP images: Pre-built Docker images for MCP servers.
- Awesome MCP servers: Community-maintained directory of MCP servers.