Nullsec S1 MCP
Exposes Nullsec security tooling for scanning and explaining ZK circuits (Circom/Halo2) to MCP-compatible AI agents.
README
Nullsec S1 MCP
Security scanning tools for MCP-compatible coding agents.
s1-mcp brings Nullsec S1-style security checks into Cursor, Claude Desktop, and other MCP clients. General app/repo scanning is deterministic and local-first: it does not call a hosted S1 API, does not require an LLM, and does not claim a project is secure just because no supported files were found.
The server also keeps the existing s1_zk_* tools for Circom and Halo2 circuits through @trynullsec/s1-zk.
Install
Use it directly with npx:
npx -y s1-mcp
Or install it in a project:
npm install --save-dev s1-mcp
npx s1-mcp
Requires Node.js 20 or newer.
MCP Config
Add this server to Cursor or Claude Desktop:
{
"mcpServers": {
"nullsec-s1": {
"command": "npx",
"args": ["-y", "s1-mcp"]
}
}
}
Once connected, ask your agent to run s1_scan_repo, s1_scan_file, s1_gate, s1_explain_finding, or the ZK-specific s1_zk_* tools.
General App Tools
s1_scan_repo
Recursively scans supported app files under a target path.
Supported files:
.ts,.tsx,.js,.jsx,.mjs,.cjs.json.env.examplefor key-name exposure checks.solfor Base/EVM Solidity checks
Ignored by default: node_modules, .git, .next, dist, build, coverage, generated lockfile internals, pnpm-lock.yaml, and yarn.lock.
Input:
{
"target": "app",
"ruleCategories": ["auth", "secrets", "dangerous_exec"]
}
Output includes:
targetfilesScannedrulesExecuted- severity
summary issuesproductionGateunsupportedwhen no supported files are found
s1_scan_file
Scans one supported file with the same deterministic rules. Unsupported extensions return an explicit unsupported result instead of a pass/secure verdict.
{
"filePath": "app/api/admin/route.ts"
}
s1_gate
Evaluates production readiness from existing findings or scans a target first.
{
"target": "app",
"policy": {
"blockCritical": true,
"blockHigh": true,
"requireDimensions": ["auth", "secrets", "rate_limits"]
}
}
Blocks by default on critical findings, high findings, secret exposure, dangerous execution with user input, live Base/EVM deploy key patterns, and unauthenticated admin routes with dangerous behavior.
s1_explain_finding
Explains a finding for a developer, founder, or auditor using local templates.
{
"findingId": "S1-EXEC-005",
"audience": "developer"
}
You can also pass a full finding object returned by s1_scan_repo or s1_scan_file.
Deterministic Rule Coverage
General scanning catches common AI-generated app risks:
- Secrets: hardcoded OpenAI/Anthropic/Stripe-style keys,
sk_live_, bearer tokens, private keys, seed phrases, database URLs, webhook secrets, secrets returned in JSON, and secret-likeNEXT_PUBLIC_variables. - Dangerous execution:
child_process.exec,execSync,spawnwithshell: true, user input flowing into command execution,eval, andnew Function. - Auth: admin API routes without visible session/role checks, admin responses without auth, and mutation endpoints without visible auth.
- Input validation:
await req.json()without visible schema validation. - Rate limits: mutation API routes without visible rate limiting.
- Environment exposure: returning
process.env, logging secrets, and concrete.envfiles if scanned. - Dependency risk: install lifecycle scripts, git/http dependencies, and suspicious package scripts.
- Base/EVM Solidity:
tx.origin,delegatecall,selfdestruct, unrestricted mint patterns, low-level calls, deploy private keys, live broadcast/deploy command patterns, and detectable hidden fee/drain controls.
No Solana assumptions are made by default; web3 wording and rules use Base/EVM terminology.
ZK Tools
s1_zk_scan
Scan Circom or Halo2-style ZK circuits using Nullsec S1-ZK.
{
"target": "circuits",
"deep": true,
"format": "json"
}
Behavior:
npx @trynullsec/s1-zk scan <target> --format json --no-banner
When deep is true, the server adds --deep.
s1_zk_explain
Explain a Nullsec S1-ZK rule.
{
"ruleId": "NS-H2-005"
}
s1_zk_rules
List supported Nullsec S1-ZK rules.
{}
Examples
Next.js API route scan:
Use s1_scan_file on app/api/admin/route.ts and explain any production blockers.
Base/EVM contract scan:
Use s1_scan_repo on contracts/ and then run s1_gate with blockHigh enabled.
ZK circuit scan:
Use s1_zk_scan on circuits/ with deep mode enabled.
Security Notes
- General scanning is deterministic and local-only.
- Target paths must stay within the server working directory.
- General scanning performs no shell execution.
- ZK tools invoke
@trynullsec/s1-zkthrough argv arrays withshell: false. - The server does not send code to remote APIs.
- Evidence is sanitized to avoid returning full secrets in MCP responses.
Development
npm install
npm run build
npm test
Run the MCP server locally:
npm run dev
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。