MCP Tools Cookbook
A comprehensive collection of Model Context Protocol (MCP) tool patterns and recipes. This cookbook demonstrates various MCP design patterns that you can use as building blocks for your own AI-powered applications.
🧑🍳 Available Recipes (Patterns)
This cookbook demonstrates essential MCP tool patterns:
🎯 Prompt Exposure Pattern
code_reviewer_prompt- Ready-to-use comprehensive code review promptsreact_prompt_generator- Dynamic ReAct (Reason + Act) pattern prompt generation- Use case: Transform MCP into a prompt repository service
🤔 Clarification Questions Pattern
smart_recipe_generator- Progressive information gathering with intelligent questions- Use case: Handle incomplete user input gracefully by asking targeted follow-up questions
🔄 Multi-Step Tool Pattern
step1_initialize_workflow→step2_execute_workflow- Sequential tool dependencies- Use case: Complex workflows requiring state management and ordered execution
🌐 Client Tool Orchestration Pattern
sequential_web_search- Bridges external tools (like web_search) with MCP processing- Use case: Extend and orchestrate native client tools from the server side
🎲 Response-Driven Navigation Pattern
tool_with_follow_up- Tools that suggest next actions through embedded commandsquantum_mood_analyzer,rubber_duck_debugger,coffee_brew_oracle- Fun example tools- Use case: Guide conversation flow through tool response content
📸 Patterns in Action
See these MCP tool patterns demonstrated in real AI conversations:
🎯 Prompt Exposure Pattern
The
code_reviewer_prompt tool exposing a comprehensive, ready-to-use code review template
🤔 Clarification Questions Pattern
The
smart_recipe_generator tool progressively gathering information through targeted questions
🌐 Client Tool Orchestration Pattern
The
sequential_web_search tool orchestrating multiple web searches and processing results
🎲 Response-Driven Navigation Pattern
The
tool_with_follow_up tool suggesting next actions, leading to rubber_duck_debugger execution
🚀 Quick Start
Setup Your Kitchen (Environment)
# Create virtual environment
python3 -m venv venv
# Activate virtual environment
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
Or use the convenient activation script:
source activate.sh
Using with AI Applications
Connect this cookbook to LLM applications that support MCP:
- Claude Desktop: Add to your MCP configuration
- Cursor: Add to your MCP configuration
- Custom LLM apps: Use the FastMCP client
- Other MCP clients: Any MCP-compatible client can use these patterns
Claude Desktop Configuration Example
{
"mcpServers": {
"mcp-tools-cookbook": {
"command": "python",
"args": ["path-to-repository/mcp_server.py"]
}
}
}
Cursor Configuration Example
Add to your ~/.cursor/mcp.json file:
{
"mcp-tools-patterns": {
"command": "python",
"args": [
"path-to-repository/mcp_server.py"
]
}
}
📝 License
This cookbook is provided as-is for educational purposes. Check the FastMCP repository for its license terms.
Metadata
Release files for iflow-mcp_ydmitry-mcp-tools-cookbook 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1.tar.gz | 15.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.6 kB
Release files / iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1.tar.gz
| Download URL | iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0de597c6cfbbb02d676302d895b8f7cca451dbc73e32b9b3b20cf327c3dd040b
|
|
BLAKE2b-256 checksum How to use checksums |
8322d9c0c4618573d14158ab41ef70132f18220acf906c9722dd3f7ea31f8e6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1-py3-none-any.whl
| Download URL | iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3727be712079ffe50a8e1d73d7d769dd52b37f021caeeff5927c2aa8ab27bc6
|
|
BLAKE2b-256 checksum How to use checksums |
7efb1fbabec8b5518bd281e24febe8dd8acca0f3bed040c9f0e204f44344942a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|