Coffee Shop MCP
An MCP project that orchestrates coffee orders by coordinating a Barista server and machine servers (grinder, brew unit, steamer, dispenser) through an LLM.
README
☕ Coffee Shop MCP
A hands-on Model Context Protocol (MCP) project. An LLM (VS Code Copilot in Agent mode) takes your coffee order and "makes" it by coordinating a Barista server and four machine servers.
Built with the official MCP Python SDK's FastMCP.
How it works
The LLM is the orchestrator. Servers are dumb specialists — none of them talk to each other. The Barista returns a recipe, and the LLM walks that recipe across the machines.
flowchart TD
User([You]) --> LLM[VS Code Copilot<br/>orchestrator]
LLM --> Barista[Barista server<br/>menu · orders · recipes]
LLM --> Grinder[Grinder]
LLM --> Brew[Brew unit]
LLM --> Steamer[Steamer]
LLM --> Dispenser[Dispenser]
Order flow
sequenceDiagram
participant U as You
participant L as Copilot (LLM)
participant B as Barista
participant M as Machines
U->>L: What's on the menu?
L->>B: get_menu()
B-->>L: 4 drinks
U->>L: Large latte, extra shot
L->>B: place_order(...)
B-->>L: order id + recipe
L->>M: grind → brew → steam → dispense
L->>B: mark_order_ready()
L-->>U: Your latte is ready ☕
Menu
| Drink | Milk? | Notes |
|---|---|---|
| Espresso | No | Base shot |
| Americano | No | Espresso + hot water |
| Latte | Yes | Steamed milk, light foam |
| Cappuccino | Yes | Steamed milk, thick foam |
Machines
| Component | Job | Used by |
|---|---|---|
| Grinder | Beans → grounds | All |
| Brew unit | Pull the shot (+ Americano water) | All |
| Steamer | Texture milk | Latte, Cappuccino |
| Dispenser | Assemble the cup | All |
Espresso skips the Steamer. Latte vs Cappuccino differ only in foam thickness.
Project layout
coffee-shop-mcp/
├── .vscode/mcp.json
└── src/coffee_shop_mcp/
├── server.py # Barista
├── grinder.py
├── brew_unit.py
├── steamer.py
└── dispenser.py
Setup
uv venv
uv add "mcp[cli]"
Test one server in the browser Inspector:
uv run mcp dev src/coffee_shop_mcp/server.py
Run in VS Code
.vscode/mcp.json:
{
"servers": {
"coffee-shop": { "type": "stdio", "command": "uv",
"args": ["run", "python", "src/coffee_shop_mcp/server.py"] },
"grinder": { "type": "stdio", "command": "uv",
"args": ["run", "python", "src/coffee_shop_mcp/grinder.py"] },
"brew-unit": { "type": "stdio", "command": "uv",
"args": ["run", "python", "src/coffee_shop_mcp/brew_unit.py"] },
"steamer": { "type": "stdio", "command": "uv",
"args": ["run", "python", "src/coffee_shop_mcp/steamer.py"] },
"dispenser": { "type": "stdio", "command": "uv",
"args": ["run", "python", "src/coffee_shop_mcp/dispenser.py"] }
}
}
- Open the folder in VS Code, click Start on each server in
mcp.json. - Open Copilot Chat → Agent mode.
- Say: "What's on the menu? Then make me a large latte and run it on the machines."
Notes
- In-memory only — orders reset when the server restarts.
- Simulated hardware — machines return text results, nothing physical happens.
- Idle servers get stopped/restarted by VS Code automatically — that's normal.
A learning project. ☕
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.