Skip to main content

Security Command Center MCP server

Project description

Google Cloud Security Command Center (SCC) MCP Server

This is an MCP (Model Context Protocol) server for interacting with Google Cloud Security Command Center (SCC) and Cloud Asset Inventory (CAI).

Features

Available Tools

  • top_vulnerability_findings(project_id, max_findings=20)

    • Description: Lists the top ACTIVE, HIGH or CRITICAL severity findings of class VULNERABILITY for a specific project, sorted by Attack Exposure Score (descending). Includes the Attack Exposure score in the output if available. Aids prioritization for remediation.
    • Parameters:
      • project_id (required): The Google Cloud project ID (e.g., 'my-gcp-project').
      • max_findings (optional): The maximum number of findings to return. Defaults to 20.
  • get_finding_remediation(project_id, resource_name=None, category=None, finding_id=None)

    • Description: Gets the remediation steps (nextSteps) for a specific finding within a project, along with details of the affected resource fetched from Cloud Asset Inventory (CAI). The finding can be identified either by its resource_name and category (for ACTIVE findings) or directly by its finding_id (regardless of state).
    • Parameters:
      • project_id (required): The Google Cloud project ID (e.g., 'my-gcp-project').
      • resource_name (optional): The full resource name associated with the finding (e.g., //container.googleapis.com/projects/my-project/locations/us-central1/clusters/my-cluster). Required if finding_id is not provided.
      • category (optional): The category of the finding (e.g., GKE_SECURITY_BULLETIN). Required if finding_id is not provided.
      • finding_id (optional): The ID of the finding to search for directly (e.g., finding123). Required if resource_name and category are not provided.

Configuration

MCP Server Configuration

Add the following configuration to your MCP client's settings file:

NOTE: For OSX users, if you used this one-liner to install uv, use the full path to the uv binary for the "command" value below, as uv will not be placed in the system path for Claude to use! For example: /Users/yourusername/.local/bin/uv instead of just uv.

{
  "mcpServers": {
    "scc-mcp": {
      "command": "uv",
      "args": [
        "--env-file=/path/to/your/env",
        "--directory",
        "/path/to/the/repo/server/scc",
        "run",
        "scc_mcp.py"
      ],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
  }
}

Authentication

The server uses Google Cloud's authentication mechanisms. Ensure you have one of the following configured in the environment where the server runs:

  1. Application Default Credentials (ADC) set up (e.g., via gcloud auth application-default login).
  2. The GOOGLE_APPLICATION_CREDENTIALS environment variable pointing to a valid service account key file.

Required IAM Permissions

Appropriate IAM permissions are required on the target Google Cloud project(s):

  • Security Command Center: roles/securitycenter.adminViewer or roles/securitycenter.adminEditor
  • Cloud Asset Inventory: roles/cloudasset.viewer

License

Apache 2.0

Development

The project is structured as follows:

  • scc_mcp.py: Main MCP server implementation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scc_mcp-0.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scc_mcp-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file scc_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: scc_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for scc_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 392b6a4357a1f2d08bfd34983052be8ce6080080edf21194ed4cad2f148b51a6
MD5 6690bf65add74427edd0e2aae521697b
BLAKE2b-256 5afe1ff1e7a1aec2f8f32661970eb898ba4a648478d900b532f0155d200d85b9

See more details on using hashes here.

File details

Details for the file scc_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scc_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for scc_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4aa51219a1a43d8a932a4f3e9fab0b7ebbd58f378d67b2b8d362de06665c45ae
MD5 8320fab303aacc424fe3f6b30df4bec6
BLAKE2b-256 144fb75978bdedcdfc700a9b59e3877a01f0ecf6b83970af69eb23fe5394b2d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page