PluginBench
MCP Server
Active
Apache-2.0

io.github.getaegis/aegis MCP Server

io.github.getaegis/aegis

Credential isolation proxy for AI agents — inject secrets at the network boundary, never expose API keys.

What is the io.github.getaegis/aegis MCP server?

Aegis is a local-first credential isolation proxy for AI agents. It sits between your agent and the APIs it calls, injecting secrets at the network boundary so the agent never sees, stores, or transmits real credentials. It enforces domain restrictions, logs all requests, and integrates natively as an MCP server for Claude, Cursor, and other AI hosts.

Aegis solves the core security problem of AI agents calling real APIs: agents currently see raw API keys, have no domain guards, leave no audit trail, and can't be access-controlled per credential. Aegis runs as a local proxy that handles authentication, enforces domain allowlists, logs every request, and supports per-agent credential grants. It works as an HTTP proxy (Gate) or native MCP server, requiring no changes to your agent's code.

How to install io.github.getaegis/aegis

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • AEGIS_MASTER_KEY
    required
    secret

    Master encryption key for the credential vault

  • AEGIS_SALT
    required
    secret

    Hex-encoded 32-byte salt for key derivation (generated by aegis init)

  • AEGIS_DATA_DIR

    Directory for vault databases and registry (default: .aegis/)

  • AEGIS_PORT

    Gate proxy port (default: 3100)

  • AEGIS_LOG_LEVEL

    Log verbosity: debug, info, warn, error (default: info)

  • AEGIS_LOG_FORMAT

    Log output format: json or pretty (default: json)

  • AEGIS_VAULT

    Named vault to use (default: default)

  • AEGIS_REQUIRE_AGENT_AUTH

    Require agent authentication on every request (true/false, default: false)

  • AEGIS_POLICY_MODE

    Policy enforcement mode: enforce, dry-run, or off (default: enforce)

  • AEGIS_POLICIES_DIR

    Directory containing YAML policy files

  • AEGIS_METRICS

    Enable Prometheus metrics endpoint (true/false, default: true)

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "aegis": {
      "command": "npx",
      "args": [
        "-y",
        "@getaegis/cli"
      ],
      "env": {
        "AEGIS_MASTER_KEY": "<YOUR_AEGIS_MASTER_KEY>",
        "AEGIS_SALT": "<YOUR_AEGIS_SALT>",
        "AEGIS_DATA_DIR": "<YOUR_AEGIS_DATA_DIR>",
        "AEGIS_PORT": "<YOUR_AEGIS_PORT>",
        "AEGIS_LOG_LEVEL": "<YOUR_AEGIS_LOG_LEVEL>",
        "AEGIS_LOG_FORMAT": "<YOUR_AEGIS_LOG_FORMAT>",
        "AEGIS_VAULT": "<YOUR_AEGIS_VAULT>",
        "AEGIS_REQUIRE_AGENT_AUTH": "<YOUR_AEGIS_REQUIRE_AGENT_AUTH>",
        "AEGIS_POLICY_MODE": "<YOUR_AEGIS_POLICY_MODE>",
        "AEGIS_POLICIES_DIR": "<YOUR_AEGIS_POLICIES_DIR>",
        "AEGIS_METRICS": "<YOUR_AEGIS_METRICS>"
      }
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • aegis_proxy_request — Make an authenticated API call by providing service name and path; Aegis injects credentials and enforces domain/policy restrictions.
  • aegis_list_services — List available services by name only, without exposing secrets.
  • aegis_health — Check Aegis proxy status and connectivity.

Use cases

  • Protect Slack bot tokens and GitHub PATs from prompt injection by routing agent API calls through a domain-restricted proxy
  • Grant individual agents access to specific credentials with per-agent tokens and rate limits, preventing lateral movement if one agent is compromised
  • Audit every API call an agent makes (allowed and blocked) with full request/response context for compliance and debugging
  • Scan outbound request bodies for credential-like patterns to prevent accidental exfiltration
  • Enforce time-of-day and rate-limit policies on sensitive APIs (e.g., Stripe, database writes) without modifying agent code

io.github.getaegis/aegis MCP server FAQ

What is Aegis and why do I need it?

Aegis is a credential isolation proxy that sits between your AI agent and the APIs it calls. It injects secrets at the network boundary so the agent never sees raw API keys, preventing exfiltration via prompt injection. It also enforces domain restrictions, logs all requests, and supports per-agent access control.

Is Aegis free?

Yes, Aegis is open source under the Apache 2.0 license. You can install it locally via npm, Homebrew, or Docker at no cost.

How do I install Aegis in Claude Desktop or Cursor?

Install the CLI globally (`npm install -g @getaegis/cli`), initialize it (`aegis init`), add credentials (`aegis vault add`), then run `aegis mcp config claude` or `aegis mcp config cursor` to generate the MCP configuration. Paste the output into your AI host's config file.

Does Aegis require authentication?

Aegis uses OS keychain (macOS, Windows, Linux) to store the master encryption key by default, with optional file fallback. For agent access, you can enable per-agent tokens (recommended for production) or run without agent auth for local development.

What credentials and services does Aegis support?

Aegis is service-agnostic — it works with any HTTP API (Slack, GitHub, Stripe, databases, custom APIs). You define services by name, secret, and allowed domains when adding credentials to the vault.

Can I use Aegis in production?

Yes. Aegis includes AES-256-GCM encryption, domain guards, audit logging, RBAC, policy engine, rate limiting, webhook alerts, and Prometheus metrics. See the published STRIDE threat model and security architecture docs for details.

README (reference)

Source of truth, from the repository.

Aegis

CI npm version Docker License

Stop putting API keys where AI agents can read them.

Aegis is a local-first credential isolation proxy for AI agents. It sits between your agent and the APIs it calls — injecting secrets at the network boundary so the agent never sees, stores, or transmits real credentials.

<p align="center"> <img src="docs/assets/demo.gif" alt="Aegis demo" width="720" /> </p>

How It Works

<p align="center"> <img src="docs/assets/how-it-works.svg" alt="How Aegis works — agent sends request through Gate, credentials injected at the network boundary" width="900" /> </p>

Why?

AI agents (Claude, GPT, Cursor, custom bots) increasingly call real APIs — Slack, GitHub, Stripe, databases. The current pattern is dangerous:

  1. Agents see raw API keys — one prompt injection exfiltrates them
  2. No domain guard — a compromised agent can send your Slack token to evil.com
  3. No audit trail — you can't see what an agent did with your credentials
  4. No access control — every agent can use every credential

Aegis solves all four. Your agent makes HTTP calls through a local proxy. Aegis handles authentication, enforces domain restrictions, and logs everything.

Quick Start

# Install
npm install -g @getaegis/cli

# Initialize (stores master key in OS keychain by default)
aegis init

# Add a credential
aegis vault add \
  --name slack-bot \
  --service slack \
  --secret "xoxb-your-token-here" \
  --domains slack.com

# Start the proxy
aegis gate --no-agent-auth

# Test it — Aegis injects the token, forwards to Slack, logs the request
# X-Target-Host tells Gate which upstream server to forward to (optional if credential has one domain)
curl http://localhost:3100/slack/api/auth.test \
  -H "X-Target-Host: slack.com"

Production Setup (with agent auth)

# Create an agent identity
aegis agent add --name "my-agent"
# Save the printed token — it's shown once only

# Grant it access to specific credentials
aegis agent grant --agent "my-agent" --credential "slack-bot"

# Start Gate (agent auth is on by default)
aegis gate

# Agent must include its token
curl http://localhost:3100/slack/api/auth.test \
  -H "X-Target-Host: slack.com" \
  -H "X-Aegis-Agent: aegis_a1b2c3d4..."

MCP Integration

Aegis is a first-class MCP server. Any MCP-compatible AI agent can use it natively — no HTTP calls needed.

Before (plaintext key in config):

{
  "mcpServers": {
    "slack": {
      "command": "node",
      "args": ["slack-mcp-server"],
      "env": { "SLACK_TOKEN": "xoxb-1234-real-token-here" }
    }
  }
}

After (Aegis — no key visible):

{
  "mcpServers": {
    "aegis": {
      "command": "npx",
      "args": ["-y", "@getaegis/cli", "mcp", "serve"]
    }
  }
}

Generate the config for your AI host:

aegis mcp config claude   # Claude Desktop
aegis mcp config cursor   # Cursor
aegis mcp config vscode   # VS Code
aegis mcp config cline    # Cline
aegis mcp config windsurf # Windsurf

The MCP server exposes three tools:

ToolDescription
aegis_proxy_requestMake an authenticated API call (provide service + path, Aegis injects credentials)
aegis_list_servicesList available services (names only, never secrets)
aegis_healthCheck Aegis status

The MCP server replicates the full Gate security pipeline: domain guard, agent auth, body inspection, rate limiting, audit logging.

Setup Guides

Features

FeatureDescription
Encrypted VaultAES-256-GCM encrypted credential storage with PBKDF2 key derivation
HTTP Proxy (Gate)Transparent credential injection — agent hits localhost:3100/{service}/path
Domain GuardEvery outbound request checked against credential allowlists. No bypass
Audit LedgerEvery request (allowed and blocked) logged with full context
Agent IdentityPer-agent tokens, credential scoping, and rate limits
Policy EngineDeclarative YAML policies — method, path, rate-limit, time-of-day restrictions
Body InspectorOutbound request bodies scanned for credential-like patterns
MCP ServerNative Model Context Protocol for Claude, Cursor, VS Code, Windsurf, Cline
Web DashboardReal-time monitoring UI with WebSocket live feed
Prometheus Metrics/_aegis/metrics endpoint for Grafana dashboards
Webhook AlertsHMAC-signed notifications for blocked requests, expiring credentials
RBACAdmin, operator, viewer roles with 16 granular permissions
Multi-VaultSeparate vaults for dev/staging/prod with isolated encryption keys
Shamir's Secret SharingM-of-N key splitting for team master key management
Cross-Platform Key StorageOS keychain by default (macOS, Windows, Linux) with file fallback
TLS SupportOptional HTTPS on Gate with cert/key configuration
Configuration Fileaegis.config.yaml with env var overrides and CLI flag overrides

Example Integrations

Step-by-step guides with config files and policies included:

  • Slack Bot — Protect your Slack bot token with domain-restricted proxy access
  • GitHub Integration — Secure GitHub PAT with per-agent grants and read-only policies
  • Stripe Backend — Isolate Stripe API keys with body inspection and rate limiting
  • OpenClaw Skill — Aegis skill for OpenClaw personal AI assistant

Security

  • Published STRIDE threat model — 28 threats analysed, 0 critical/high unmitigated findings
  • Full security architecture documentation (trust boundaries, crypto pipeline, data flow)
  • AES-256-GCM + ChaCha20-Poly1305 encryption at rest
  • Domain guard enforced on every request — no bypass
  • Agent tokens stored as SHA-256 hashes — cannot be recovered, only regenerated
  • Request body inspection for credential pattern detection
  • Open source (Apache 2.0) — read the code

How Aegis Compares

.env filesVault/DopplerInfisicalAegis
Agent sees raw keyYesYes (after fetch)Yes (after fetch)No — never
Domain restrictionsNoNoNoYes
MCP-nativeNoNoAddingYes
Local-firstYesNoNoYes
Setup10 sec30+ min15+ min~2 min

See full comparison for detailed breakdowns against each approach.

Documentation

DocumentDescription
Usage GuideFull reference: CLI commands, configuration, RBAC, policies, webhooks, troubleshooting
Security ArchitectureTrust boundaries, crypto pipeline, data flow diagrams
Threat ModelSTRIDE analysis — 28 threats, mitigations, residual risks
ComparisonDetailed comparison with .env, Vault, Doppler, Infisical
FAQCommon questions and objections
RoadmapFeature roadmap
ContributingCode style, PR process, architecture overview

Install

# npm
npm install -g @getaegis/cli

# Homebrew
brew tap getaegis/aegis && brew install aegis

# Docker
docker run ghcr.io/getaegis/aegis --help

Requires Node.js ≥ 20 — check with node -v

Development

git clone https://github.com/getaegis/aegis.git
cd aegis
yarn install
yarn build
yarn test

See CONTRIBUTING.md for code style, PR process, and architecture overview.

License

Apache 2.0

Related MCP servers

Ricardian contracts for AI agents — dual-format, SHA-256 bound, legible by construction.

View repository →

Headless Ghidra MCP server with P-code emulation and multi-console ROM triage.

0
Python
Apache-2.0
View repository →
ANAnyAPI logo

AnyAPI

Active

Hundreds of scraping & data APIs through one key. USD pay-per-request, normalized schemas, failover.

1
Python
Apache-2.0
View repository →
GEGetBirthChart MCP logo

Official MCP server for GetBirthChart astrology calculations.

0
TypeScript
MIT
View repository →

Search and book coworking spaces and conference rooms via Croissant.

View repository →
CUCutPro logo

CutPro

Maintained

AI clips from long videos: analyze, clip, render and publish via the CutPro API.

1
JavaScript
MIT
View repository →