The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the AgentSecurityLens MCP Security Trust Check listing page.
AgentSecurityLens (ASL) is an MCP security trust-check server for autonomous agents.
Before an agent installs or enables an MCP, Skill, tool, prompt bundle, workflow, or memory component, it can ask ASL for a machine-readable safe-install decision.
ASL is not a malware verdict tool. It returns observable risk signals, required controls, safer alternatives or mitigation paths, and a decision contract an agent can execute.
When you plan to install or enable an MCP, Skill, tool, prompt bundle, workflow or memory component:
mcp-security-lens ..., agent-security-lens-review ..., or call the MCP tool review_before_install.agent_decision_contract.automatic_install_allowed is false.safe_install_plan item before restricted installs.recommended_alternatives when ASL returns avoid, ask_user, or missing controls.report_install_outcome.Machine-readable agent instructions are also available in AGENTS.md.
Check whether ASL can reach online intelligence and what local fallback is available:
Try one pre-install decision first:
The command returns an agent-readable decision, trust score, risk signals, safe install plan, and whether automatic installation is allowed.
If your shell does not expose npm temporary binaries correctly, use npm install -g agent-security-lens once, then run the same command without npx -y.
More copy-ready calls:
Add ASL as a pre-install trust check MCP:
Then give the agent this policy:
See Agent install guide for Claude Desktop, Cursor, Codex-style and generic MCP configurations.
Copy-ready files:
The public package includes a reviewed baseline so agents can still make conservative decisions when the cloud API is unavailable.
The online ASL intelligence API serves the current expanded catalog. The npm package intentionally does not ship the complete private intelligence database.
Node.js 20 or newer is required.
The public MCP uses online intelligence by default:
ASL_API_URLS may contain multiple comma-separated endpoints. The MCP tries them in order and falls back automatically.
Agents should call get_install_policy after connecting, then call review_before_install before every component installation.
The policy call records a minimal activation event for product health and abuse monitoring when online mode is enabled. It does not send private files, local paths, secrets, tokens or code. Set ASL_DISABLE_USAGE_TELEMETRY=1 to disable this usage event.
Unknown or incompletely reviewed components never receive automatic-install authorization.
Recommended instruction:
get_install_policy: returns the current Agent execution policy and records a minimal first-call activation event.get_intelligence_status: reports online or local intelligence status for MCP clients.review_before_install: evaluates a proposed component and installation context.check_component: retrieves known component intelligence.recommend_alternatives: returns evidence-backed alternatives and mitigations.submit_unknown_component: submits public metadata for research.get_research_status: checks whether an unknown component has been reviewed.report_install_outcome: reports the result of an Agent action.submit_decision_feedback: reports useful, incorrect, or incomplete decisions.discover_workspace: discovers Agent, MCP, and Skill environments.scan_workspace: performs a local fallback assessment.Example request:
Example response shape:
Agents must execute the structured fields rather than infer policy from prose.
strict_reviewed: versioned evidence, technical scan, community-source check, and independent recalculation completed.curated_baseline: manually curated fallback information with limited evidence.automatic_assessment: automated coverage that cannot authorize automatic installation.unknown: no matching intelligence record.ASL evaluates observable behavior and installation context. It does not label a component malicious without evidence.
The public fallback contains strict reviewed records and curated fallback baselines. Automatic assessments are available through the online service but cannot authorize automatic installation.
Online lookup uses public component metadata only. Do not submit:
See PRIVACY.md and SECURITY.md.
Local fallback provides basic rules and a limited public intelligence baseline. The current online intelligence service should be preferred when available.
The scoring method is documented in ASL Agent Component Safety Standard v0.2.
Apache-2.0