MCP with Gemini Integration
Supports environment variable management through .env files for storing configuration settings and API keys securely.
Integrates with Google Gemini LLM to provide AI capabilities for applications, including knowledge base access and flexible model interaction through a Model Control Protocol server framework.
Enables testing of the Gemini API integration through the provided test script.
Built using Python 3.8+ as the core development language for the MCP server implementation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP with Gemini Integrationgenerate a summary of the project structure from the README"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Project with Gemini Integration
This project implements a Model Control Protocol (MCP) server with Google Gemini LLM integration, providing a flexible framework for building AI-powered applications.
Project Structure
.
├── .venv/ # Virtual environment (gitignored)
├── client-server/ # MCP client and server implementation
│ ├── client-sse.py # SSE client
│ ├── client-stdio.py # stdio client
│ └── server.py # MCP server
├── gemini-llm-integration/ # Gemini LLM integration
│ ├── client-simple.py # Simple Gemini client
│ ├── server.py # Gemini server implementation
│ └── data/ # Knowledge base and data files
├── .env # Environment variables
├── .env.example # Example environment variables
├── requirements.txt # Project dependencies
└── test_gemini.py # Test script for Gemini APIRelated MCP server: MCP Gemini Server
Prerequisites
Python 3.8+
UV package manager (
pip install uv)Google Gemini API key (for Gemini integration)
Setup
Clone the repository and navigate to the project directory.
Create and activate a virtual environment:
uv venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activateInstall dependencies:
uv pip install -r requirements.txtCopy
.env.exampleto.envand update with your API keys:cp .env.example .env # Edit .env with your API keys
Running the Project
MCP Server
Start the MCP server:
cd client-server python server.pyIn a separate terminal, run a client:
# For SSE client python client-sse.py # For stdio client python client-stdio.py
Gemini Integration
Start the Gemini server:
cd gemini-llm-integration python server.pyRun the Gemini client:
python client-simple.py
Development
Format code:
black . isort .Run tests:
pytestType checking:
mypy .
License
[Specify your license here]
Contributing
Fork the repository
Create a feature branch
Commit your changes
Push to the branch
Create a new Pull Request
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for AI dialogue using various LLM models via AceDataCloud
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Related MCP Servers
- AlicenseAqualityFmaintenanceModel Context Protocol (MCP) server implementation that enables Claude Desktop to interact with Google's Gemini AI models.644 npm259MIT
- AlicenseAqualityDmaintenanceA dedicated server that wraps Google's Gemini AI models in a Model Context Protocol (MCP) interface, allowing other LLMs and MCP-compatible systems to access Gemini's capabilities like content generation, function calling, chat, and file handling through standardized tools.1615 npm36MIT
- AlicenseAqualityCmaintenanceImplementation of Model Context Protocol (MCP) server that provides tools for accessing Google Cloud's Vertex AI Gemini models, supporting features like web search grounding and direct knowledge answering for coding assistance and general queries.2030 npm88MIT
- FlicenseAqualityDmaintenanceWraps the Gemini CLI as an MCP server, enabling AI tools to perform Gemini queries, interactive sessions, and extension management via a unified tool.11-