StepSecurity MCP Server
This page covers the StepSecurity MCP server, which lets AI assistants call the StepSecurity API on your behalf. For the organization-wide inventory of MCP servers configured on developer machines, see MCP Servers under Dev Machine Guard.
The StepSecurity MCP server is a remote Model Context Protocol server that exposes a curated set of StepSecurity APIs as LLM-callable tools. Connect it to Claude Code, Claude Desktop, Cursor, or any other MCP client, and investigate supply chain and CI/CD security issues in plain English: check whether your tenant is exposed to a package compromise, browse recent Harden-Runner detections, trace an IOC across workflow runs, explain why a workflow run made a particular network call, review your Actions security posture, or audit which workflows use a specific GitHub Action.
Authentication uses OAuth with your existing StepSecurity login, so the configuration contains no secrets and is safe to commit to a shared repository. Each user signs in individually, and every tool call is limited to what that user's role can already access.
The server URL is:
https://agent.api.stepsecurity.io/v1/mcpQuick Start Guide
Step 1: Add the server to your MCP client
Add this to your project's .mcp.json (or your client's MCP settings). No API key is required:
{
"mcpServers": {
"stepsecurity": {
"url": "https://agent.api.stepsecurity.io/v1/mcp"
}
}
}Or with the Claude Code CLI:
claude mcp add --transport http stepsecurity "https://agent.api.stepsecurity.io/v1/mcp"Step 2: Sign in from the browser
On first use, your MCP client opens a browser window to the StepSecurity console. Sign in the way you always do: SSO, GitHub, or email. Each user authenticates individually, so there are no shared credentials to distribute or rotate.
Step 3: Review and approve access
The consent screen shows the requesting client, your tenant, and the requested scopes. By default the grant is read-only across the resources you can access; you can narrow the selection or expand a section to grant write access (for example, suppression rule writes). Issued tokens are per-user, honor your existing role permissions, and refresh automatically.
Step 4: Ask a question
You do not need to know tool names. The LLM chains tool calls automatically from a natural language prompt. Try:
"Check if we are affected by the keyv npm supply chain incident."
"What are the recent detections in StepSecurity for my tenant?"
"Which workflows use
aquasecurity/trivy-action?""Summarize my Actions security posture."
API Key and CI Authentication
Automation that cannot open a browser authenticates with a bearer token in the Authorization header instead of OAuth. Both options below use the same server URL. Because raw API keys do not carry a tenant, pin the tenant with a ?customer= query parameter.
Option 1: API key or personal access token
Use an API key from the StepSecurity API (Tenant Access) integration or a personal access token. Reference it through an environment variable so the key never lands in git; MCP clients expand ${VAR} from each developer's environment:
A Tenant Read-Only API Key covers every read tool and is the recommended default.
Option 2: GitHub Actions OIDC (no stored secret)
Workflows exchange their GitHub OIDC token for a short-lived StepSecurity token, so nothing is stored in secrets. Configure an OIDC trust policy on the StepSecurity API (Tenant Access) page first, then mint the token in the workflow and pass it as the Authorization header:
Incident Exposure Checks
The check_incident_exposure tool answers "am I affected by this incident?" in a single call:
Pass the incident id (from
list_threat_incidents) or the incident group id shown in the dashboard's incident search preset, for examplekeyv-npm-supply-chain-2026-aug.The tool resolves the full compromised package list for the incident and bulk searches both surfaces at once: CI (workflow runs, PRs, and default branches across your organization) and enrolled dev machines.
By default it matches only the exact compromised versions, the same as the dashboard's "exact" preset. Pass
anyVersion: trueto match any version of the listed packages.It also reminds the assistant to check the incident's C2 indicators with
check_ioc_in_baseline, so a prompt like "check if we are affected by the keyv npm supply chain incident" covers packages and IOCs end to end.
Workflow Run Investigation
Four run-scoped tools explain what one workflow run actually did, going beyond the detections shown in the dashboard. They are the fastest way to answer a question like "why did this run call the public npm registry?":
list_outbound_calls_in_runreturns every outbound network call in the run, baseline traffic included (not only anomalous or blocked calls). Each row carries the process that made the call, its pid, the job and step, a timestamp, and abaseline,anomalous, orblockedlabel. Filter by domain, process, job, or label, and setincludeBaselineStatsto see how often each destination appears in the repository's history.get_run_process_eventsreturns the raw process tree for a job: pid, parent pid, executable, full arguments, working directory, step, and timestamp. Filter by the pid that made a call, or by executable or arguments, and setincludeAncestorsto see the chain that launched a process.get_run_file_eventsreturns which process wrote which file, so you can check, for example, whether a step wrote registry configuration before a package manager ran.list_run_detectionsreturns every detection recorded for one run, across all detection types, in a single call.
A typical investigation chains them: find the call and its process with list_outbound_calls_in_run, then trace what launched that process with get_run_process_events. The three run-events tools accept an optional run attempt (defaulting to the latest) and echo the attempt they served, so you can pin an investigation to a specific re-run and line the event timestamps up against the GitHub build log for the same run and attempt.
Available Tools
Run describe_capabilities from your MCP client for a self-describing summary. Tools by area:
Connection and tenant
ping, describe_capabilities, get_my_tenant, list_tenant_github_orgs
Detections
list_anomalous_network_calls, list_blocked_domain_calls, list_https_outbound_calls, list_suspicious_process_events, list_secrets_in_build_log, list_imposter_commit_detections, list_suspicious_files, list_detections, analyze_anomalous_calls_by_process
Threat center and exposure checks
list_threat_incidents, get_threat_incident, check_incident_exposure, check_npm_package_exposure, check_pypi_package_exposure, check_npm_package_on_dev_machines, check_python_package_on_dev_machines, check_ioc_in_baseline, find_endpoint_calls_in_tenant, find_repos_using_endpoint
Actions posture and reports
get_actions_security_summary, get_actions_controls_summary, get_control_detail, get_actions_governance_metrics, get_harden_runner_coverage
Workflows and inventory
list_recent_workflow_runs, list_github_api_calls_in_run, list_workflow_actions, search_action_usage, list_reusable_workflows, list_arc_clusters, list_actions_secrets, list_github_apps, list_github_checks, list_artifact_attestations
Workflow run investigation
list_run_detections, list_outbound_calls_in_run, get_run_process_events, get_run_file_events
Policies
list_actions_policies, get_actions_policy, list_harden_runner_rules, list_run_policies, get_run_policy, list_run_policy_evaluations, list_policy_driven_prs, get_policy_driven_pr_config
Suppression rules
list_suppression_rules, get_suppression_rule, preview_suppression_rule
Secure Registry
get_secure_registry_setup, list_secure_registry_controls, list_secure_registry_audit_logs, list_package_config_audits
Dev Machine Guard
list_dev_machines, get_dev_machine, list_dev_machine_inventory, get_dev_machine_inventory_item, list_dev_machine_policies, list_dev_machine_profiles, list_ai_coding_agents
Dev Machine Guard AI inventory
list_agent_plugins, get_agent_plugin; list_agent_skills, get_agent_skill; list_mcp_servers, get_mcp_server
Use the list tools to find plugins, skills, and MCP servers across your fleet. Use the corresponding get tool to inspect a specific item and its associated devices. These tools report collected inventory, not live MCP connection status.
The generic inventory tools, list_dev_machine_inventory and get_dev_machine_inventory_item, remain available for every other inventory category.
Security Notes
Read-only by default. The OAuth consent screen grants read-only access unless you explicitly expand a section to include writes. Suppression rule writes require the explicit write scope; with the default grant, write tools are not available.
Tokens follow your role. Every call is limited to what your StepSecurity role can already access. The MCP server does not grant any permission you do not already have in the console.
No shared credentials. OAuth tokens are per-user and refresh automatically. For headless use, prefer a Tenant Read-Only API Key referenced through an environment variable, or the GitHub Actions OIDC exchange, which stores no secret at all.
Last updated
Was this helpful?