Vertex AI

v1.0.0Data Science & MLstable

Implementation 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.

vertex-ai-mcp-servermcpai-integration
Share:
88
Stars
0
Downloads
0
Weekly
0/5

What is Vertex AI?

Vertex AI is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to implementation 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 answe...

Implementation 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.

This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Implementation of Model Context Protocol (MCP) server that p

Use Cases

Access Google Cloud Vertex AI Gemini models.
Enable web search grounding for AI answers.
shariqriazz

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedApr 24, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx vertex-ai-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Vertex AI

Vertex AI MCP Server gives AI clients like Claude access to Google Cloud's Vertex AI and Gemini models as a secondary AI provider, enabling web-search-grounded answers, direct knowledge queries, code analysis, technology comparisons, and documentation generation through a unified set of tools. It supports both Google Cloud Vertex AI (authenticated via service accounts or Application Default Credentials) and the direct Gemini API, making it flexible for both enterprise GCP users and individual developers. Developers use it to run tasks that benefit from a different model's perspective or Google's real-time web search grounding, directly from Claude conversations.

Prerequisites

  • Node.js 18 or higher and Bun runtime installed
  • A Google Cloud project with Vertex AI API enabled and billing active, OR a Gemini API key from Google AI Studio
  • Google Application Default Credentials configured (run `gcloud auth application-default login`) when using Vertex AI
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Clone and build the server

Clone the repository and install dependencies using Bun.

git clone https://github.com/shariqriazz/vertex-ai-mcp-server.git
cd vertex-ai-mcp-server
bun install
bun run build
2

Configure Google Cloud credentials

If using Vertex AI, set up Application Default Credentials. If using the Gemini API directly, you only need your GEMINI_API_KEY.

# For Vertex AI:
gcloud auth application-default login

# For Gemini API: set GEMINI_API_KEY in your environment
3

Set required environment variables

Set AI_PROVIDER to either 'vertex' or 'gemini', plus the corresponding project ID or API key.

# Vertex AI:
export AI_PROVIDER=vertex
export GOOGLE_CLOUD_PROJECT=your-gcp-project-id
export GOOGLE_CLOUD_LOCATION=us-central1

# Gemini API:
export AI_PROVIDER=gemini
export GEMINI_API_KEY=your_gemini_api_key
4

Test the server

Run the server to confirm it starts without authentication errors.

bunx vertex-ai-mcp-server
5

Configure your MCP client

Add the server to your MCP client's configuration with the required environment variables set in the env block.

Vertex AI Examples

Client configuration

Claude Desktop configuration for the Vertex AI MCP server using the Gemini API provider.

{
  "mcpServers": {
    "vertex-ai": {
      "command": "bunx",
      "args": ["vertex-ai-mcp-server"],
      "env": {
        "AI_PROVIDER": "gemini",
        "GEMINI_API_KEY": "your_gemini_api_key",
        "GEMINI_MODEL_ID": "gemini-2.5-pro-exp-03-25",
        "AI_TEMPERATURE": "0.0",
        "AI_MAX_OUTPUT_TOKENS": "65536"
      }
    }
  }
}

Prompts to try

Example prompts leveraging Vertex AI tools for web-grounded answers, code analysis, and documentation.

- "Use Vertex AI to search the web and answer: what are the latest breaking changes in React 19?"
- "Ask Gemini to compare the performance characteristics of PostgreSQL vs. CockroachDB for distributed workloads"
- "Analyze this code file using Vertex AI and compare it against the official documentation for best practices"
- "Generate API documentation for this TypeScript module using the Vertex AI documentation tool"
- "Use Vertex AI to scan this package.json for dependency vulnerabilities"

Troubleshooting Vertex AI

Authentication fails with 'Application Default Credentials not found'

Run `gcloud auth application-default login` to create ADC credentials, or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path of your service account JSON key file.

Vertex AI API returns 403 permission denied

Ensure the Vertex AI API is enabled in your Google Cloud project at console.cloud.google.com/apis, and that your authenticated account has the 'Vertex AI User' IAM role on the project.

bunx command not found

Install Bun from https://bun.sh using `curl -fsSL https://bun.sh/install | bash`. After installation, restart your terminal to ensure bunx is on your PATH.

Frequently Asked Questions about Vertex AI

What is Vertex AI?

Vertex AI is a Model Context Protocol (MCP) server that implementation 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. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Vertex AI?

Follow the installation instructions on the Vertex AI GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Vertex AI?

Vertex AI works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Vertex AI free to use?

Yes, Vertex AI is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Data Science & ML MCP Servers

Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "vertex-ai-mcp-server": { "command": "npx", "args": ["-y", "vertex-ai-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Vertex AI?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides