Skip to main content

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 prompts
  • react_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_workflowstep2_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 commands
  • quantum_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

Prompt Exposure Pattern The code_reviewer_prompt tool exposing a comprehensive, ready-to-use code review template

🤔 Clarification Questions Pattern

Clarification Questions Pattern The smart_recipe_generator tool progressively gathering information through targeted questions

🌐 Client Tool Orchestration Pattern

Client Tool Orchestration Pattern The sequential_web_search tool orchestrating multiple web searches and processing results

🎲 Response-Driven Navigation Pattern

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:

  1. Claude Desktop: Add to your MCP configuration
  2. Cursor: Add to your MCP configuration
  3. Custom LLM apps: Use the FastMCP client
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1.tar.gz.

File metadata

  • Download URL: iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1.tar.gz
  • Upload date:
  • Size: 15.1 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

Hashes for iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0de597c6cfbbb02d676302d895b8f7cca451dbc73e32b9b3b20cf327c3dd040b
MD5 b3f95068974be19993e6b92da7e8ddec
BLAKE2b-256 8322d9c0c4618573d14158ab41ef70132f18220acf906c9722dd3f7ea31f8e6e

See more details on using hashes here.

File details

Details for the file iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 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

Hashes for iflow_mcp_ydmitry_mcp_tools_cookbook-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3727be712079ffe50a8e1d73d7d769dd52b37f021caeeff5927c2aa8ab27bc6
MD5 f8bf7c89c4c780a026b1943aade36721
BLAKE2b-256 7efb1fbabec8b5518bd281e24febe8dd8acca0f3bed040c9f0e204f44344942a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page