Server data from the Official MCP Registry
Find and fix code security risks, exposed secrets and vulnerable dependencies with Apiiro context
About
Find and fix code security risks, exposed secrets and vulnerable dependencies with Apiiro context
Remote endpoints: streamable-http: https://mcp.apiiro.com/mcp
Security Report
Valid MCP server (1 strong, 1 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.
Endpoint verified · Requires authentication · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Found in Source Code
Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.
How to Connect
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"io-github-apiiro-guardian-agent": {
"url": "https://mcp.apiiro.com/mcp"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
Apiiro Guardian CLI
Command-line interface for the Apiiro Guardian Agent — discover inventory, assess risk, detect vulnerabilities, fix risk, and prevent risk.
Installation
One-line install (macOS / Linux / Windows)
The recommended install path. Downloads the right binary for your platform, verifies its checksum, installs it to a user directory (no sudo), and configures PATH.
# macOS / Linux
curl -fsSL https://apiiro.com/install.sh | bash
# Windows (PowerShell)
irm https://apiiro.com/install.ps1 | iex
Then run apiiro login and apiiro init to wire skills + prevention hooks into your coding agents.
Environment overrides: APIIRO_INSTALL_DIR, APIIRO_VERSION (the version to install), APIIRO_NO_MODIFY_PATH.
Every install method updates itself to the version your organization selects in Apiiro; see Update.
npm (macOS / Linux / Windows)
Requires Node.js 18+. No Bun needed — the right prebuilt binary is installed automatically for your platform.
npm i -g apiiro-cli # installs the `apiiro` command
apiiro --help
Or run without installing:
npx apiiro-cli --help
Other install methods
Homebrew (macOS / Linux)
brew tap apiiro/tap
brew trust apiiro/tap # required on Homebrew 6.0+
brew install apiiro
Homebrew 6.0+ refuses formulae from untrusted third-party taps, so the one-time
brew truststep is required. Trust the tap, not the individual formula — trusting onlyapiiro/tap/apiiroleaves Homebrew erroring on the tap's other formula (apiiro-latest) in later commands.
Direct Download
Pre-compiled binaries for all platforms are available on the releases page:
| Platform | Binary |
|---|---|
| macOS Apple Silicon (M1/M2/M3/M4) | apiiro-macos-arm64 |
| macOS Intel | apiiro-macos-x64 |
| Linux x64 | apiiro-linux-x64 |
| Linux ARM64 | apiiro-linux-arm64 |
| Windows x64 | apiiro-win.exe |
# macOS / Linux: download, make executable, and move to PATH
chmod +x apiiro-*
sudo mv apiiro-* /usr/local/bin/apiiro
On Windows, move apiiro-win.exe to a directory on your PATH (optionally rename to apiiro.exe).
RPM (Linux)
sudo yum install -y https://github.com/apiiro/marketplace/releases/latest/download/apiiro-<version>-1.x86_64.rpm
Organization-wide deployment (macOS/MDM)
Jamf deployments use the versioned policy script, with no package to build or upload. The policy downloads a pinned public CLI release, verifies its checksum, and installs one root-owned binary at /opt/apiiro/bin/apiiro before configuring the logged-in user's skills and hooks. Jamf only installs the CLI: after that, the CLI follows the version your organization selects in Apiiro. To let Jamf manage the version instead, set the Apiiro CLI version setting to Off.
The default profile enables Secure Prompt for Claude Code and leaves scanning disabled. Set Parameter 6 to the approved release version; use Parameter 7=all when ready to enable the other public prevention capabilities. Parameter 8 defaults to published; use pkg to configure an approved package build without downloading or replacing its binary. Keep opted-out computers excluded from the policy scope. Read the Jamf guide for triggers, authentication, and verification.
pre-commit
Add to .pre-commit-config.yaml:
repos:
- repo: https://github.com/apiiro/marketplace
rev: <VERSION> # get latest from https://github.com/apiiro/marketplace/releases
hooks:
- id: apiiro-fast-scan # secrets + OSS
# - id: apiiro-secrets-scan # secrets only
# - id: apiiro-oss-scan # OSS only
Windows: pre-commit hooks are POSIX shell scripts; run them via Git Bash (bundled with Git for Windows) or WSL.
AI coding agent setup
The recommended setup detects Claude Code, Cursor, GitHub Copilot CLI, OpenAI Codex, and opencode, installs their skills and prevention hooks, then verifies the result:
apiiro init
apiiro doctor
Common options:
apiiro init --claude # Claude only; --cursor, --copilot, --codex, and --opencode are also available
apiiro init --skills-only # Skip prevention hooks
apiiro init --dry-run # Preview file changes
apiiro init --non-interactive # Unattended / MDM setup
apiiro uninstall # Remove skills and hooks
apiiro uninstall --remove-binary
Restart Claude Code and opencode after setup. For skills without prevention hooks, use apiiro agents install. Without the CLI, install them with Vercel Skills:
npx skills add apiiro/marketplace
Marketplace plugins are also available for interactive installs. Each host offers
an apiiro skills plugin and an opt-in apiiro-prevention hooks plugin. Claude
Code also offers guardian-enrichment, which displays the security requirements
Guardian added to each enriched prompt in the terminal and desktop app:
In Claude Code, register the marketplace and install both plugins:
/plugin marketplace add apiiro/marketplace
/plugin install apiiro-prevention@apiiro
/plugin install guardian-enrichment@apiiro
Then run:
apiiro hooks config enable preventLog
The enrichment log is off by default. When enabled, it keeps redacted prompt
excerpts and the added security context in ~/.apiiro/prevent-log/ for seven
days. Local processes running as your user can read it. The plugin code makes no
network requests, but Claude Code may persist or sync plugin state according to
its own host settings; that state includes recent redacted event excerpts and UI
state.
Each host also offers the following plugins:
# OpenAI Codex
codex plugin marketplace add apiiro/marketplace
codex plugin add apiiro@apiiro
codex plugin add apiiro-prevention@apiiro
# GitHub Copilot CLI
copilot plugin marketplace add apiiro/marketplace
copilot plugin install apiiro@apiiro
copilot plugin install apiiro-prevention@apiiro
Claude Code and Cursor expose these plugin names through their plugin
browsers. Choose either the prevention plugin or apiiro init/apiiro hooks <agent> install for a host, not both, because hosts combine hook sources. Fleet
and Jamf deployments should continue using apiiro init --non-interactive.
Available skills: guardian-risks, guardian-fix, guardian-inventory, guardian-api, guardian-query, guardian-threat-model, guardian-scan, guardian-secure-prompt, guardian-setup.
Hosted MCP server
Apiiro Guardian is also available as a hosted MCP server at https://mcp.apiiro.com/mcp. It needs no local install: the server uses OAuth, so your MCP client opens the Apiiro sign-in page the first time it connects, and the tools only see what your Apiiro account can access. Never put an API key or token in the MCP configuration.
Kiro: one-click install:
Or add it to .kiro/settings/mcp.json (workspace) or ~/.kiro/settings/mcp.json (user):
{
"mcpServers": {
"apiiro": {
"url": "https://mcp.apiiro.com/mcp",
"disabled": false,
"autoApprove": []
}
}
}
Gemini CLI: this repository is a Gemini CLI extension (gemini-extension.json), which adds the MCP server and a short GEMINI.md context file:
gemini extensions install https://github.com/apiiro/marketplace
Inside Gemini CLI, run /mcp auth apiiro if you need to sign in again.
Antigravity: the antigravity/ folder is an Antigravity plugin with the MCP server and an always-on rule. Install it from a local clone:
git clone https://github.com/apiiro/marketplace && agy plugin install ./marketplace/antigravity
To sign in again in the Antigravity App, open Customizations > Installed and click Authenticate next to the Apiiro server.
Other MCP clients: use the server URL with the streamable HTTP transport, for example {"mcpServers": {"apiiro": {"url": "https://mcp.apiiro.com/mcp"}}}.
Privacy Policy: apiiro.com/privacy-policy. Support: support.apiiro.com (see Support).
Authentication
# Login via OAuth (opens browser)
apiiro login
# Login by entering a short code in any browser — when the usual browser
# sign-in cannot complete on this machine
apiiro login --device
# Check status
apiiro auth status
# Logout
apiiro logout
Alternatively, set the APIIRO_API_KEY environment variable.
Commands
Scans
Read results for diff, pull-request and build scans, or trigger a new scan. Agent skill: guardian-scan.
apiiro scans <id> # Diff scan results (V2)
apiiro scans <id> --type pr --wait # Wait for pull-request results
apiiro scans <id> --type build # Build scan results
apiiro scans <id> --legacy # V1 diff results (also supported for pr)
apiiro scans --config --git-url https://github.com/org/repo
apiiro scans trigger -b main -c feature-branch -r https://github.com/org/repo --wait --yes
apiiro scans trigger --type diff -b <base-sha> -c <candidate-sha> \
--baseline-type Commit --candidate-type Commit --wait --yes
apiiro scans trigger --type pr --pr 42 -r https://github.com/org/repo --wait --yes
apiiro scans trigger --type build --commit <40-character-sha> --branch main --directory src --yes
apiiro scans trigger --finish-upload <id> --type pr --yes
Triggers ask for confirmation every time; --yes skips the question for automation. The default type is diff. Repository URLs are detected from git when -r, --repository-url is omitted. Diff triggers also support -i, --interactive, --baseline-type and --candidate-type (Branch, Tag, Commit), --wait-external, --legacy, and --no-wait. Pull-request and build triggers support --wait. --wait-external applies to diff and pull-request triggers. --finish-upload applies to diff and pull-request scans that wait for external findings.
Build scan commits must have 40 hexadecimal characters; uppercase letters are accepted and sent lowercase.
Results support --wait, --timeout <seconds> (default: 300), -o json|text, and -f <path>. Exit codes: 0 = Success or Warn (or a passing build), 1 = Block, a failing build or an error, including a wait timeout, 2 = not signed in or results still pending without --wait. Keep the scan ID to check again after a timeout.
Quick Scans
Scan changed or staged files for secrets, OSS vulnerabilities, AI SAST code weaknesses, and IaC misconfigurations. The default runs all four scanners. AI SAST can take several minutes. Requires a git repository with a remote. A --staged scan (the pre-commit hook) or an IDE scan skips a repository Apiiro does not monitor before uploading file contents. A scan you run yourself also covers unmonitored repositories, such as an open-source project you are evaluating; a repository Apiiro does not know needs an organization-wide Apiiro user scope. Skipped scans are reported with a reason.
apiiro scans trigger --type quick --yes
apiiro scans trigger --type quick src/config.ts --scanners secrets --yes
apiiro scans trigger --type quick --staged --scanners secrets,oss --yes
apiiro scans trigger --type quick --scanners secrets,oss,ai-sast,iac --yes
Choose one scanner, or include both secrets and oss with optional ai-sast and iac.
Quick scans use the same output, server verdicts and exit codes as fast-scan: 0 for clean results or a scanner that could not run; 1 for findings, a server Block, or a usage error. With a server verdict, Warn and Success allow the scan even when findings are present. The new commands require sign-in (exit 2 when missing). The pattern-scanner budget is 2 seconds by default, capped at 5 with --timeout; individual AI SAST and IaC scans use their existing longer budgets.
The old names still work. diff-scan is a hidden, deprecated alias with its original flags (-s <id> to read results), and runs without confirmation. fast-scan and every subcommand remain available without warnings or confirmation for installed hooks and IDE integrations. For example, apiiro fast-scan all --staged runs secrets and OSS; apiiro fast-scan secrets --full --fail-on high scans whole files with an explicit severity threshold. Its --commit and --base-commit options remain available. Signed-out fast scans keep reporting a skipped scan with exit 0; fast-scan config requires sign-in.
Fast Scan
Quick local scanning for secrets and OSS vulnerabilities. Requires a git repository with an origin remote. --staged and IDE scans skip unmonitored repositories before uploading file contents; a scan you run yourself also covers unmonitored repositories. Skipped scans are not reported as clean. Auto-detects changed files in the current git repo. Agent skill: guardian-scan.
apiiro fast-scan secrets # Scan for secrets
apiiro fast-scan secrets --staged # Scan staged files only (pre-commit)
apiiro fast-scan secrets --full # Scan entire file, not just git-changed lines
apiiro fast-scan oss # Scan for OSS vulnerabilities
apiiro fast-scan all # Run both concurrently
apiiro fast-scan config # Get scan configuration
apiiro fast-scan secrets --timeout 5 # Scan budget in seconds (default 2, max 5)
apiiro fast-scan all --commit <sha> --base-commit <ref> # Attribute the scan to a commit / diff against a baseline ref (both default: HEAD)
Exit codes: 0 = clean, or a scan that could not run; 1 = findings at or above the --fail-on threshold (default: any finding), a block by your organization's prevention workflows, or a usage error (a file that does not exist, a --commit or --base-commit that is not a commit, an output file that cannot be written, or running outside a git repository). A scan that cannot run never fails the command: when you are not signed in, the repository is not monitored or is outside your Apiiro user scope, your role lacks the Fast scan permission, Fast Scan is not enabled, the scan times out, or a scanner errors, the CLI prints the reason as a warning and exits 0, so a pre-commit hook built on it lets the commit through.
fast-scan --staged skips its scan when the Apiiro coding-agent hook has already checked the same staged files for the same commit and reached a decision fast-scan would repeat, so a commit is scanned once, and repeats the reason when that decision was "the scan could not run here" (for example a repository outside your user scope); a warning-level verdict, any finding, a partial scan, another remote, branch or API URL, or a run with --repository-key is scanned again. A file that was staged and then deleted from the working tree is scanned from the index, because that is what the commit contains.
When your organization defines prevention (FastScan) workflows, the scan response carries a server verdict and that verdict decides the exit code instead of the default --fail-on threshold — Block fails the run, Warn and Success do not, even when High/Critical findings are present. An explicitly passed --fail-on <severity> stays a floor (findings at or above it still fail the run under a Success verdict), and --fail-on none always keeps exit 0 (report-only). Without a verdict the --fail-on behavior is unchanged.
Diff Scan
Compare two git references for security risks. Primary CI/CD integration point. Agent skill: guardian-scan.
# Trigger and wait for results
apiiro diff-scan -b main -c feature-branch -r https://github.com/org/repo --wait
# Use commit SHAs
apiiro diff-scan -b abc123 -c def456 -r https://github.com/org/repo \
--baseline-type Commit --candidate-type Commit --wait
# Check status of an existing scan
apiiro diff-scan -s <scan-id>
# Interactive mode
apiiro diff-scan -i
Exit codes: 0 = Success or Warn, 1 = Block or an error (including a --wait timeout), 2 = not signed in, or the scan checked with -s is still running. A blocked scan exits 1 whether you wait for it with --wait or check it later with -s <scan-id>.
Pull Requests
apiiro pull-requests --repo <scmRepositoryKey> --status Blocked Pending -o json
apiiro pull-requests --stats --workflow <key> --look-back-days 30
apiiro pull-requests --server-url https://github.com --since 2026-10-01 --until 2026-10-31
Allowed statuses: Blocked, Unblocked, Pending, TimedOut. Filters also accept --repo, --workflow, and exact --server-url. --look-back-days accepts 0–365 (server default: 30); ISO --since and --until narrow that window. Both list and statistics use offset paging: --page-size defaults to 100 (max: 1000), --max-pages defaults to 5. A capped result prints a truncation note; JSON is {items, truncated}. Use -o json|text and -f <path> for output.
CI/CD Records
apiiro cicd create --build --commit <40-lowercase-hex-sha> --repo <repositoryKey> \
--version 1.2 --application payments --build-id 42 --build-url https://example.com/build/42 --yes
apiiro cicd create --deployment --deployment-id 42 --name production --url https://example.com/deploy/42 \
--commit <sha1> <sha2> --repo-version payments=1.2 web=2.0 --yes
Choose exactly one of --build or --deployment. Build records require one commit and a repository key. Deployment records require --deployment-id and at least one --commit or --repo-version; --name and --url are optional. These commands record metadata through the existing CI/CD API. They ask before sending; --yes skips confirmation. Successful writes have an empty server response and print a success message ({} with -o json). Output supports -o json|text and -f <path>.
Managed Semgrep
apiiro semgrep -o json
apiiro semgrep update --git https://github.com/org/rules --yes
apiiro semgrep update --git <url> --provider-repo <key> --yes
apiiro semgrep update --tar rules.tar --yes
Updates require exactly one of --git or --tar; --provider-repo requires --git. Updates ask before replacing the rules; --yes skips confirmation. Tar files stream from disk with a default request timeout of 600 seconds; set --timeout <seconds> to override it. Updates print the server's message. All commands support -o json|text and -f <path>. Configuration can be unavailable when AI SAST scan effort manages the rules.
Risks
List, inspect and change risks. Agent skills: guardian-risks (list/inspect/change), guardian-fix (remediate).
apiiro risks # List risks (auto-detects repo)
apiiro risks --repo my-repo-name # Specify repo (defaults to its default branch)
apiiro risks --repo my-repo-name --branch dev # Target a specific monitored branch
apiiro risks --repository-id <repo-id> # Specify repo (branch) by ID
apiiro risks --risk-level Critical # Filter by risk level
apiiro risks --risk-category "API Security" # Filter by category
apiiro risks --max-pages 20 # Fetch more pages (default cap: 5)
apiiro risks --category secrets # Read a category's own route, with its extra fields
apiiro risks --lifecycle # Lifecycle records: discovered, resolved, closed reason
apiiro risks --stats-by repositories # Risk counts per repository, application or applicationGroups
apiiro risks --trend mttr # mttr, top-risks, sla-breach, risk-score (last 7 days; top-risks is current)
apiiro risks --design # Design risks from design reviews
apiiro risks <risk-id> # Risk details (add --category or --lifecycle for those routes)
apiiro risks <risk-id> --remediate # Remediation prompt
apiiro risks fix <risk-id> # Curated remediation when available, Guardian fallback otherwise
Each monitored branch is its own profile with its own ID; use --branch or --repository-id to pin one. Lists stop after --max-pages pages; JSON output then has "truncated": true. --trend and <risk-id> with --category or --lifecycle print the API's JSON as is; --stats-by and --design print {items, truncated}. Lists with --category or --lifecycle keep every field under risks in -o json; text output shows the common columns. --trend risk-score needs exactly one of --repository-id or --application-id. The old apiiro risks get and risks remediate still work but are deprecated.
Change risks and triage findings:
apiiro risks update <risk-id> --status Accepted --reason "Compensating control in place"
apiiro risks update <risk-id> --status Ignored --ignore-reason FalsePositive
apiiro risks update <risk-id> --level Low --reason "Internal-only service"
apiiro risks update <risk-id> --set dueDate=2026-12-31T00:00:00Z
apiiro risks update <risk-id> --set riskTags=Owner:Platform,Env:prod # Replaces all tags; riskTags= clears them
apiiro findings triage <risk-id> # AI triage of a SAST finding
apiiro findings triage <risk-id> --override FalsePositive --reason "Test fixture only"
Each write shows the change and asks before it sends. --yes sends without asking; without a terminal and without --yes, nothing is sent (exit 130). API keys need the "Change risk status" permission for --status, "Override risk level" for --level, the "Risks" permission group with write access for --set, and "Full control" for findings triage. Reading <risk-id> or --design also needs "Full control".
Findings and engagements
apiiro findings --repository-id <id> --application-id <id> --risk-level High -o json
apiiro findings --page-size 100 --max-pages -1
apiiro findings upload report.json
apiiro findings upload report.json --yes -o json
apiiro findings delete --system <id> --finding-id <id> --finding-id <other-id>
apiiro findings delete --system <id>
apiiro engagements --type Pentest --status Active --lead <key> -o json
apiiro engagements <key>
apiiro engagements create --data '{"name":"Annual assessment","type":"Pentest","startDate":"2026-11-01T00:00:00Z","status":"Active"}'
apiiro engagements update <key> --data @engagement.json
apiiro engagements delete <key>
findings lists manual-assessment findings. Its optional filters are --repository-id, --application-id and --risk-level. The list rejects --repository-key and --remote. Omitted filters leave the list organization-wide within your access scope. engagements lists or reads one key. List filters are --type Pentest|General, --status Active|Scheduled|InReview|Closed and --lead <key>. Both lists support --page-size (1–1000, default 100) and --max-pages (default 5, -1 for all). JSON lists contain {items, truncated}; text output says when the page limit leaves more results. Both support -o json and -f <path>.
findings upload streams the file as a JSON request body and prints server warnings. Reports require scanId, scanProjectName, providerName and providerId; the server validates the report. Uploads use a ten-minute timeout unless you pass --timeout <seconds>. The confirmation shows the file path and size. --yes skips this confirmation.
Engagement create and update accept inline JSON or --data @file and ask before sending (--yes skips). Required fields are name, type, startDate and status. Optional fields include externalUrl, summary, scope (applicationKeys and repositoryKeys arrays), endDate, tags, engagementLeadKey, provider and attachments. Update uses PUT to replace the whole engagement; omitted fields are reset. Read the current engagement first and include all fields you want to keep.
Both delete commands always require typing the exact system id or engagement key in a terminal and have no --yes. findings delete deletes findings sent through the legacy general-findings API for the given system id. Without --finding-id, it targets all legacy findings for that system id. Findings sent by findings upload or listed by findings are stored separately. Success means the request was accepted; the server returns no deletion count, even for an unknown system id. Engagement delete permanently removes the engagement and its findings and reports. Without confirmation, nothing is sent (exit 130).
Inventory
List inventory items (APIs, dependencies, sensitive data, secrets) for a repository or application. The list needs a scope (auto-detected from git, or one of the explicit flags).
apiiro inventory # Auto-detect repo from git
apiiro inventory --repo my-repo-name # Specify repo (defaults to its default branch)
apiiro inventory --repo my-repo-name --branch dev # Target a specific monitored branch
apiiro inventory --application-id <app-id> # Scope to an application
apiiro inventory --entity-type API # Filter: API, Dependency, Secret, SensitiveData, ...
apiiro inventory --repo my-repo -o json # JSON output
apiiro inventory --repo my-repo --max-pages -1 # Fetch every page (default cap: 5)
apiiro inventory --type secret # api, dependency, secret, sensitive-data, technology, module
apiiro inventory <item-key> # One item
apiiro inventory --deleted --since 2026-10-01 # Items deleted since a date (kept for 30 days)
apiiro inventory --secret <sha> # A secret's validity override
apiiro inventory sbom --repository-id <repo-id> # SBOM; or --application-id, --format cyclonedx|spdx
apiiro artifacts # Artifacts; filter with --type, --application-id, --team-id
apiiro artifacts <artifact-id> # Versions of one artifact
apiiro artifacts <artifact-id> --risks # Risks of one artifact
apiiro artifacts --container-images # Container images from the v1 API
apiiro artifacts --import <import-id> # SBOM import status
apiiro artifacts import --file sbom.json --version 1.0 --name my-sbom --yes
apiiro artifacts import --file sbom.json --version 2.0 --artifact <artifact-id> --yes
apiiro artifacts delete <artifact-id> # Permanently delete an SBOM artifact; type its ID to confirm
apiiro artifacts delete <artifact-id> --version <version-id>
apiiro artifacts delete <artifact-id> -o json # {"id":"...","version":null,"deleted":true}
apiiro secrets update <sha> --validity invalid --reason "Rotated" # valid, invalid, or auto to clear the override
apiiro contributors # Contributors (5 pages by default); <key> for one
apiiro contributors --export -f contributors.jsonl # Every contributor as JSON Lines
inventory <item-key>, --type module, --deleted, --secret, inventory sbom and contributors <key> print the API's JSON. Artifact lists take --page-size 1–200 (default 100). --risks requires an artifact ID; text rows show risk ID, rule name and risk level. --container-images uses the v1 container image list; text rows show ID, image ID and type. Both support --max-pages, -o json (items and truncated) and -f. Container images use offset paging and accept only the paging and output options; the default artifact list uses v2. New artifact imports take --name and optional --application-id; existing artifacts take --artifact. SBOM imports stream from disk and accept files up to 512 MB. Imports ask before sending unless --yes is present. Artifact commands accept -o json and -f <output-path> before or after the subcommand; import uses --file for the SBOM input and -f/--output-file for saved output. artifacts delete works only on SBOM artifacts and permanently deletes their versions, dependencies and findings. With --version, it deletes only that version and names it in the confirmation prompt. Empty artifact IDs and versions are rejected before confirmation. Delete JSON includes id, version (null for the whole artifact), and deleted: true. In JSON, "truncated": true means the list stopped at --max-pages; raise it to fetch more. secrets update asks before it sends, like risks update, and changes every occurrence of the same secret value. apiiro contributors needs the contributors API enabled for your organization. API keys need "Inventory management" for inventory lists, --deleted, --secret and SBOMs, with write access for secrets update, and "Full control" for inventory <item-key>, --type module and contributors.
Policies, coverage, issues and reports
These commands read data without confirmation prompts. Each supports -o json|text (default text) and -f <file>.
apiiro policies # All enabled policies, no server paging
apiiro policies --repo my-repo -o json # Raw policy array, all fields preserved
apiiro coverage # Repository scanner coverage
apiiro coverage --repo my-repo --page-size 100 --max-pages -1
apiiro coverage --projects # External scanner projects; no repository filter
apiiro coverage --providers # Provider names, no server paging
apiiro issues # Open issues across repositories
apiiro issues --repo my-repo # Issues linked through pull requests
apiiro issues --closed --issue-id ISSUE-123 # Closed issues, filtered by ID
apiiro reports list --search risk --type card --collection Security --limit 25
apiiro reports details --card 123 # Exactly one of --card or --dashboard
apiiro reports run --card 123 --param '{"id":"repository","value":["my-repo"]}'
apiiro reports run --card 123 --dashboard 10 --dashcard 20
apiiro reports compliance --framework soc2 --query control_summary --limit 20
apiiro reports compliance --framework soc2 --query repo_violations --repo my-repo
policies, repository coverage, and issues accept --repo <name> or --repository-key <key>. Policies and coverage select the default monitored branch by name or a specific branch profile by key; issues span all repository branches. Without either, they read across the organization. Ambiguous names need --repository-key. They do not auto-detect a repository. coverage --projects --repo is an error; --providers accepts no repository or paging flags.
Repository and project coverage and issues use --page-size <1..1000> (default 100) and --max-pages <count> (default 5; -1 for all). JSON is {items, truncated}; text says when more items exist. Project pages can be empty while more pages exist. Issues can change during paging, so an updated issue may be skipped. Policies and provider names return their full raw arrays in JSON and have no paging flags. Issues expose only indexed filters: repository, issue ID and open/closed state.
Reports require Guardian enabled and use your own credentials. Report data can be up to an hour stale. list accepts --search, --type card|model|dashboard|all, --collection, and --limit <1..100> (server default 25). details requires exactly one positive --card or --dashboard ID and shows the name, description, parameter IDs and dashboard card IDs. run requires --card; dashboard filters need both --dashboard and --dashcard. Repeat --param for each JSON object, using parameter IDs from details. Runs return up to 100 rows; truncated marks a capped result. Reports have no --page-size or --max-pages flags. JSON preserves the tool result; text shows report entries, parameters, result rows or compliance summary fields.
compliance accepts --framework soc2|pcidss|nist800-53|iso27001; Guardian requires it except for cross_framework. Its --query is control_summary (default), app_violations, cross_framework or repo_violations. Only repo_violations takes and requires --repo <name>. --limit <1..100> defaults to 20 on the server.
Applications and Application Groups
apiiro applications --page-size 100 --max-pages 5 -o json
apiiro applications <key>
apiiro applications create --data @application.json
apiiro applications update <key> --set name=Payments --set businessImpact=High --set-json isInternetFacing=true --add-tag team:payments --remove-tag old
apiiro applications delete <key>
apiiro application-groups --page-size 100 --max-pages 5 -o json
apiiro application-groups <key>
apiiro application-groups create --data '{"name":"Payments","tags":[],"applications":["app-key"],"pointsOfContact":[]}'
apiiro application-groups update <key> --data @group.json
apiiro application-groups delete <key>
Lists default to 100 items per page and 5 pages; --max-pages -1 fetches all pages. JSON includes items and truncated; raise --max-pages when truncated. Create and update ask before sending; --yes skips that question. Deletes always require the exact key typed in a terminal. --set always sends a string; repeatable --set-json field=json parses JSON and rejects invalid JSON. Application updates send one JSON Patch; a partial update reports failed fields and exits non-zero. Group updates replace the full body and require at least one application key.
OSS, Incidents, Feed and Custom Advisories
Read vulnerability and package content, security incidents, and the security feed. API keys need "Full control" read permission; advisory writes need write permission. Custom advisories require the CustomAdvisories feature enabled for your organization.
apiiro oss CVE-2021-44228 # CVE details merged with EPSS scores
apiiro oss 'pkg:npm/lodash@4.17.20' # Package and dependency findings
apiiro oss 'pkg:npm/lodash@4.17.20' --license # License IDs, source and source URLs
apiiro oss 'pkg:npm/lodash' --license --full # Include full license text
apiiro incidents # Incident list
apiiro incidents <id> # One incident
apiiro incidents <id> --scope --since 2026-10-01 # Affected packages added after a date
apiiro feed --repo <key> --status Followed # Computed feed; also --application and --team
apiiro feed --questions --type Announcement # Feed rules; also Manual or Seed
apiiro advisories # Custom advisory list
apiiro advisories <id> # One custom advisory
apiiro advisories update --input advisory.json # Create or replace, asks before sending
apiiro advisories delete <id> # Requires typing the ID in a terminal
All these commands accept -o json|text (default text) and -f <file> for output. CVE IDs are uppercased before lookup. oss --license requires a package URL; JSON includes full license text, while text includes it only with --full.
Lists fetch up to 5 pages by default. Use --page-size <size> (default 100; max 100 for incidents and scope, max 1000 for feed and advisories) and --max-pages <count> (-1 for all). JSON lists return {items, truncated}; truncated: true and the text hint mean more items exist. An incident ID alone and an advisory ID reject paging flags. Incidents have no list filters; --since requires an ID and --scope.
Feed --repo, --application and --team take keys and scope the counts; they do not hide items. --status accepts ForYou, Followed or Dismissed; the server defaults to ForYou, which includes followed items. --questions is unpaged, accepts --status and --type Manual|Seed|Announcement, and rejects key and paging flags. Its JSON is the raw rule array; text shows a short summary without insightPredicate or ruleTarget.
advisories update --input <file.json> takes a JSON object with advisoryId and the advisory fields. It creates a new ID or replaces the whole existing advisory: omitted fields reset, and affected packages are re-scored. The server validates the body. Use --yes to skip update confirmation. --input is separate from the -f output path. Delete also re-scores packages, requires the exact ID typed in a terminal, and has no --yes option. Both operations send nothing when confirmation is refused.
Connectors, Audit Logs and Export
apiiro connectors # List connectors
apiiro connectors <id> # Read one connector
apiiro connectors create --type github --url https://github.com/my-org
apiiro connectors update <id> --token-expiration-date 2027-01-01
apiiro audit-logs --status Failure --since 2026-11-01 --until 2026-11-08
apiiro export # List available routes
apiiro export repositories --file repositories.json # Stream an export to a file
apiiro export repositories/<key>/apis # Stream to stdout
Connector writes require a token from APIIRO_CONNECTOR_TOKEN or piped stdin with --token-stdin (which takes precedence and removes the trailing newline). Tokens cannot be passed as command arguments. Writes ask before sending; --yes skips the prompt. For piped stdin, use --token-stdin --yes after approving the change. The token is excluded from prompts and output. Creation supports --type github|gitlab|bitbucket|azureDevops, --url, optional --description and --token-expiration-date (ISO date). --username is required for bitbucket and azureDevops. Creation requires a server version that supports connector creation; older servers return a clear error. connectors update <id> changes the token and optional expiration date only; -o json returns {id, tokenUpdated: true}.
audit-logs supports --event-type, --status Success|Failure, --user, --user-type User|Token|System, and paired --since / --until dates (yyyy-MM-dd, yyyy-MM-ddTHH:mm:ssZ or yyyy-MM-ddTHH:mm:ss.fffZ). Date-only --until includes the whole day. The filters use indexed fields. Connector and audit-log lists fetch up to 5 pages by default. Both support --page-size 1..1000 and --max-pages <count> (-1 for all). Text output shows one line per item; connector reads show the ID, provider, URL and token expiration. Audit-log lines show time, event type, status, user and event description. JSON output includes {items, truncated}; truncated: true means more pages may exist. Lists and individual connector reads support -o json and --file.
export lists the routes available on your server, so the list can differ between versions. Pass the part after /rest-api/v1/export/, replacing any placeholders with real keys. Route segments are encoded separately. Put query parameters after ? and quote the argument, for example apiiro export 'applications/<key>/sbom?format=CycloneDx'. Export responses stream directly to stdout or --file, with a 10-minute timeout by default; --timeout <seconds> overrides it. A file is replaced only after the download completes. -o json applies to the routes list; route downloads keep the response bytes. These commands require a token with Full control permission.
Roles, role groups and users
Manage access roles and Apiiro user groups, and read users in those groups.
Documentation truncated — see the full README on GitHub.
Reviews
No reviews yet
Be the first to review this server!
More Security MCP Servers
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
mcp-creator-python
Freeby mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Lharries · Communication
Read, search, and send WhatsApp messages through your AI assistant
FinAgent
Freeby mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.
Memory
Freeby Modelcontextprotocol · Productivity
Knowledge graph-based persistent memory across sessions
