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 "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceModel Context Protocol (MCP) server implementation that enables Claude Desktop to interact with Google's Gemini AI models.Last updated6167258MIT
- 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.Last updated162336MIT
- AlicenseAqualityDmaintenanceImplementation 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.Last updated202087MIT
- FlicenseAqualityDmaintenanceWraps the Gemini CLI as an MCP server, enabling AI tools to perform Gemini queries, interactive sessions, and extension management via a unified tool.Last updated11
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
A Model Context Protocol server for Wix AI tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ImDPS/mcp-python-sandbox'
If you have feedback or need assistance with the MCP directory API, please join our Discord server