GTI MCP Server
Google Threat Intelligence (GTI) MCP サーバー
本番環境対応の Model Context Protocol (MCP) サーバーであり、Google Threat Intelligence (GTI) および VirusTotal API v3 との包括的な統合を提供します。高性能な非同期 Python、FastAPI、および MCP Streamable HTTP トランスポート標準 (/mcp) を採用し、Google Cloud Run へのデプロイ、Gemini Enterprise および AI Security Agent とのシームレスな連携を想定して設計されています。
🌟 主な機能
ストリーミング可能 HTTP トランスポート (
/mcp): リダイレクトなしのルーティングで MCP Streamable HTTP プロトコル仕様をネイティブサポート。22 以上の脅威インテリジェンスツール: Google Threat Intelligence のコレクション、脅威アクター、キャンペーン、マルウェアファミリー、レポート、ファイルサンドボックス分析、IP/ドメイン/URL テレメトリ、IoC ルックアップへの直接アクセス。
エンタープライズセキュリティ: Google Cloud Secret Manager とのネイティブ統合 (
VT_APIKEY/VT_SECRET_NAME) により、ソースコードにシークレットや API キーが保存されません。Gemini Enterprise & Agent 対応: Google Cloud の ID 認証を使用した IAM 保護エンドポイント (
roles/run.invoker)。自動化されたクラウドデプロイ: Google Cloud Build と Cloud Run を使用したワンコマンドビルド・デプロイスクリプト (
deploy.sh)。
Related MCP server: OSINT MCP Server
🛠️ MCP ツールスイート
カテゴリ | 利用可能なツール |
脅威環境とコレクション |
|
ファイルと IoC テレメトリ |
|
ネットワークインフラストラクチャ |
|
診断とヘルス |
|
🚀 クイックスタート
1. 前提条件
Python 3.10+
プロジェクトアクセスが設定された Google Cloud SDK (
gcloud)有効な Google Threat Intelligence / VirusTotal API キー
2. ローカルセットアップ
リポジトリをクローンし、依存関係をインストールします。
git clone https://github.com/yayefa/GTI-MCP-Server.git
cd GTI-MCP-Server
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt3. 環境設定
サンプル環境ファイルをコピーします。
cp .env.example .env.env を編集して設定を構成します。
PROJECT_ID=your-gcp-project-id
REGION=us-central1
SERVICE_NAME=mcp-gti-mcp-server
VT_SECRET_NAME=VT_APIKEY
SECRET_PROJECT_ID=your-gcp-project-id
LOG_LEVEL=INFO4. ローカルでの実行
uvicorn server:app --host 0.0.0.0 --port 8080 --reload☁️ Google Cloud Run へのデプロイ
1. API キーを Google Secret Manager に保存する
echo -n "YOUR_GTI_VT_API_KEY" | gcloud secrets create "VT_APIKEY" \
--data-file=- \
--project="YOUR_PROJECT_ID" \
--replication-policy="automatic"2. スクリプトによるデプロイ
自動化されたデプロイスクリプトを実行します。
chmod +x deploy.sh
./deploy.sh完全なデプロイ手順と IAM 設定については、DEPLOYMENT.md を参照してください。
🧪 テストと検証
実行中のインスタンスまたはデプロイされた Cloud Run サービスに対して、自動化されたテストクライアントを実行します。
AUTH_TOKEN=$(gcloud auth print-identity-token) \
TARGET_URL="https://<YOUR-CLOUD-RUN-URL>" \
python3 test_client.pyまたは、curl を使用して MCP エンドポイントに直接クエリを実行します。
curl -X POST https://<YOUR-CLOUD-RUN-URL>/mcp \
-H "Authorization: Bearer $(gcloud auth print-identity-token)" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_ip_report",
"arguments": {
"ip_address": "8.8.8.8"
}
}
}'📄 ライセンス
このプロジェクトは Apache 2.0 ライセンスの下でライセンスされています。詳細は LICENSE ファイルを参照してください。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Official VirusTotal MCP server: threat reports, file and URL submissions, and analysis recovery.
An MCP server that provides agents access to the KeldynAI platform
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Hosted MCP server for live public-data APIs and Skills for AI agents.
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server that extracts Indicators of Compromise (IoCs) from unstructured text and checks their reputation across multiple threat intelligence services. It enables real-time analysis of IPs, domains, hashes, and URLs, providing enriched context for security workflows within LLMs.519MIT
- AlicenseDqualityDmaintenanceA comprehensive MCP server providing tools for IP, domain, email, and image-based open-source intelligence. It integrates services like Shodan, VirusTotal, and HaveIBeenPwned to facilitate advanced security research and data gathering.56MIT
- AlicenseNot gradedqualityAmaintenanceAn MCP server that exposes a 60+ tool security and threat-intel stack to AI agents, enabling secret scanning, Sigma rule generation, ransomware lookup, OSINT, and deep research.1MIT
- FlicenseAqualityDmaintenanceMCP server for security analysis using VirusTotal API, enabling AI assistants to analyze URLs, files, IP addresses, and domains with automatic relationship fetching.81-