Basic information
About MCP Server Example (MCP Coffee Shop)
Example how to make a DIY MCP server in Go
MCP Server Example (MCP Coffee Shop) is a MCP server in the Other category listed in the AddMCP.net directory, published by BearHuddleston. Supported transport: stdio. Runtime: go. Source code is hosted on github.com. Related topics: go, golang, mcp-server.
Setup
{
"mcpServers": {
"go-mcp-server-example": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-server",
"."
]
}
}
}
{
"mcpServers": {
"go-mcp-server-example": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-server",
"."
]
}
}
}
{
"servers": {
"go-mcp-server-example": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-server",
"."
]
}
}
}
MCP Server Example (MCP Coffee Shop) config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"go-mcp-server-example": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-server",
"."
]
}
}
}
MCP Server Example (MCP Coffee Shop) tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Server Example (MCP Coffee Shop)?
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. Designed for developers building LLM-integrated coffee shop applications.
How to use MCP Server Example (MCP Coffee Shop)?
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.
Key features of MCP Server Example (MCP Coffee Shop)
- 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
Use cases of MCP Server Example (MCP Coffee Shop)
- List available drinks via the
getDrinkNamestool - Get detailed drink information with
getDrinkInfo - Retrieve the full coffee shop menu resource (
menu://app) - Get personalized drink recommendations through prompts
- Debug and test MCP integrations with MCP Inspector
Frequently asked questions
1 What transports does MCP Server Example (MCP Coffee Shop) support?
It supports stdio (default, compatible with MCP Inspector) and http with Server-Sent Events (SSE).
2 How can I run it with Docker?
Build the Docker image (docker build -t mcp-server .) and run with --transport http --port 8080 for HTTP or --transport stdio for stdio. Environment variables TRANSPORT and PORT are also supported.
3 What command‑line flags are available?
--transport (stdio/http, default stdio), --port (HTTP port, default 8080), and --request-timeout (duration, default 30s).
4 Does the server expose a health check endpoint?
Yes, when using HTTP transport, a GET /health endpoint is available.
5 What JSON‑RPC methods does the server implement?
It implements initialize, tools/list, tools/call, resources/list, resources/read, prompts/list, prompts/get, and ping.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In