cafe-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cafe-mcp-serverRecommend an iced coffee with almond milk and high caffeine for a tired mood."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cafe-mcp-server
A minimal Python MCP server that recommends coffee from local static data.
This demo does not call external APIs and does not require an API key.
Tools
list_coffee_menu: returns the full static menu.recommend_coffee: recommends one drink from mood, milk, caffeine, and temperature preferences.explain_recommendation: explains a selected drink against the same preference inputs.
Related MCP server: mcp-coffee
Install
cd /Users/hanlufeng/Desktop/AI-INSIGHT-REPORT/Ceilia/cafe-mcp-server
python -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev]"Run
Local stdio MCP server:
cafe-mcp-serverEquivalent module form:
python -m cafe_mcp_server.serverCloud Run / HTTP mode:
PORT=8080 python -m cafe_mcp_server.serverWhen PORT is set, the server automatically uses Streamable HTTP, binds to 0.0.0.0:$PORT, and exposes MCP at:
/mcpYou can also force the transport explicitly:
MCP_TRANSPORT=streamable-http PORT=8080 python -m cafe_mcp_server.server
MCP_TRANSPORT=stdio python -m cafe_mcp_server.serverFor Cloud Run repository deployment with Buildpacks:
Build type: Buildpacks
Build context directory:
/Entrypoint: leave blank if Buildpacks uses the included
Procfile, or setpython -m cafe_mcp_server.serverFunction target: leave blank
Example MCP config
{
"mcpServers": {
"cafe-recommendation": {
"command": "python",
"args": [
"-m",
"cafe_mcp_server.server"
],
"cwd": "/Users/hanlufeng/Desktop/AI-INSIGHT-REPORT/Ceilia/cafe-mcp-server"
}
}
}If the package is installed into the same Python environment used by the MCP client, the console script can be used instead:
{
"mcpServers": {
"cafe-recommendation": {
"command": "cafe-mcp-server"
}
}
}Development
pytest
python -m compileall src tests
PYTHONPATH=src python -c "from cafe_mcp_server.recommender import recommend_coffee; print(recommend_coffee(mood='smooth iced', prefer_milk=False)['name'])"Command-line MCP tool test
After installing the project, call the MCP server through a stdio client:
python scripts/call_tool.py recommend_coffee --args '{"mood":"smooth iced","prefer_milk":false,"caffeine":"high","temperature":"cold"}'Expected result includes:
{
"id": "cold_brew",
"name": "Cold Brew"
}Available Tools
3 toolsexplain_recommendationC
Explain a coffee choice against the same preference inputs.
| Name | Required | Description | Default |
|---|---|---|---|
| mood | No | ||
| caffeine | No | ||
| coffee_id | Yes | ||
| prefer_milk | No | ||
| temperature | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of disclosing behavior. It states the action (explain) and mentions preference inputs, but it does not describe whether the operation is read-only, what the return structure is, whether it requires a prior recommendation, or any side effects. The description provides minimal behavioral context beyond the action itself.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence that is easy to parse and front-loads the action. There is no redundancy or filler. However, it is so brief that it sacrifices required detail, but that is more a completeness issue than a conciseness one.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has 5 parameters, no annotations, and a non-trivial action (explaining a choice), the description is too sparse to provide sufficient context. It does not explain how to use the tool, what the inputs mean, or any behavioral expectations. While an output schema exists, the description still fails to give a complete picture for the agent to invoke it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0% description coverage, and the description does not compensate by explaining individual parameters. It only groups them as 'preference inputs,' which is vague and does not clarify the role of coffee_id (the required parameter) or the optional fields like mood, caffeine, prefer_milk, and temperature. This adds little semantic value over the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's action: 'Explain a coffee choice,' which is a specific verb and resource. It also mentions 'against the same preference inputs,' distinguishing it from sibling tools like recommend_coffee (which recommends) and list_coffee_menu (which lists). However, it does not explicitly name these siblings or further elaborate on the output format, so it slightly misses full differentiation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives such as recommend_coffee or list_coffee_menu. There is no mention of intended use cases, prerequisites, or exclusions. The only hint is 'same preference inputs,' which vaguely suggests it relates to recommendation, but this is not explicitly actionable.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
recommend_coffeeA
Recommend a coffee from mood and simple preferences.
Args: mood: Free-text preference such as "smooth iced" or "quick energy". prefer_milk: True for milk drinks, False for black coffee, None for either. caffeine: Optional caffeine level: low, medium, or high. temperature: Optional drink style: hot or cold.
| Name | Required | Description | Default |
|---|---|---|---|
| mood | No | ||
| caffeine | No | ||
| prefer_milk | No | ||
| temperature | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must disclose behavior on its own. It only states the tool's purpose and parameter meanings, without describing the return format, error handling, or underlying logic. The output of the recommendation (e.g., a coffee name, a ranked list) is not disclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is one sentence plus a compact argument list, with no redundant text. Each line adds specific parameter guidance, and the structure is scannable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple with four optional parameters, but there is no output schema and no annotations. The description does not specify what the recommendation returns or any behavioral constraints, leaving a moderate completeness gap given the lack of structured context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 0% description coverage, but the description compensates by explaining each parameter's meaning and allowed values (e.g., 'True for milk drinks, False for black coffee, None for either', 'low, medium, or high' for caffeine). This adds significant value beyond the raw schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses 'Recommend a coffee from mood and simple preferences' – a specific verb+resource and clarifies the input basis. This distinguishes it from sibling tools like list_coffee_menu and explain_recommendation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage when a user has mood and preferences, but it does not explicitly address when to prefer this tool over list_coffee_menu or explain_recommendation. There is no 'when not to use' guidance, so it falls at implied usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
3 tool updates
v0.1.0- First observed
explain_recommendation - First observed
list_coffee_menu - First observed
recommend_coffee
TDQS
The tools are mostly distinct: listing the menu, recommending a coffee, and explaining a recommendation. There is slight potential for confusion between recommend_coffee and explain_recommendation, but their purposes are clear enough to avoid misselection.
All tool names follow a consistent verb_noun snake_case pattern: list_coffee_menu, recommend_coffee, explain_recommendation. This makes the API predictable and easy to navigate.
With 3 tools, the server is on the smaller side but well-scoped for its purpose. Each tool serves a distinct function in the coffee recommendation workflow, and the count does not feel excessive or incomplete.
The server covers the core domain of browsing, recommending, and explaining coffee choices. It lacks advanced features like detailed item descriptions or user feedback loops, but these are not essential for a basic cafe menu assistant.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for progressive tool usage at any scale (see https://klavis.ai)
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
MCP server for generating rough-draft project plans from natural-language prompts.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for controlling Meticulous espresso machines via Claude and other AI clients.22119MIT
- FlicenseNot gradedqualityBmaintenanceEnables coffee shop order management via MCP, including menu lookup, order creation, and status tracking.-
- AlicenseAqualityCmaintenanceAn MCP project that orchestrates coffee orders by coordinating a Barista server and machine servers (grinder, brew unit, steamer, dispenser) through an LLM.7MIT
- AlicenseAqualityBmaintenanceMCP server for querying Percolate's specialty coffee database with read-only access to 1,100+ coffees, tasting profiles, brew recipes, pairings, and recommendations.877MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hanluOMH/cafe-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server