Aegis MCP Server
Provides tools to call Cloudflare's API MCP server, including checking the API token identity, searching documentation, running JavaScript-based searches/executions, and invoking arbitrary Cloudflare tools with a token.
Provides a tool to fetch recent commit history from the active Git repository via the Git CLI.
Provides tools to list, inspect, create, trigger, and delete Jenkins jobs, and to fetch build information and console logs using per-call credentials.
Provides tools to list pods and audit cluster security settings such as privileged containers and wildcard RBAC.
Provides a tool to run Trivy vulnerability scans on container images and report severity counts.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Aegis MCP Server empowers AI assistants (like Claude, Cursor, and GitHub Copilot) to perform cloud architecture administration, security scanning, and network analyses directly from their execution environments. It wraps powerful underlying tools and SDKs into secure, audited MCP tool sets.
πΈ Demo in Action
AI Agent: "Check if any S3 bucket is publicly accessible"
Tool call β aws_check_s3_public_access
Result β bucket audit reportRelated MCP server: Phantom MCP
π Key Features
π FastMCP Server β Exposes domain-specific tools for AWS, Kubernetes, security scanning, Git, network analysis, Jenkins, and CI/CD pipelines.
π Flexible Authorization β JWT-based RBAC for production deployments; automatically disabled for local stdio sessions (Claude Desktop, Agent IDEs).
π Structured Audit Logging β Emits clean JSON audit logs for every invocation, suitable for SIEM integrations.
π Expandable Tooling β Easily add new integrations. Includes ready-to-use scanners for dependencies, secrets, SSL/TLS certs, Semgrep, Trivy, and more.
π¦ Docker Ready β Containerized deployment using a non-root runtime with built-in health checks.
π ASGI Integration β FastAPI health endpoint alongside MCP streamable-http transport.
π Architecture
flowchart TD
Client[MCP Client / AI Agent] -->|Tool Call| AuthZ[Auth & RBAC Layer]
subgraph aegis-mcp["Aegis MCP Server"]
AuthZ --> Audit[Audit Logger]
Audit --> ToolsLayer[Tool Dispatch Layer]
end
ToolsLayer --> AWS[AWS SDK]
ToolsLayer --> K8s[kubectl / K8s SDK]
ToolsLayer --> Sec[Trivy / Semgrep]
ToolsLayer --> Net[Nmap / SSL]
ToolsLayer --> Git[Git CLI]
ToolsLayer --> Jenkins[Jenkins API]
ToolsLayer --> CF[Cloudflare API MCP]The server receives MCP tool-call requests over streamable HTTP or stdio transport. In HTTP mode, each request requires a JWT bearer token for authorization. In stdio mode (local usage), authorization is automatically disabled.
π Repository Structure
aegis-mcp/
β
βββ server/
β βββ main.py
β βββ health.py
β βββ auth.py
β βββ tools/
β βββ aws/
β βββ cicd/ # Jenkins + pipeline tools
β βββ kubernetes/
β βββ security/
β βββ network/
β
βββ policies/
βββ tests/
βββ Dockerfile
βββ run_stdio.pyπ§° Available Tools
Example Tool Invocation
Tool: security_run_trivy_scan
Input:
image=nginx:latest
Output:
CRITICAL: 2
HIGH: 4
MEDIUM: 7Cloud & DevOps
Tool | Description |
| List EC2 instances in a specific AWS region |
| Audit S3 buckets for public access settings |
| List Kubernetes pods in a given namespace |
| Fetch CI/CD pipeline execution status |
| Fetch recent commit history from the active Git repo |
Jenkins CI/CD
Tool | Description |
| List all jobs on a Jenkins server |
| Get detailed info about a specific job (build history, health) |
| Create a new Jenkins job from XML config |
| Trigger a build with optional parameters (JSON) |
| Get result, duration, and status of a specific build |
| Fetch console output of a build |
| Delete a Jenkins job |
Jenkins tools require per-call credentials β pass url, username, and api_token with each call. No global env vars needed.
Cloudflare
These tools call Cloudflare's API MCP server. Pass a Cloudflare API token on each call. The token's own permissions decide what execute and cloudflare_call can change.
Tool | Description |
| Show the user or account behind the API token |
| Search Cloudflare developer documentation |
| Run JavaScript against the OpenAPI spec to find endpoints |
| Run JavaScript that calls |
| Call any current or later tool on the Cloudflare MCP server |
cloudflare_call is the extension point. A new Cloudflare operation does not need a new Aegis tool: pass the remote tool name and a JSON arguments object. Set CLOUDFLARE_MCP_URL only if you are not using https://mcp.cloudflare.com/mcp. For one-endpoint tools, point that URL at https://mcp.cloudflare.com/mcp?codemode=false.
Application Security & SAST
Tool | Description |
| Run Semgrep SAST scan on a local directory or file |
| Run Trivy vulnerability scan on a container image |
| Scan files/directories for exposed secrets |
| Check dependency files for known CVEs via OSV.dev |
Network & Infrastructure Security
Tool | Description |
| Audit Kubernetes clusters (privileged containers, wildcard RBAC, etc.) |
| TCP port scan to detect exposed services |
| Validate SSL/TLS certificate details and expiry |
| Audit URLs for security headers (HSTS, CSP, etc.) |
SAST (Semgrep scan) works only on Agent IDEs (e.g., Antigravity, Cursor) or Claude Co-work.
It does not work on Claude Desktop due to Windows subprocess pipe limitations with semgrep-core.exe. All other tools (secrets scan, SSL check, port scan, etc.) work on all platforms including Claude Desktop.
π Getting Started
Prerequisites
Python 3.12+
Node.js 18+ (only if you want to run via npm/npx)
Semgrep β
pip install semgrep(for SAST scanning)Optional: AWS CLI /
boto3,kubectl, Trivy (for their respective tools)
Installation
git clone https://github.com/raghulvj01/aegis-mcp.git
cd aegis-mcp
# Create virtual environment
python -m venv .venv
# Activate it
# Linux/Mac:
source .venv/bin/activate
# Windows:
.venv\Scripts\activate
# Install dependencies
pip install -r requirements.txtInstall via npm (Public Package)
npm install -g @raghulm/aegis-mcp
# or run without installing globally:
npx -y @raghulm/aegis-mcpOn first run, the npm wrapper creates a local Python virtual environment and installs dependencies from requirements.txt automatically.
π€ Usage with AI Agents
Agent IDE / Antigravity (Recommended)
Add to your MCP config (e.g., mcp_config.json):
{
"mcpServers": {
"aegis": {
"command": "npx",
"args": ["-y", "@raghulm/aegis-mcp"]
}
}
}β Local tools work, including Semgrep SAST and Jenkins. Cloudflare tools also work here once you pass an API token.
Claude Desktop
Add to claude_desktop_config.json:
Windows:
%LOCALAPPDATA%\Packages\Claude_...\LocalCache\Roaming\Claude\Mac:
~/Library/Application Support/Claude/
{
"mcpServers": {
"aegis": {
"command": "npx",
"args": ["-y", "@raghulm/aegis-mcp"]
}
}
}β οΈ Semgrep SAST does not work on Claude Desktop due to Windows pipe limitations. The other local tools do. Cloudflare tools work once you pass an API token.
Cursor / Windsurf (HTTP Mode)
Start the server, then add to .cursor/mcp.json:
uvicorn server.health:app --host 0.0.0.0 --port 8000{
"mcpServers": {
"aegis": {
"url": "http://localhost:8000/mcp"
}
}
}Docker Deployment
docker build -t aegis-mcp .
docker run -p 8000:8000 aegis-mcpβοΈ Configuration
Variable | Description | Default |
| Disable JWT auth (auto-set for stdio) |
|
| Name of the MCP service |
|
| Environment ( |
|
| Path to roles policy YAML |
|
| Path to scopes policy YAML |
|
| Expected JWT | None |
| Expected JWT | None |
π Access Control
In HTTP mode, every tool requires a token argument containing a JWT. The authorization layer checks roles and scopes defined in policies/roles.yaml and policies/scope_rules.yaml.
In stdio mode (local usage via run_stdio.py), authorization is automatically disabled β no token required.
Policy Example (policies/roles.yaml)
roles:
viewer:
- aws_list_ec2_instances
- k8s_list_pods
security:
- security_run_trivy_scan
- security_semgrep_scan
admin:
- aws_list_ec2_instances
- k8s_list_pods
- security_run_trivy_scan
- security_semgrep_scan
# ... all toolsπ Audit Logging
The @audit_tool_call decorator emits structured JSON logs for every invocation:
{
"timestamp": "2026-03-06T08:00:01+00:00",
"level": "INFO",
"event": "tool_call_succeeded",
"tool": "security_run_trivy_scan",
"duration_ms": 1204
}π‘οΈ Security Best Practices
Enforce JWT Signature Validation β Update
server/auth.pyto verify RS256 JWTs using your IdP's JWKS endpoint for production.Least-Privilege Credentials β Assign ReadOnly IAM / K8s roles to the server environment.
Monitor Audit Logs β Forward JSON logs to a SIEM. Set up anomaly detection for aggressive looping.
π£οΈ Roadmap
Jenkins CI/CD integration (list, create, trigger, inspect, delete jobs) β
Terraform security scanner
IAM policy risk detection
Kubernetes misconfiguration scanner (Basic
k8s_security_auditimplemented!)GitHub Actions security audit
Cloud cost analysis tools
π€ Contributing
See CONTRIBUTING.md for contribution and maintainer release workflows.
π License
Distributed under the MIT License. See LICENSE for more information.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect assistants to your company tools with per-person, per-action grants and a full audit log.
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Fail-closed policy guardrails for AI agents running kubectl, terraform, helm, and argocd.
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform DevOps tasks including Kubernetes management, cloud provider operations, CI/CD, security scanning, and infrastructure monitoring through natural language.MIT
- FlicenseNot gradedqualityDmaintenanceEnables authorized compliance verification and security auditing through natural language, bridging AI assistants with industry-standard security tools for enterprise audits.24-

Break Anythingofficial
AlicenseNot gradedqualityBmaintenanceConnects AI coding agents to security tooling so they can inspect authorized code, dependencies, container images, and infrastructure, confirm exploitability, and receive evidence-backed remediation plans.79 npmMIT- FlicenseNot gradedqualityBmaintenanceEnables AI agents and IDE assistants to run zero-config security audits, detect secrets and vulnerable dependencies, and apply adversarial verification to reduce false positives.2-