A collection of Model Context Protocol (MCP) servers with intelligent clients for various services. This repository demonstrates how to build conversational AI interfaces for different APIs using OpenAI GPT and MCP.
A comprehensive Google Drive integration with smart discovery, full content access, and intelligent navigation.
Features:
- π Smart File Discovery - Find files without manual navigation
- π Full Content Access - No limits on document length
- π§ Persistent Caching - Files remain accessible for future processing
- π― Intelligent Search - Search across all cached content
- πΊοΈ Multi-step Workflows - Handles complex discovery automatically
- π Shared Drive Support - Full Team Drive integration
A food and recipe server using the Spoonacular API for discovering and managing recipes.
Features:
- π Recipe Search - Find recipes by ingredients, cuisine, or dietary restrictions
- π Detailed Instructions - Get complete cooking instructions and ingredients
- π² Random Discovery - Discover new recipes with filtering options
- πΎ Recipe Caching - Save and access previously viewed recipes
- Python 3.8+
- OpenAI API Key - For GPT integration
- Conda or UV - For package management
- Node.js - For MCP Inspector (testing)
git clone https://github.com/YOUR_ACCOUNT/mcp-servers-collection.git
cd mcp-servers-collection# Create conda environment
conda create -n mcp-servers python=3.11
conda activate mcp-servers
# Install base dependencies
pip install mcp openai requests python-dotenvCreate a .env file in the project root:
OPENAI_API_KEY=your_openai_api_key_here
SPOONACULAR_API_KEY=your_spoonacular_api_key_here-
Google Cloud Setup:
- Create a Google Cloud project
- Enable Google Drive API
- Create OAuth 2.0 credentials
- Download
credentials.jsonto project root
-
Install Dependencies:
pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client
-
Test the Server:
cd GDrive python gdrive_server.py -
Run the Client:
python gdrive_chatbot.py
You: Find the documentation folder in the Team Projects shared drive
π§ Calling tool: list_shared_drives
π§ Calling tool: list_files with folder_id from shared drive
π€ Assistant: Found the documentation folder! Here's what's inside...
You: Search for "budget" in all my cached files
π§ Calling tool: search_cached_content
π€ Assistant: Found 3 files containing "budget"...
-
Get Spoonacular API Key:
- Visit https://spoonacular.com/food-api
- Sign up for free (150 requests/day)
-
Test the Server:
cd Recipe python recipe_server.py -
Run the Client:
python recipe_chatbot.py
You: Find me some vegetarian pasta recipes
π§ Calling tool: search_recipes
π€ Assistant: Here are 5 great vegetarian pasta recipes...
You: Get details for recipe ID 12345
π§ Calling tool: get_recipe_details
π€ Assistant: Here's the complete recipe with ingredients and instructions...
Both servers can be tested using the MCP Inspector:
# Test Google Drive Server
npx @modelcontextprotocol/inspector python GDrive/gdrive_server.py
# Test Recipe Server
npx @modelcontextprotocol/inspector python Recipe/recipe_server.pyUser Query β OpenAI GPT β MCP Client β MCP Server β External API
β β
AI Response β Tool Results β Tool Execution β API Response
- MCP Server: Exposes tools and resources via stdio
- MCP Client: Connects to server and integrates with OpenAI
- OpenAI Integration: Provides natural language interface
- Caching Layer: Stores data for future processing
Tools:
list_files- List files and folderslist_shared_drives- List Team Drivessearch_files- Global file searchget_file_details- File metadataread_file- Download and cache contentcreate_folder- Create new folders
Resources:
gdrive://listings- Recent folder explorationsgdrive://files- Cached file metadatagdrive://content/{file_id}- Full file contentgdrive://search/{query}- Content search resultsgdrive://summary- Cache overview
Prompts:
explore_shared_drive- Guide shared drive explorationfind_file_by_name- Help locate specific filesanalyze_folder_structure- Understand organizationcontent_discovery- Find content by topicsetup_workflow- Optimize workflows
Tools:
search_recipes- Find recipes by criteriaget_recipe_details- Complete recipe informationget_random_recipes- Discover new recipes
Resources:
recipes://searches- Recent search historyrecipes://saved- Cached recipe details
- Fork the repository
- Create a feature branch
- Add your MCP server following the established patterns
- Include comprehensive documentation
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Model Context Protocol - For the MCP framework
- FastMCP - For simplified MCP server development
- OpenAI - For GPT integration
- Spoonacular API - For recipe data
- Google Drive API - For file management
For questions and support:
- Check the documentation in each server's directory
- Review the setup guides for troubleshooting
- Open an issue for bugs or feature requests
Happy coding with MCP! π