A comprehensive collection of Model Context Protocol (MCP) tool patterns and recipes
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e76dbdb638785a5b297f5c1f53d072e48b06218e2307d64bb9d9f32915d8037
|
|
| MD5 |
6ebfd69084d6affd33ff7bdf832d2121
|
|
| BLAKE2b-256 |
b5f05f813dce528ef624808ac7882c7634e879e6a9a0f87685ce3d998ca8b7a7
|
File details
Details for the file iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c8ff00c8bea48e8e553b624de31cd54fcafa4866cccbc8a4479b4a9e26b86a8
|
|
| MD5 |
464b680f290581b4c5c9ff4f3c9249f9
|
|
| BLAKE2b-256 |
fe21d048216830bd2afdb8f6f2b7b1a792277a14a2071333680f2420a224d5b1
|