Skip to main content
Glama
yayefa
by yayefa

Google Threat Intelligence (GTI) MCP 服务器

Model Context Protocol Google Cloud Run License

一个生产级的 Model Context Protocol (MCP) 服务器,提供与 Google Threat Intelligence (GTI)VirusTotal API v3 的全面集成。基于高性能异步 Python、FastAPI 和 MCP Streamable HTTP 传输标准(/mcp)构建,专为在 Google Cloud Run 上部署以及与 Gemini Enterprise 和 AI 安全代理无缝交互而设计。


🌟 主要特性

  • Streamable HTTP 传输 (/mcp):原生支持 MCP Streamable HTTP 协议规范,使用零重定向路由。

  • 22+ 威胁情报工具:直接访问 Google Threat Intelligence 集合、威胁行为者、活动、恶意软件家族、报告、文件沙箱分析、IP/域名/URL 遥测以及 IoC 查询。

  • 企业级安全:原生集成 Google Cloud Secret ManagerVT_APIKEY / VT_SECRET_NAME),确保无需在源代码中存储任何密钥或 API 密钥。

  • Gemini Enterprise 与 Agent 就绪:IAM 保护端点(roles/run.invoker),支持 Google Cloud 身份验证。

  • 自动化云部署:使用 Google Cloud Build 和 Cloud Run 的一键构建与部署脚本(deploy.sh)。


Related MCP server: OSINT MCP Server

🛠️ MCP 工具套件

类别

可用工具

威胁态势与集合

search_threat_actors, get_threat_actor, search_campaigns, get_campaign, search_malware_families, get_malware_family, search_reports, get_threat_report

文件与 IoC 遥测

get_file_report, get_file_behaviour, search_ioc, get_file_sigma_analysis, get_file_yara_rules

网络基础设施

get_ip_report, get_domain_report, get_url_report, get_ip_communicating_files, get_domain_communicating_files, get_ip_historical_ssl, get_domain_subdomains

诊断与健康检查

health_check, get_server_status


🚀 快速开始

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

3. 环境配置

复制示例环境文件:

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=INFO

4. 本地运行

uvicorn server:app --host 0.0.0.0 --port 8080 --reload

☁️ 部署到 Google Cloud Run

1. 在 Google Secret Manager 中存储 API 密钥

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 文件。

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    An 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.
    5
    19
    MIT
  • A
    license
    D
    quality
    D
    maintenance
    A 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.
    56
    20
    ISC
  • A
    license
    -
    quality
    A
    maintenance
    An 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.
    1
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    MCP server for security analysis using VirusTotal API, enabling AI assistants to analyze URLs, files, IP addresses, and domains with automatic relationship fetching.
    8
    1

View all related MCP servers

Related MCP Connectors

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • MCP server exposing the Backtest360 engine API as tools for AI agents.

  • Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yayefa/GTI-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server