Gemini MCP
A Model Context Protocol (MCP) server for generating images using Gemini 2.5 Flash.
Features
- 🎨 Generate images using Gemini 2.5 Flash model
- 🚀 Easy installation with
uvx gemini-mcp - 🔧 Compatible with Claude, Cursor, and other MCP clients
- 🛡️ Secure API key handling via environment variables
- ⚡ Fast streaming responses
Installation
Using uvx (recommended)
uvx gemini-mcp
Using pip
pip install gemini-mcp
Usage
As MCP Server
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"gemini": {
"command": "uvx",
"args": ["gemini-mcp"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}
Command Line
# Set your API key
export GEMINI_API_KEY="your-api-key-here"
# Run the MCP server
gemini-mcp
Configuration
Environment Variables
GEMINI_API_KEY: Your API key for the tu-zi.com service (required)
API Key
You can obtain an API key from tu-zi.com. The key should have access to the gemini-2.5-flash-image model.
Tools
generate_image
Generate an image from a text prompt using Gemini 2.5 Flash.
Parameters:
prompt(string, required): Detailed description of the image to generateapi_key(string, optional): API key override (uses environment variable if not provided)
Example:
{
"name": "generate_image",
"arguments": {
"prompt": "A cute orange cat sitting under a cherry blossom tree, anime style, soft lighting"
}
}
Examples
Using with Claude
Please use the generate_image tool to create a picture of a futuristic city at night with neon lights and flying cars.
Using with Cursor
Generate an image: minimalist office design with natural lighting and plants
Development
Local Development
git clone https://github.com/yourusername/gemini-mcp
cd gemini-mcp
pip install -e .
Testing
# Test the server
python -m gemini_mcp.server
# Or use the command directly
gemini-mcp
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Metadata
Release files for banana-mcp 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| banana_mcp-1.0.4.tar.gz | 10.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| banana_mcp-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / banana_mcp-1.0.4.tar.gz
| Download URL | banana_mcp-1.0.4.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7207757f7436c74772680a31aae956e64ef05a7e56c68e0ecd5b78694624fa8
|
|
BLAKE2b-256 checksum How to use checksums |
0b3bd11d15bdf30f3a0e58c9d5cb5a5e0fb6ae1ea7c9d46528c55332b61ae063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / banana_mcp-1.0.4-py3-none-any.whl
| Download URL | banana_mcp-1.0.4-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
072fc2a6788fa2b3b2de3b7675b345229e8abb705cf4a4e664b68c720645d4c2
|
|
BLAKE2b-256 checksum How to use checksums |
f3c0692c69cae8c696fecb278418fb10c8ecc12851bf9c17ecfe0e9288b53051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for banana-mcp 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.