What is Scaled MCP Server?
Scaled MCP Server is a Go library that implements the MCP (Message Context Protocol) 2025-03 specification with support for horizontal scaling. It is designed to be embedded in applications and provides flexible configuration options for load-balanced deployments.
How to use Scaled MCP Server?
Install with go get github.com/traego/scaled-mcp@latest (requires Go 1.24+). Create a server using server.NewMcpServer with a configuration and tool registry, then start it. The library supports static tool registries, dynamic tool registries, struct-based reflection, and generics-based tool registration.
Key features of Scaled MCP Server
- HTTP transport with main
/mcp endpoint and optional SSE endpoint
- Distributed session management via Redis or in-memory store
- Actor-based architecture for session handling and message routing
- Horizontal scaling support for load-balanced deployments
- Flexible tool registration: static, dynamic, struct-based, and generics
- Supports embedding into external HTTP servers and custom routers
Use cases of Scaled MCP Server
- Building scalable AI assistants with tool-calling capabilities
- Deploying MCP servers behind load balancers for high availability
- Embedding MCP protocol support into existing Go applications
- Creating multi-node services with distributed session state
评论