{
"mcpServers": {
"geminimcpserver": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Wraps Gemini 2.5 flash in an MCP server
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 214 days ago. 12 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Dynamic problem-solving through sequential thought chains
A Model Context Protocol server for searching and analyzing arXiv papers
An open-source AI agent that brings the power of Gemini directly into your terminal.
The official Python SDK for Model Context Protocol servers and clients
MCP Security Weekly
Get CVE alerts and security updates for GeminiMcpServer and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Spring Boot-based Model Context Protocol (MCP) server that enables MCP clients to leverage Google Gemini's large context window for codebase analysis. This server acts as a bridge between MCP clients (like Claude Desktop, Cursor, or Claude Code) and Google Gemini, allowing you to offload large codebase analysis tasks to Gemini while preserving your primary assistant's context window.
This MCP server provides two main tools:
-a flag to include all project files in analysisgemini command available in PATH)# For macOS with Homebrew:
brew install gemini
# Verify installation:
which gemini # Should show /opt/homebrew/bin/gemini or similar
gemini --version
# Configure your API key (if not already done):
export GEMINI_API_KEY="your-api-key-here"
git clone <repository-url>
cd GeminiMcpServer
./gradlew build
./gradlew test
Important: You don't need to run the server manually! MCP clients will automatically start and manage the server process. You only need to build it:
# Build the executable JAR (this is all you need to do!)
./gradlew bootJar
# The JAR will be created at: build/libs/GeminiMcpServer-0.0.1-SNAPSHOT.jar
The commands below are only for testing/debugging purposes:
# For testing: Run via Gradle
./gradlew bootRun
# For testing: Run the JAR directly
java -jar build/libs/GeminiMcpServer-0.0.1-SNAPSHOT.jar
Once you've built the JAR, configure your MCP client to use it. The client will handle starting and stopping the server automatically.
Add the following to your Claude Desktop or Cursor MCP configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"gemini-analyzer": {
"command": "java",
"args": [
"-jar",
"/path/to/GeminiMcpServer/build/libs/GeminiMcpServer-0.0.1-SNAPSHOT.jar"
],
"env": {
"GEMINI_API_KEY": "your-api-key-here" // Optional if configured in Gemini CLI
}
}
}
}
You can add the MCP server to Claude Code in two ways:
Option 1: Via Command Line (Recommended)
# Add to current project only (stored in .claude/)
claude mcp add gemini-analyzer -- java -jar /path/to/GeminiMcpServer/build/libs/GeminiMcpServer-0.0.1-SNAPSHOT.jar
# Or add to project and commit to version control
claude mcp add gemini-analyzer --scope project -- java -jar /path/to/GeminiMcpServer/build/libs/GeminiMcpServer-0.0.1-SNAPSHOT.jar
# Or add gl
... [View full README on GitHub](https://github.com/kousen/GeminiMcpServer#readme)