
tan-yong-sheng/ai-vision-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
tan-yong-sheng/ai-vision-mcp は [https://github.com/tan-yong-sheng/ai-vision-mcp. からインポートされた MCP サーバーの候補です
概要
tan-yong-sheng/ai-vision-mcp は [https://github.com/tan-yong-sheng/ai-vision-mcp. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
Google Gemini と Vertex AI モデルを使用して、AI 搭載画像とビデオ解析を実現する強力なモデルコンテキストプロトコル (MCP) サーバー。
##特徴
-Dual Provider Support: Google Gemini API と Vertex AI の間で選択 -Multimodal Analysis:画像とビデオコンテンツ分析の両方のサポート
- 柔軟なファイル処理:複数のメソッド(URL、ローカルファイル、ベース64)でアップロード
- ストレージの統合:内蔵のGoogleクラウドストレージのサポート
- 包括的な検証: Zodベースのデータ検証 -エラー処理: 再試行ロジックと回路ブレーカによる誤り処理
- TypeScript:厳密なタイプ点検を用いる完全なTypeScriptサポート
クイックスタート
前提条件
google プロバイダーまたは vertex_ai プロバイダを使用するかを選択できます。 シンプルさのために、 [google] プロバイダをお勧めします。
以下は、選択したプロバイダに基づいて設定する必要がある環境変数です。 (注:MCP クライアントのタイムアウト設定を 5 分以内に設定することをお勧めします)。
(i)Google AI Studio プロバイダーの使用
Google AI StudioのAPIキーをここに入手
(ii) Vertex AI プロバイダーの使用**
設定方法はこちらのガイドラインをご覧ください.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
AI Vision MCP Server
A powerful Model Context Protocol (MCP) server that provides AI-powered image and video analysis using Google Gemini and Vertex AI models.
Features
- Dual Provider Support: Choose between Google Gemini API and Vertex AI
- Multimodal Analysis: Support for both image and video content analysis
- Flexible File Handling: Upload via multiple methods (URLs, local files, base64)
- Storage Integration: Built-in Google Cloud Storage support
- Comprehensive Validation: Zod-based data validation throughout
- Error Handling: Robust error handling with retry logic and circuit breakers
- TypeScript: Full TypeScript support with strict type checking
Quick Start
Pre-requisites
You could choose either to use google provider or vertex_ai provider. For simplicity, google provider is recommended.
Below are the environment variables you need to set based on your selected provider. (Note: It’s recommended to set the timeout configuration to more than 5 minutes for your MCP client).
(i) Using Google AI Studio Provider
export IMAGE_PROVIDER="google" # or vertex_ai
export VIDEO_PROVIDER="google" # or vertex_ai
export GEMINI_API_KEY="your-gemini-api-key"
Get your Google AI Studio’s api key here
(ii) Using Vertex AI Provider
export IMAGE_PROVIDER="vertex_ai"
export VIDEO_PROVIDER="vertex_ai"
export VERTEX_CLIENT_EMAIL="[email protected]"
export VERTEX_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n"
export VERTEX_PROJECT_ID="your-gcp-project-id"
export GCS_BUCKET_NAME="your-gcs-bucket"
Refer to the guideline here on how to set this up.
Installation
Below are the installation guide for this MCP on different MCP clients, such as Claude Desktop, Claude Code, Cursor, Cline, etc.
Add to your Claude Desktop configuration:
(i) Using Google AI Studio Provider
{
"mcpServers": {
"ai-vision-mcp": {
"command": "npx",
"args": ["ai-vision-mcp"],
"env": {
"IMAGE_PROVIDER": "google",
"VIDEO_PROVIDER": "google",
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}
(ii) Using Vertex AI Provider
{
"mcpServers": {
"ai-vision-mcp": {
"command": "npx",
"args": ["ai-vision-mcp"],
"env": {
"IMAGE_PROVIDER": "vertex_ai",
"VIDEO_PROVIDER": "vertex_ai",
"VERTEX_CLIENT_EMAIL": "[email protected]",
"VERTEX_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",
"VERTEX_PROJECT_ID": "your-gcp-project-id",
"GCS_BUCKET_NAME": "ai-vision-mcp-{VERTEX_PROJECT_ID}"
}
}
}
}
インストール
npx ai-vision-mcp設定
{
"mcpServers": {
"ai-vision-mcp": {
"command": "npx",
"args": ["ai-vision-mcp"],
"env": {
"IMAGE_PROVIDER": "google",
"VIDEO_PROVIDER": "google",
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}