streamable-httpMITupdated 28d ago
Every cybersecurity service, callable by any AI agent, billed per use.
ΒΏQuΓ© puedes hacer con AgentAegis?
AgentAegis MCP Server
Every cybersecurity service, callable by any AI agent, billed per use.
AgentAegis is an MCP server that lets AI agents perform cybersecurity operations on demand β from compliance checks to vulnerability scans to code security analysis. It wraps best-in-class open-source scanning engines (nmap, Nuclei, sslyze, Semgrep, trufflehog, trivy) in clean, agent-discoverable tool definitions with structured inputs and outputs.
Phase 2 ships: HTTP transport for remote deployment, x402 micropayments, API key auth with monthly limits, Supabase persistence, webhooks, ISO 27001 + HIPAA frameworks, Railway deploy config, and a full test suite.
Quick Start
Local (stdio for Claude Desktop)
git clone https://github.com/astafford8488/agentaegis-mcp.git
cd agentaegis-mcp
pnpm install
cp .env.example .env # add API keys
pnpm build
Add to claude_desktop_config.json:
{
"mcpServers": {
"agentaegis": {
"command": "node",
"args": ["/path/to/agentaegis-mcp/dist/index.js"],
"env": {
"NVD_API_KEY": "...",
"ABUSEIPDB_API_KEY": "...",
"OTX_API_KEY": "...",
"ABUSECH_API_KEY": "...",
"HIBP_API_KEY": "..."
}
}
}
}
Remote (HTTP, for agent platforms)
# Local dev
pnpm dev:http
# Production via Docker
docker compose -f docker/docker-compose.yml up -d
# Production via Railway
railway up
Connect from any MCP-aware agent:
POST https://your-host/mcp
Authorization: Bearer aegis_<your-api-key>
Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AI Agent (Claude, custom MCP client) β
ββββββββββββββββββ¬ββββββββββββββββββββββββ¬ββββββββββββββββββ
β stdio β HTTP
β β
ββββββββββββββββββΌββββββββββββ ββββββββββΌββββββββββββββββββ
β stdio entry (index.ts) β β HTTP entry (http-server)β
ββββββββββββββββββ¬ββββββββββββ ββββββββββ¬ββββββββββββββββββ
β β
β ββββββββββββββββββ΄ββββββββββββββ
β β Auth Gate β
β β - API key (DB-backed) β
β β - x402 micropayment β
β βββββββββββββββ¬βββββββββββββββββ
β β
ββββββββββββββββββΌβββββββββββββββββββββΌβββββββββββββββββββββββ
β MCP Server (server.ts) β
β 20 Tool Handlers β
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ€
β Engine Wrappers β External APIs β
β nmap, Nuclei, sslyze, β NVD, AbuseIPDB, AlienVault OTX + abuse.ch, β
β Semgrep, trufflehog, β HIBP, Shodan β
β trivy β β
ββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββ€
β Sandbox β Rate Limit β Target Validation β Logging β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββΌβββββββββββ
β Supabase β
β - customers β
β - api_keys β
β - scan_jobs β
β - usage_log β
β - webhooks β
ββββββββββββββββββββββ
HTTP API (Phase 2)
| Endpoint | Method | Auth | Description |
|---|---|---|---|
/health |
GET | None | Health check |
/pricing |
GET | None | Tool catalog with prices |
/v1/customers |
POST | None | Create customer account |
/v1/customers/:id/api-keys |
POST | None | Issue an API key |
/v1/customers/:id/usage |
GET | API key | Usage statistics |
/v1/jobs/:jobId |
GET | API key | Async scan job status |
/mcp |
POST | API key OR x402 | MCP Streamable HTTP transport |
Payment Flow
Option 1: API Key β Customer registers, gets a key, pays via prepaid balance or invoice. Each tool call deducts from the monthly budget.
curl -X POST https://api.agentaegis.org/v1/customers \
-H "Content-Type: application/json" \
-d '{"email":"you@company.com","name":"Your Name"}'
curl -X POST https://api.agentaegis.org/v1/customers/<id>/api-keys \
-H "Content-Type: application/json" \
-d '{"name":"production","monthly_limit_usd":100}'
Option 2: x402 Micropayment β No signup. Each tool call settles on-chain via USDC. The server returns 402 Payment Required with payment requirements; the client signs and retries with X-PAYMENT header.
Tool Catalog (28 tools: 23 paid + 5 free)
Live pricing is always at /pricing.
| Tool | Category | Description | Price |
|---|---|---|---|
compliance_framework_check |
Compliance | SOC 2, ISO 27001, HIPAA, PCI-DSS, NIST CSF assessment | $2.00 |
evidence_collect |
Compliance | Evidence collection plans for audit controls | $1.00 |
control_gap_analysis |
Compliance | Prioritized remediation roadmap | $2.00 |
audit_report_generate |
Compliance | Audit-ready compliance reports | $5.00 |
policy_generate |
Compliance | Tailored security policy documents | $2.00 |
vuln_scan_network |
Vuln Mgmt | Network port and vulnerability scan | $3.00 |
vuln_scan_web_app |
Vuln Mgmt | OWASP Top 10 web app scan | $5.00 |
vuln_prioritize |
Vuln Mgmt | Risk-based vulnerability prioritization | $1.00 |
cve_lookup |
Vuln Mgmt | CVE details, CVSS, KEV status | $1.00 |
ssl_tls_audit |
Vuln Mgmt | SSL/TLS configuration audit | $1.00 |
sast_scan |
Code Security | Static security analysis | $5.00 |
secret_scan |
Code Security | Hardcoded secret detection | $2.00 |
dependency_audit |
Code Security | Dependency vulnerability scan | $2.00 |
incident_triage |
Blue Team | Incident classification & response plan | $3.00 |
threat_intel_lookup |
Blue Team | IOC reputation lookup | $2.00 |
dns_security_check |
Blue Team | DNS security audit | $1.00 |
email_security_audit |
Blue Team | Email security configuration audit | $2.00 |
access_review |
Identity | Access privilege audit | $1.00 |
mfa_audit |
Identity | MFA coverage assessment | $1.00 |
credential_check |
Offensive | Breach database lookup | $2.00 |
vet_endpoint |
Trust Layer | Composite PROCEED/CAUTION/BLOCK trust verdict on an endpoint before your agent calls or pays it | $3.00 |
scan_mcp_plugin |
Trust Layer | Supply-chain scan of an MCP server/plugin before your agent installs or trusts it | $5.00 |
scan_skill |
Trust Layer | Prompt-injection and over-broad-grant scan of an agent skill (SKILL.md) | $5.00 |
Free tools (no charge): help, account_balance, agent_whoami, agent_history, agent_scan_get.
Compliance Frameworks Supported
- SOC 2 Type II β Full Trust Services Criteria (35 controls)
- ISO 27001:2022 β All 4 Annex A control groups (93 controls)
- HIPAA Security Rule β Administrative, physical, and technical safeguards (43 controls)
- NIST CSF 2.0 β All 6 functions with categories
- PCI DSS v4.0 β All 12 requirements with detailed controls (full evaluation logic)
Development
pnpm install # Install dependencies
pnpm dev # stdio mode (for Claude Desktop)
pnpm dev:http # HTTP mode (with Streamable HTTP transport)
pnpm build # Build for production
pnpm test # Run vitest test suite (46 tests)
Deployment
Railway (Recommended)
railway login
railway init
railway up
Required env vars (set in Railway dashboard):
SUPABASE_URL,SUPABASE_SERVICE_KEYX402_PAYEE_ADDRESS(your wallet)NVD_API_KEY,ABUSEIPDB_API_KEY,OTX_API_KEY,ABUSECH_API_KEY,HIBP_API_KEY
Database setup
Run the migration in your Supabase SQL editor:
cat supabase/migrations/001_initial_schema.sql
Security Policy
- Target validation: Only public IPs and registered domains. Private/reserved ranges blocked.
- Scan isolation: Each scan runs in an isolated process with temp directory cleanup.
- Code safety: Repos cloned shallow (depth=1), max 500MB, 5-minute timeout, no execution.
- Secret redaction: Full secret values never returned β first 4 and last 4 characters only.
- Rate limiting: Per API key AND per target. Max 5 concurrent scans, 10/hour per target.
- Audit logging: All tool calls logged to
usage_log(90-day retention). - API key hashing: Keys stored as SHA-256 hashes; raw keys never stored.
Responsible Use
AgentAegis scanning tools must only be used against systems you own or have explicit written authorization to test. By using this service, you agree that:
- You have authorization from the system owner to perform security testing
- You will not use these tools for unauthorized access or malicious purposes
- You accept responsibility for any scans initiated through your API key
License
MIT
InstalaciΓ³n
AΓ±ade AgentAegis a tu cliente. Elige el que uses.
claude mcp add --transport http agentaegis https://agentaegis-mcp-production.up.railway.app/mcpcodex mcp add agentaegis --url https://agentaegis-mcp-production.up.railway.app/mcp{
"mcpServers": {
"agentaegis": {
"url": "https://agentaegis-mcp-production.up.railway.app/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"agentaegis": {
"type": "http",
"url": "https://agentaegis-mcp-production.up.railway.app/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"agentaegis": {
"url": "https://agentaegis-mcp-production.up.railway.app/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"agentaegis": {
"serverUrl": "https://agentaegis-mcp-production.up.railway.app/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
23 herramientas
AgentAegis expone 23 herramientas a un agente conectado.
- compliance_framework_check
- Compliance
- evidence_collect
- Compliance
- control_gap_analysis
- Compliance
- audit_report_generate
- Compliance
- policy_generate
- Compliance
- vuln_scan_network
- Vuln Mgmt
- vuln_scan_web_app
- Vuln Mgmt
- vuln_prioritize
- Vuln Mgmt
- cve_lookup
- Vuln Mgmt
- ssl_tls_audit
- Vuln Mgmt
- sast_scan
- Code Security
- secret_scan
- Code Security
- dependency_audit
- Code Security
- incident_triage
- Blue Team
- threat_intel_lookup
- Blue Team
- dns_security_check
- Blue Team
- email_security_audit
- Blue Team
- access_review
- Identity
- mfa_audit
- Identity
- credential_check
- Offensive
- vet_endpoint
- Trust Layer
- scan_mcp_plugin
- Trust Layer
- scan_skill
- Trust Layer
PuntuaciΓ³n
77 / 100
Buena
- DocumentaciΓ³n25/25
- Mantenimiento19/25
- Confianza13/20
- Capacidad8/15
- InstalaciΓ³n12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 20 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 23 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Historial de versiones
| Versiones | Publicada |
|---|---|
| 0.3.0Γltima | 16 jun 2026 |