compuute-scan-api

compuute-scan-api

Scan-as-a-Service for MCP servers. Wraps the compuute-scan static security scanner with HTTP and MCP endpoints to analyze public GitHub repos for MCP-specific vulnerabilities.

Category
访问服务器

README

compuute-scan-api

Scan-as-a-Service for MCP servers. HTTP + MCP wrapper around compuute-scan — the MCP-specific static security scanner. Designed for agent-callable consumption.

POST a public GitHub repo URL → get a structured security report scored against 37 MCP-specific rules across 8 languages (TS/JS, Python, Go, Rust, C#, Java, Kotlin).

Honesty note (read first): compuute-scan is a pattern-breadth detector, not an exploitability oracle. Historic false-positive rate after manual validation is ~90% on raw output (verified against modelcontextprotocol/servers: 138 raw findings → 13 confirmed). Every response carries a _disclaimer field stating this explicitly. Use findings as a triage queue, not as a list of confirmed vulnerabilities. See docs/FP-RATES.md for per-rule transparency.

Live at https://scan.compuute.se. Service version reported by /v1/health.


Endpoints

Core scan

Method Path Purpose Auth
POST /v1/scan Scan a public GitHub MCP-server repo (free tier, rate-limited) none
POST /v1/scan/pay Same as above via x402 micropayment ($0.10 USDC on Base L2) X-Payment header
GET /v1/scan/info Scanner version + limits + supported ecosystems none
GET /v1/health Liveness + scanner-binary availability none

Machine-readable contracts

Method Path Purpose
GET /openapi.json OpenAPI v3 spec with per-field descriptions
GET /docs Swagger UI for the OpenAPI spec

MCP server (live)

Endpoint Tool Transport
/mcp/ scan_mcp_server(github_url) Streamable HTTP

Install in Claude Code: claude mcp add compuute-scan --transport http --url https://scan.compuute.se/mcp/

Discovery (/.well-known/)

Path Format Consumer
/.well-known/agent.json A2A Agent Card Google A2A protocol
/.well-known/agent-card.json A2A Agent Card (alias) A2A clients using -card.json naming
/.well-known/ai-plugin.json OpenAI plugin manifest ChatGPT / OpenAI tools
/.well-known/x402.json x402 payment manifest Coinbase Agent.market crawlers, x402 aggregators
/.well-known/x402 Alias of x402.json x402 probes without .json suffix
/llms.txt markdown summary LLM-driven agent-search crawlers (Exa, Perplexity-style) per llmstxt.org
/robots.txt crawler policy search engines
/sitemap.xml URL index search engines

Example

curl -X POST https://scan.compuute.se/v1/scan \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: 00000000-0000-0000-0000-000000000001' \
  -d '{"repo_url": "https://github.com/modelcontextprotocol/servers"}'

Response (truncated):

{
  "repo_url": "https://github.com/modelcontextprotocol/servers",
  "scanner": {"name": "compuute-scan", "version": "0.6.2", "layers_covered": ["L0", "L1"]},
  "summary": {"critical": 1, "high": 94, "medium": 22, "low": 0, "files_scanned": 77},
  "score": 0,
  "recommendation": "AVOID — 1 critical and 94 high finding(s)...",
  "top_findings": [...],
  "performance": {"clone_seconds": 1.2, "scan_seconds": 0.5, "repo_size_bytes": 41234},
  "_disclaimer": "PATTERN MATCH — compuute-scan is a static analyzer..."
}

Agent-shaped API features

Feature How
Idempotent retries (24h cache) Idempotency-Key header
HTTP cache ETag + Cache-Control: public, max-age=1800
Conditional GET If-None-Match → 304 Not Modified
Rate-limit headers X-RateLimit-Limit/Remaining/Reset
Strict input validation Pydantic extra="forbid", GitHub-HTTPS-only
OWASP security headers HSTS / X-Frame-Options / X-Content-Type-Options / CSP / Referrer-Policy / Permissions-Policy
OpenAPI for discovery GET /openapi.json with descriptions on every field
MCP for agent discovery /mcp/ exposes scan_mcp_server tool
x402 for autonomous purchase /v1/scan/pay returns 402 with USDC/Base payment requirements
Honest framing Every response carries _disclaimer — pattern match, not exploitability claim

Pricing

Tier Audience Price
Open Source CLI Indie devs, agent builders $0 — npx compuute-scan ./repo
Hosted API (free) Agent operators evaluating MCP servers $0 — POST /v1/scan, rate-limited
Hosted API (x402) Autonomous agents in Agent.market ecosystem $0.10 USDC/scan — POST /v1/scan/pay
MCP Security Audit Enterprises shipping MCP to production $5K–$30K SoW
AI Procurement Risk Audit CFO/CTO/CISO buying enterprise AI capacity $5K–$15K SoW

Full breakdown with JSON-LD: https://compuute.se/pricing.

Local development

python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt
export COMPUUTE_SCAN_PATH=$HOME/compuute-scan/compuute-scan.js
uvicorn main:app --reload

Tests

pytest tests/ -v
# 34 tests covering scan, x402, MCP, discovery, OpenAPI

Scripts

Script What it does
scripts/precheck.sh Start-of-session check: branch, working tree, tests, live state, next backlog item
scripts/postcheck.sh End-of-session check: committer hygiene, tests, append to docs/PROGRESS.md
scripts/status.sh 30-second live-state check against scan.compuute.se (4 probes)
scripts/sbom.sh Generate CycloneDX SBOM, optionally upload to a GitHub Release
scripts/prospect-research.sh Pull qualified prospects from GitHub + Anthropic Registry, draft DM angles
scripts/measure-tiers.sh T0/T1/T2 distribution snapshot per docs/agent-economy-strategy.md §5 — reach, engagement, conversion measured against Railway logs + Base RPC + GitHub stars

Architecture

  • api/services/scan.py — clone + sandbox + scan + parse. Pure functions.
  • api/services/x402_service.py — x402 verify / settle via Coinbase facilitator.
  • api/serializers/scan_serializer.py — Pydantic models, strict validation.
  • api/routes/scan.py — HTTP layer for /v1/scan: idempotency, cache, ETag.
  • api/routes/scan_x402.py — HTTP layer for /v1/scan/pay.
  • api/routes/discovery.py/.well-known/*, /robots.txt, /sitemap.xml.
  • api/mcp_server.py — FastMCP server exposing scan_mcp_server.
  • main.py — FastAPI wiring + middleware (security headers, CORS).

Bundled compuute-scan version is pinned in the Dockerfile (ARG COMPUUTE_SCAN_REF=v0.6.2).

Documentation

Doc For
docs/agent-economy-strategy.md The strategic doc — a16z-verified data, the 11-signal buyer-agent model, two-track strategy, 30-day pivot trigger. Read first if you're trying to understand the company.
docs/STRATEGY.md Position, pricing tiers, roadmap, decision log
docs/ARCHITECTURE.md Component diagram, request flow, threat model, deployment topology
docs/DEVELOPMENT.md Local setup, layout, code style, common pitfalls — onboard a new dev in 30 min
docs/MONITORING.md Endpoints to watch, automated checks, runbook for failures
docs/FP-RATES.md Per-rule false-positive transparency
docs/scan-self-triage.md What this scanner reports when run against its own code
docs/whitepaper/ MCP Security Methodology v1.0 (Markdown + PDF)
docs/case-studies/ Three anonymized engagement reports from the May 2026 batch
docs/advisories/ Public advisories under the COMPUUTE-YYYY-NNN numbering
docs/security/ Self-pentest reports (90-day cadence)
docs/audits/ The AI Procurement Risk Audit checklist (lead magnet)
docs/compliance/ SOC 2 Type I readiness statement, TSC control mapping
docs/submissions/ LangChain + CrewAI tool wrappers ready for PR/marketplace
skills/compuute-scan/ Claude Skill package (SKILL.md + scan.sh) — submitted to anthropics/skills#1346
CODE_OF_CONDUCT.md Contributor Covenant 2.1
docs/launches/ Show HN draft + posting checklist
docs/setup/ Status page (BetterStack) + analytics (PostHog) setup guides
docs/agentic-market-submission.md Three paths to Coinbase Agent.market listing
BACKLOG.md GitHub Issues + Project board roadmap
IDEAS.md Composted product hypotheses with gating rules
CONTRIBUTING.md How to contribute
SECURITY.md Vulnerability disclosure policy (90-day window)

Security

Found a vulnerability? See SECURITY.md — email security@compuute.se. We follow a 90-day coordinated disclosure window.

License

MIT (matches compuute-scan).

Author

Compuute AB — daniel@compuute.se

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选