AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Google Ai Mcp Server

mcp-stevekaplanai-google-ai-mcp-server · by Stevekaplanai

Google VEO3 Latest Models MCP Server

No reviews yet
0 installs
23 views
0.0% view→install

Install

$ agentstack add mcp-stevekaplanai-google-ai-mcp-server

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-stevekaplanai-google-ai-mcp-server)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
stale · 1y ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Google Ai Mcp Server? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Google AI MCP Server

A Model Context Protocol (MCP) server that provides access to Google's AI models including Imagen 3, VEO 3, Gemini, and Lyria through Claude Desktop.

[](https://www.npmjs.com/package/@stevekaplanai/google-ai-mcp) [](LICENSE)

🚀 Quick Start

Install via NPM (Recommended)

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "google-ai": {
      "command": "npx",
      "args": ["@stevekaplanai/google-ai-mcp@latest"],
      "env": {
        "USE_MOCK": "false",
        "GOOGLE_CLOUD_PROJECT": "your-project-id",
        "GOOGLE_CLOUD_LOCATION": "us-central1",
        "GOOGLE_APPLICATION_CREDENTIALS_JSON": "{\"type\":\"service_account\",...}"
      }
    }
  }
}

✨ Features

  • Imagen 3 - Generate photorealistic images with text prompts
  • VEO 3 - Create 5-8 second videos with audio (coming soon)
  • Gemini - Access Google's latest language models
  • Lyria 2 - Generate up to 60 seconds of music (coming soon)

📋 Prerequisites

  1. Google Cloud Project with billing enabled
  2. Vertex AI API enabled
  3. Service account with appropriate permissions
  4. Claude Desktop installed

🔧 Setup Instructions

1. Enable Required APIs

gcloud services enable aiplatform.googleapis.com

2. Create Service Account

# Create service account
gcloud iam service-accounts create google-ai-mcp-server \
    --display-name="Google AI MCP Server Service Account"

# Grant necessary permissions
gcloud projects add-iam-policy-binding YOUR_PROJECT_ID \
    --member="serviceAccount:google-ai-mcp-server@YOUR_PROJECT_ID.iam.gserviceaccount.com" \
    --role="roles/aiplatform.user"

# Create and download key
gcloud iam service-accounts keys create service-account-key.json \
    --iam-account=google-ai-mcp-server@YOUR_PROJECT_ID.iam.gserviceaccount.com

3. Configure Claude Desktop

Update your Claude Desktop config file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "google-ai": {
      "command": "npx",
      "args": ["@stevekaplanai/google-ai-mcp@latest"],
      "env": {
        "USE_MOCK": "false",
        "GOOGLE_CLOUD_PROJECT": "your-project-id",
        "GOOGLE_CLOUD_LOCATION": "us-central1",
        "GOOGLE_APPLICATION_CREDENTIALS_JSON": "paste-json-here"
      }
    }
  }
}

⚠️ Important: When pasting the JSON credentials:

  • Escape all newlines in the private key: \n\\n
  • Keep the entire JSON on one line
  • Don't include outer quotes

4. Restart Claude Desktop

After updating the configuration, completely restart Claude Desktop for changes to take effect.

🎨 Usage Examples

Generate an Image

"Create a photorealistic image of a ninja duck in a dojo"

Generate Multiple Variations

"Generate 4 variations of a cyberpunk city at night"

Different Aspect Ratios

"Create a 16:9 landscape image of mountains at sunset"
"Generate a 9:16 portrait image for a phone wallpaper"

🛠️ Available Tools

imagengenerateimage

Generate images using Google Imagen 3.

Parameters:

  • prompt (required): Text description of the image
  • aspectRatio: "1:1" (default), "16:9", "9:16", "4:3", "3:4"
  • sampleCount: 1-8 images (default: 1)
  • negativePrompt: What to avoid in the generation
  • personGeneration: "allow" (default) or "disallow"

geminigeneratetext

Generate text using Gemini models.

Parameters:

  • prompt (required): Input text prompt
  • model: "gemini-1.5-flash" (default), "gemini-1.5-pro", "gemini-2.0-flash-exp"
  • temperature: 0-2 (default: 0.7)
  • maxTokens: 1-8192 (default: 2048)

veogeneratevideo (Coming Soon)

Generate videos with VEO 3.

lyriageneratemusic (Coming Soon)

Generate music with Lyria 2.

🧪 Mock Mode

For testing without API calls, set USE_MOCK: "true" in your configuration. This will return sample responses without using your Google Cloud quota.

🔍 Troubleshooting

JSON Parsing Errors

If you see "Unexpected token" errors:

  1. Update to the latest version: @stevekaplanai/google-ai-mcp@latest
  2. Restart Claude Desktop

Authentication Errors

  • Verify your service account has the aiplatform.user role
  • Check that the JSON credentials are properly escaped
  • Ensure the project ID matches your service account

API Not Found Errors

  • Confirm Vertex AI API is enabled in your project
  • Verify you're using a supported location (us-central1 recommended)

📊 Supported Models

Imagen

  • imagen-3.0-generate-001 - Latest high-quality model
  • imagen-3.0-fast-generate-001 - Faster generation

Gemini

  • gemini-1.5-pro - Most capable model
  • gemini-1.5-flash - Optimized for speed
  • gemini-2.0-flash-exp - Experimental features

🔒 Security Notes

  • Never commit service account keys to version control
  • Use environment variables for production deployments
  • Regularly rotate service account keys
  • Limit service account permissions to minimum required

📝 Changelog

v1.0.2 (Latest)

  • Fixed JSON parsing errors by redirecting debug logs to stderr
  • Improved error handling for API responses
  • Added support for real Imagen API endpoints

v1.0.1

  • Initial release with mock mode
  • Basic Imagen and Gemini support

🤝 Contributing

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

📄 License

MIT License - see [LICENSE](LICENSE) for details.

🙏 Acknowledgments

📧 Support

For issues and questions:


Made with ❤️ by Steve Kaplan

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.