A

AI Vision

Integrates with Google's Gemini and Vertex AI models to analyze images, compare multiple images, and...

195 views
0 installs
Updated Nov 21, 2025
Not audited
Integrates with Google's Gemini and Vertex AI models to analyze images, compare multiple images, and process video content with intelligent file handling that automatically optimizes upload strategies for different file sizes.

1. Using Google AI Studio (Gemini) Provider

If your configuration uses:

  • IMAGE_PROVIDER=google
  • VIDEO_PROVIDER=google
  • GEMINI_API_KEY=your-gemini-api-key

Follow these steps:

  1. Go to Google AI Studio API Keys Page
    Visit https://aistudio.google.com/app/api-keys.

  2. Create a New API Key

    • Click the “Create API Key” button if you do not already have a key.
    • Give it a name to help you identify it and select the required scopes if asked.
  3. Copy Your API Key

    • Once created, copy your API key. This is the value you'll use for GEMINI_API_KEY.
  4. Add the Value to FastMCP

    • Go to the FastMCP connection interface.
    • Use the “Install Now” button or add a new server.
    • In the environmental variables section, paste your API key in the GEMINI_API_KEY field. Set the following:
      • IMAGE_PROVIDER = google
      • VIDEO_PROVIDER = google
      • GEMINI_API_KEY =

2. Using Vertex AI Provider

If your configuration uses:

  • IMAGE_PROVIDER=vertex_ai
  • VIDEO_PROVIDER=vertex_ai
  • VERTEX_CREDENTIALS=/path/to/service-account.json
  • GCS_BUCKET_NAME=your-gcs-bucket

Follow these steps:

  1. Create a Service Account in Google Cloud Console

    • Go to Google Cloud Console.
    • Navigate to “IAM & Admin” > “Service Accounts”.
    • Click “Create Service Account”.
    • Give it a name, e.g., vertex-ai-mcp.
  2. Grant the Service Account Required Permissions

    • Assign the following roles:
      • “Vertex AI User”
      • “Storage Admin” (so the server can upload to Google Cloud Storage)
      • Any other roles your use-case requires.
  3. Create and Download a Service Account Key

    • With your service account selected, go to the “Keys” tab.
    • Click “Add Key” > “Create new key”.
    • Select “JSON” and click “Create”.
    • Download and save the JSON file securely (do not share this file).
  4. Create or Choose a Google Cloud Storage Bucket

    • Go to “Storage” in Google Cloud Console.
    • Click “Create bucket” or select an existing bucket.
    • Note the name of the bucket—you will use this for GCS_BUCKET_NAME.
  5. Add the Values to FastMCP

    • Go to the FastMCP connection interface.
    • Use the “Install Now” button or add a new server.
    • In the environment variables section:
      • Set IMAGE_PROVIDER = vertex_ai
      • Set VIDEO_PROVIDER = vertex_ai
      • Upload the service account JSON file and set the path as VERTEX_CREDENTIALS
      • Set GCS_BUCKET_NAME to the bucket name from step 4.

Note:
Do not expose your Service Account JSON key. Keep it stored securely.


Summary Table:

Variable How to obtain
GEMINI_API_KEY Google AI Studio API Keys page
VERTEX_CREDENTIALS Download from Google Cloud “Service Accounts”
GCS_BUCKET_NAME Name from Google Cloud Storage Buckets

You can now proceed with the rest of your configuration using FastMCP.

Quick Start

View on GitHub

More for AI and Machine Learning

View All →

Similar MCP Servers

Report Issue

Thank you! Your issue report has been submitted successfully.