MCP Server Example (MCP Coffee Shop)

by BearHuddleston

410 downloads
Not rated
GitHub

About

An MCP server implementation in Go that provides coffee shop information through tools, resources, and prompts. It supports stdio and HTTP with Server-Sent Events transports, follows Go project layout best practices, and is compliant with the MCP 2025-03-26 specification…

Details

Author
BearHuddleston
Downloads
410
Categories
Other

- MCP 2025-03-26 specification compliant
- Supports stdio and HTTP (SSE) transports
- Coffee shop domain: tools, resources, prompts
- Graceful shutdown and configurable timeouts
- Production ready: structured logging, error handling

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server Example (MCP Coffee Shop)
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Build and run from source with Go 1.24+ (go build -o mcpserver ./cmd/mcpserver), or use Docker. Start with ./mcpserver for stdio transport (default), or ./mcpserver -transport http -port 8080 for HTTP. Customize via flags --transport, --port, and --request-timeout. Connect using the MCP Inspector for testing.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server example (mcp coffee shop)": {
            "go-mcp-server-example": {
                "command": "docker",
                "args": [
                    "build",
                    "-t",
                    "mcp-server",
                    "."
                ]
            }
        }
    }
}

McpServers

{
    "go-mcp-server-example": {
        "command": "docker",
        "args": [
            "build",
            "-t",
            "mcp-server",
            "."
        ]
    }
}

MCP Server Example (MCP Coffee Shop)

A Model Context Protocol (MCP) server implementation in Go that provides coffee shop information through tools, resources, and prompts, following Go project layout best practices.

Features

- MCP 2025-03-26 Specification Compliant
- Multiple Transport Support: stdio (default, compatible with MCP Inspector), http (with SSE)
- Coffee Shop Domain: Tools, resources, and prompts for coffee shop operations
- Graceful Shutdown & Configurable Timeouts
- Production Ready: Structured logging, error handling, validation

Project Structure

simple-mcp-server-refactored/
├── cmd/mcpserver/           # Application entrypoint
├── pkg/                     # Public library code
│   ├── mcp/                 # Core MCP protocol types
│   ├── config/              # Configuration management
│   ├── transport/           # Transport implementations
│   └── handlers/            # Domain-specific handlers
├── internal/server/         # Server implementation
└── go.mod

Usage

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.