Gemini Agent MCP Server
Integrates with Google Cloud's Vertex AI to access Gemini 3.1 models, enabling complex research, search grounding, URL analysis, and Python code execution.
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., "@Gemini Agent MCP Servercompare the capabilities of GPT-4 and Gemini 3.1"
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.
Gemini Agent MCP Server
An advanced Model Context Protocol (MCP) server that provides a high-level agentic interface to Google's Gemini 3.1 models via Vertex AI.
Unlike a standard search tool, this server exposes a single "Agent" tool that combines real-time Google Search, deep URL analysis, and Python code execution to solve complex, multi-step research and data tasks.
Features
Search Grounding: Uses Google Search to find up-to-the-minute information.
URL Context: Automatically fetches and parses the content of specific web pages for deep analysis.
Code Execution: Writes and executes Python code on-the-fly to perform calculations, data manipulation, or logical reasoning.
Thinking Mode: Utilizes Gemini's internal reasoning capabilities (
ThinkingLevel.MEDIUM) to plan and refine its approach before answering.
Related MCP server: Langgraph Deep Search MCP Server
Prerequisites
Google Cloud Project: You must have a Google Cloud project with the Vertex AI API enabled.
Authentication: You must have gcloud CLI installed and authenticated:
gcloud auth application-default loginPermissions: Your account needs the
Vertex AI Userrole on the project.
Configuration
The server requires the following environment variables:
Variable | Description | Default |
| Your Google Cloud Project ID (Required) | - |
| Vertex AI location |
|
Note: GOOGLE_CLOUD_PROJECT can also be used instead of GCP_PROJECT_ID.
Installation & Usage
1. Build the project
npm install
npm run build2. Integration with Goose
Add the following to your ~/.config/goose/profiles.yaml (or manage via the Goose UI):
gemini-agent:
cmd: node
args:
- /path/to/gemini-agent-mcp/build/index.js
envs:
GCP_PROJECT_ID: "your-project-id"
GCP_LOCATION: "global"3. Integration with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"gemini-agent": {
"command": "node",
"args": ["/path/to/gemini-agent-mcp/build/index.js"],
"env": {
"GCP_PROJECT_ID": "your-project-id",
"GCP_LOCATION": "global",
"PATH": "/usr/local/bin:/usr/bin:/bin"
}
}
}
}Tools
ask_gemini_agent
A single powerful entry point for complex queries.
Arguments:
query(string)Description: Handles research, data analysis, and technical questions by orchestrating search, web page reading, and code execution.
Limitations
Gemini 3.1 Preview: Uses the
gemini-3-flash-previewmodel; availability may vary by region.Python-only Code Execution: The code execution environment is restricted to standard Python libraries provided by the Gemini sandbox.
Stdio Transport: This server currently only supports standard I/O communication.
License
MIT
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.
Latest Blog Posts
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/cybaea/google-search-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server