GemSuite MCP: The Most Comprehensive Gemini API Integration for Model Context Protocol
The ultimate open-source server for advanced Gemini API interaction with Model Context Protocol (MCP), intelligently selecting models for optimal performance, minimal token cost, and seamless integration.
What is GemSuite MCP?
- Intelligence: Automatically selects the optimal Gemini model based on task and content
- Efficiency: Optimizes token usage and performance across different workloads
- Simplicity: Provides a clean, consistent API for complex AI operations
- Versatility: Advanced file handling; Handles multiple file types, operations, and use cases
Why GemSuite MCP?
Installation
Option 1: Smithery.ai (Recommended)
Option 2: Manual Installation
API Key Setup
- Obtain a Gemini API key from Google AI Studio
- Set it as an environment variable:or create a
.envfile in the project root:
Key Features
Unified File Handling
- Seamless File Processing: All tools support file inputs via the
file_pathparameter
- Automatic Format Detection: Correct handling of various file types with appropriate MIME types
- Multimodal Support: Process images, documents, code files, and more
- Batch Processing: Support for processing multiple files in a single operation
Intelligent Model Selection
- Task Type: Search, reasoning, processing, or analysis
- Content Type: Text, code, images, or documents
- Complexity: Simple queries vs. complex reasoning
- User Preferences: Optional manual overrides
Specialized Tools
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
Robust Error Handling
- Exponential Backoff: Graceful handling of API rate limits
- Comprehensive Error Detection: Clear identification of error sources
- Actionable Messages: Detailed error information for troubleshooting
- Recovery Mechanisms: Intelligent fallbacks when primary approaches fail
Usage
In Claude or Other MCP-Compatible Hosts
Tool Selection Guide
- `gem_search`: For factual questions requiring search integration
- `gem_reason`: For complex problems requiring step-by-step reasoning
- `gem_process`: For efficient processing of text or files (most token-efficient)
- `gem_analyze`: For detailed analysis of files with automatic model selection
Usage Examples
Claude Desktop Using GemSuite Gemini Search to access Google Search
Processing Files (Most Token-Efficient)
Analyzing Files
Complex Reasoning
Searching with Files
Model Characteristics
Gemini 2.0 Flash
- 1M token context window: Process extensive content
- Search integration: Ground responses in current information
- Multimodal capabilities: Handle text, images, and more
- Balanced performance: Good mix of quality and speed
Gemini 2.0 Flash-Lite
- Most cost-efficient: Minimize token usage
- Fastest response times: Ideal for high-volume operations
- Text-focused: Optimized for text processing
- Optimal for efficiency: When search and reasoning aren't needed
Gemini 2.0 Flash Thinking
- Enhanced reasoning: Logical analysis and problem-solving
- Step-by-step analysis: Shows reasoning process
- Specialized capabilities: Excels at complex calculations
- Best for depth: When thorough analysis is necessary
Workflow Examples
Document Analysis Workflow
Code Review Workflow
Integration with Other MCP Hosts
- Claude Desktop: Seamless integration with Claude's powerful reasoning capabilities
- Cursor IDE: Enhanced coding assistance with Gemini's capabilities
- Replit: Code generation and analysis directly in your development environment
- Other MCP Hosts: Compatible with any platform implementing the MCP standard
Advanced Configuration
Custom Model Selection
model_id parameter:Available Operations for `gem_process`
summarize: Create a concise summary
extract: Extract specific information
restructure: Reorganize content into a more useful format
simplify: Make complex content easier to understand
expand: Add detail or context to content
critique: Provide critical analysis
feedback: Offer constructive feedback
analyze: General analysis of content
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-new-feature
- Make your changes
- Run tests:
npm test
- Commit your changes:
git commit -m 'Add my new feature'
- Push to your branch:
git push origin feature/my-new-feature
- Submit a pull request
License
Acknowledgements
- Lorhlona/geminiserchMCP - The original project that inspired this enhanced version
- Model Context Protocol - For developing the MCP standard
- Google Gemini - For the powerful AI models that power this server
Links
GemSuite MCP: The Most Comprehensive Gemini API Integration for Model Context Protocol
The ultimate open-source server for advanced Gemini API interaction with Model Context Protocol (MCP), intelligently selecting models for optimal performance, minimal token cost, and seamless integration.
What is GemSuite MCP?
- Intelligence: Automatically selects the optimal Gemini model based on task and content
- Efficiency: Optimizes token usage and performance across different workloads
- Simplicity: Provides a clean, consistent API for complex AI operations
- Versatility: Advanced file handling; Handles multiple file types, operations, and use cases
Why GemSuite MCP?
Installation
Option 1: Smithery.ai (Recommended)
Option 2: Manual Installation
API Key Setup
- Obtain a Gemini API key from Google AI Studio
- Set it as an environment variable:or create a
.envfile in the project root:
Key Features
Unified File Handling
- Seamless File Processing: All tools support file inputs via the
file_pathparameter
- Automatic Format Detection: Correct handling of various file types with appropriate MIME types
- Multimodal Support: Process images, documents, code files, and more
- Batch Processing: Support for processing multiple files in a single operation
Intelligent Model Selection
- Task Type: Search, reasoning, processing, or analysis
- Content Type: Text, code, images, or documents
- Complexity: Simple queries vs. complex reasoning
- User Preferences: Optional manual overrides
Specialized Tools
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
Robust Error Handling
- Exponential Backoff: Graceful handling of API rate limits
- Comprehensive Error Detection: Clear identification of error sources
- Actionable Messages: Detailed error information for troubleshooting
- Recovery Mechanisms: Intelligent fallbacks when primary approaches fail
Usage
In Claude or Other MCP-Compatible Hosts
Tool Selection Guide
- `gem_search`: For factual questions requiring search integration
- `gem_reason`: For complex problems requiring step-by-step reasoning
- `gem_process`: For efficient processing of text or files (most token-efficient)
- `gem_analyze`: For detailed analysis of files with automatic model selection
Usage Examples
Claude Desktop Using GemSuite Gemini Search to access Google Search
Processing Files (Most Token-Efficient)
Analyzing Files
Complex Reasoning
Searching with Files
Model Characteristics
Gemini 2.0 Flash
- 1M token context window: Process extensive content
- Search integration: Ground responses in current information
- Multimodal capabilities: Handle text, images, and more
- Balanced performance: Good mix of quality and speed
Gemini 2.0 Flash-Lite
- Most cost-efficient: Minimize token usage
- Fastest response times: Ideal for high-volume operations
- Text-focused: Optimized for text processing
- Optimal for efficiency: When search and reasoning aren't needed
Gemini 2.0 Flash Thinking
- Enhanced reasoning: Logical analysis and problem-solving
- Step-by-step analysis: Shows reasoning process
- Specialized capabilities: Excels at complex calculations
- Best for depth: When thorough analysis is necessary
Workflow Examples
Document Analysis Workflow
Code Review Workflow
Integration with Other MCP Hosts
- Claude Desktop: Seamless integration with Claude's powerful reasoning capabilities
- Cursor IDE: Enhanced coding assistance with Gemini's capabilities
- Replit: Code generation and analysis directly in your development environment
- Other MCP Hosts: Compatible with any platform implementing the MCP standard
Advanced Configuration
Custom Model Selection
model_id parameter:Available Operations for `gem_process`
summarize: Create a concise summary
extract: Extract specific information
restructure: Reorganize content into a more useful format
simplify: Make complex content easier to understand
expand: Add detail or context to content
critique: Provide critical analysis
feedback: Offer constructive feedback
analyze: General analysis of content
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-new-feature
- Make your changes
- Run tests:
npm test
- Commit your changes:
git commit -m 'Add my new feature'
- Push to your branch:
git push origin feature/my-new-feature
- Submit a pull request
License
Acknowledgements
- Lorhlona/geminiserchMCP - The original project that inspired this enhanced version
- Model Context Protocol - For developing the MCP standard
- Google Gemini - For the powerful AI models that power this server