Go

•
3
•

Enables the creation of scalable Model Context Protocol (MCP) servers, supporting flexible deployment from CLI to horizontally scaled HTTP services.

This Go library provides a robust framework for building Model Context Protocol (MCP) servers, allowing developers to construct services that range from simple command-line prototypes to advanced, horizontally scaled streaming HTTP deployments. It abstracts away the complexities of server infrastructure, enabling a focus on business logic while supporting features like session management, authentication (including OIDC), and a pluggable session host. The library's sophisticated capability model allows for dynamic negotiation of server features, such as tools, resources, sampling, and elicitation, adapting to the specific needs of each client session.

Key Features

01Streaming MCP HTTP transport with sessions
02OIDC authentication and authorization server discovery
03Support for horizontal scaling without rewriting business logic
04Pluggable session storage with in-memory and Redis implementations
05Dynamic capability negotiation for tools, resources, sampling, and elicitation
061 GitHub stars

Use Cases

01Building highly scalable streaming HTTP services that adhere to the MCP specification
02Developing interactive CLI-based MCP servers for rapid prototyping
03Integrating with Large Language Models (LLMs) for dynamic sampling and elicitation workflows