go-mcp-server

cbrgm/go-mcp-server

3.4

If you are the rightful owner of go-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Go-based Model Context Protocol (MCP) server providing tea information through tools, resources, and prompts.

The Go MCP Server is a learning project designed to implement the Model Context Protocol (MCP) specification in Go. It serves as a practical exploration of MCP, offering a server that provides detailed information about various teas. The server is compliant with the MCP 2025-03-26 specification and supports multiple transport protocols, including stdio and HTTP with Server-Sent Events (SSE). It features a collection of eight premium teas, including Green, Black, Oolong, and White varieties. The server is equipped with full MCP capabilities, allowing users to access tools, resources, and prompts related to tea. While this project is primarily educational, it provides a functional example of an MCP server, with the potential for further development and integration into larger systems. Users can interact with the server using command-line arguments to configure its behavior, such as transport protocol, port, request timeout, and logging options.

Features

  • MCP 2025-03-26 Specification Compliant
  • Multiple Transports: stdio (default), http with SSE
  • Tea Collection: 8 premium teas (Green, Black, Oolong, White)
  • Full MCP Capabilities: Tools, Resources, and Prompts
  • Customizable Server Configuration

Usages

podman with Claude Desktop or VS Code

{
  "mcpServers": {
    "tea": {
      "command": "podman",
      "args": ["run", "-i", "--rm", "ghcr.io/cbrgm/go-mcp-server:v1"]
    }
  }
}

go with local development

{
  "mcpServers": {
    "tea": {
      "command": "go",
      "args": ["run", "./cmd/go-mcp-server"],
      "cwd": "/path/to/go-mcp-server"
    }
  }
}

Tools

  1. getTeaNames

    List all available teas

  2. getTeaInfo

    Get detailed tea information and brewing instructions

  3. getTeasByType

    Filter teas by type (Green Tea, Black Tea, Oolong Tea, White Tea)