Go icon

Go

1

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

About

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

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

Use Cases

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