Sponsored by Deepsite.site

MCP-server-using-Gemini

Created By
AditHash8 months ago
A chatbot powered by Gemini Flash 1.5 utilising Model Context Protocol for doing Multipurpose communication
Content

MCP-server-using-Gemini

About

This project is a working implementation of the Model Context Protocol (MCP), showcasing its integration with Gemini APIs. The architecture consists of multiple servers, each handling specific functionalities such as chat, search, retrieval-augmented generation (RAG), and more. The project demonstrates how different services can work together seamlessly using the MCP framework.

Features

  • Chat Server: Handles conversational interactions.
  • Search Server: Provides search capabilities using Gemini APIs.
  • RAG Server: Implements retrieval-augmented generation for enhanced responses.
  • Thinking Server: Processes complex logic and reasoning tasks.
  • Router: Acts as the central hub, routing requests to the appropriate servers.

Prerequisites

  • Python 3.12 or higher must be installed on your system.
  • Ensure the pip package manager is available.
  • A valid GEMINI_API_KEY is required and should be set in the .env file.

How to Run

  1. Clone the repository:

    git clone https://github.com/AditHash/gemini-mcp-server-chatbot.git
    cd gemini-mcp-server-chatbot
    
  2. Set up the .env file with your Gemini API key:

    GEMINI_API_KEY=your_gemini_api_key
    
  3. Run the install.sh script to set up the environment and start the servers:

    ./install.sh
    

    This script will:

    • Check if Python 3.12 is installed and install it if necessary.
    • Create and activate a virtual environment.
    • Install the required dependencies from requirements.txt.
    • Start all the servers:
      • Chat Server: http://0.0.0.0:8001
      • RAG Server: http://0.0.0.0:8004
      • Search Server: http://0.0.0.0:8002
      • Thinking Server: http://0.0.0.0:8003
      • Router: http://0.0.0.0:8000

Project Structure

  • chat/: Contains the chat server implementation.
  • search/: Contains the search server implementation.
  • rag/: Contains the RAG server implementation.
  • think/: Contains the thinking server implementation.
  • router/: Contains the router server implementation.
  • install.sh: Script to set up the environment and start the servers.
  • requirements.txt: Lists the Python dependencies for the project.
  • .env: Stores environment variables, including the GEMINI_API_KEY.

Future Plans

  • Frontend integration
  • Develop a docker-compose.yaml template to simplify deployment using Docker.
  • Add more advanced features to the MCP framework, such as dynamic scaling and monitoring.
  • Enhance the integration with Gemini APIs for improved performance and reliability.

Notes

  • Ensure that the GEMINI_API_KEY is valid and has the necessary permissions for the Gemini APIs.
  • If you encounter any issues, check the logs for each server to debug the problem.
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Amap Maps高德地图官方 MCP Server
DeepChatYour AI Partner on Desktop
Tavily Mcp
ChatWiseThe second fastest AI chatbot™
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
CursorThe AI Code Editor
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors