
AgentSecurityLens MCP Security Trust Check
io.github.professor2k8由 GitHub 账号 professor2k8 发布v0.1.12更新于 Oct 24, 2026
MCP security trust-check for agents before installing MCPs, Skills or tools.
概览
一个本地 MCP 服务器,让助手在启用其他 MCP、技能、工具或工作流之前获得安装前信任检查和安全安装决策。
- 可以做什么
- 获取代理安装策略,并检查在线或本地情报是否可用,在线时会记录一次最小激活事件。评估拟安装的组件和安装上下文,返回决策、信任评分、风险信号和安全安装计划。查询已知组件情报,并获取有证据支持的替代方案或缓解措施。提交未知组件的公开元数据以供研究,并查询其审查状态。报告安装结果和决策反馈。发现并扫描本地的代理、MCP 和技能环境,作为回退评估。
- 适用场景
- 当助手要安装或启用第三方 MCP 服务器、技能、工具、提示词包、工作流或记忆组件,并且你希望在继续之前获得可机器读取的允许、限制、询问用户或避免决策时使用。也适合审计工作区中已安装的内容。
- 运行要求
- 通过 npm 包 agent-security-lens 以 stdio 在本地运行,需要 Node.js 20 或更高版本。默认通过 ASL_API_URL(或多个端点时用 ASL_API_URLS)使用在线情报;ASL_API_KEY 对 Team、Pro 或 Enterprise 用户可选。将 ASL_MODE 设为 local 可离线回退到有限基线。
安装
在 SourceWeft 中
- 打开 控制台中的 AgentSecurityLens MCP Security Trust Check,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
AgentSecurityLens
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.
For Autonomous Agents
When you plan to install or enable an MCP, Skill, tool, prompt bundle, workflow or memory component:
- Run
mcp-security-lens ...,agent-security-lens-review ..., or call the MCP toolreview_before_install. - Read
agent_decision_contract. - Do not install automatically when
automatic_install_allowedisfalse. - Apply every
safe_install_planitem before restricted installs. - Prefer
recommended_alternativeswhen ASL returnsavoid,ask_user, or missing controls. - Report the final outcome with
report_install_outcome.
Machine-readable agent instructions are also available in AGENTS.md.
Agent Quick Install
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:
Public Intelligence
The public package includes a reviewed baseline so agents can still make conservative decisions when the cloud API is unavailable.
- Public Security Index v0.1
- Top MCP Security Signals v0.1
- Top Skill Security Signals v0.1
- Agent Framework Install Decisions v0.1
- MCP First-Call Examples v0.1
The online ASL intelligence API serves the current expanded catalog. The npm package intentionally does not ship the complete private intelligence database.
Basic MCP Config
Node.js 20 or newer is required.
Online Configuration
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.
Agent Policy
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:
MCP Tools
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.
Decision Contract
Example request:
Example response shape:
Agents must execute the structured fields rather than infer policy from prose.
Intelligence States
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.
Privacy
Online lookup uses public component metadata only. Do not submit:
- private source code or file contents
- API keys, passwords, tokens, or SSH keys
- browser cookies or personal browser history
- private prompts, memories, or customer records
- secrets from environment variables
See PRIVACY.md and SECURITY.md.
Local Fallback
Local fallback provides basic rules and a limited public intelligence baseline. The current online intelligence service should be preferred when available.
Verification
The scoring method is documented in ASL Agent Component Safety Standard v0.2.
License
Apache-2.0
来源:README.md,提交 cc1f130
工具
0版本历史
1- v0.1.12最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。
其他 Check 集成
check.tattoo: tattoo size and placement guide
tattoo.check官方发布者
check.tattoo: tattoo size and placement guide 的托管 MCP 服务,由 check.tattoo 发布;无需登录;Streamable HTTP;5 个工具。
iva.pt — EU VAT check (VIES) and Portuguese VAT law
pt.iva官方发布者
在 VIES 中校验欧盟增值税号,并返回葡萄牙增值税法典(CIVA)与 RITI 条文,支持葡语和英语。

U.S. Public Company Check
由 GitHub 账号 JusticeUA 发布
托管在 Apify 上的远程 MCP 服务器,让助手按 SEC CIK 查询美国上市公司信息:申报状态、破产 8-K 标记、LEI 与制裁筛查。

Taiwan Company Check
由 GitHub 账号 JusticeUA 发布
远程 MCP 服务器,让助手按统一编号查询台湾公司,获取税务登记状态、LEI 与制裁名单核查结果。

Romania Company Check
由 GitHub 账号 JusticeUA 发布
按 CUI 查询罗马尼亚公司,返回官方登记处的状态、破产、LEI 与制裁信息。