AegisGate MCP — Secure MCP Server Framework

Free, open-source MCP server framework with 23 security layers. Zero external dependencies. Apache 2.0. Protect AI agents from prompt injection, tool poisoning, and malicious tool calls.

🛡️ AegisGate MCP v1.5.1 is LIVE — 23 security layers, Streamable HTTP transport with SSE streaming, server-initiated notifications, resource subscriptions, resource templates, tool poisoning detection, ML threat detection, zero dependencies. View on GitHub (free, open source, Apache 2.0).

🛡️ AegisGate MCP is a free, open-source MCP server framework built for security-first AI agent deployments. 23 layers of defense, zero external dependencies, signed releases.

View on GitHub → Download v1.5.1 →

What Is AegisGate MCP?

AegisGate MCP is a standalone MCP server framework that applies 23 security layers to every JSON-RPC request — from prompt injection detection to tool poisoning prevention to response scanning. It’s the security-hardened alternative to the official MCP SDKs, designed for teams that can’t afford to treat MCP security as an afterthought.

  • Protocol: MCP 2025-06-18
  • Language: Go 1.26.9
  • License: Apache 2.0
  • Dependencies: Zero (no require directives in go.mod)

23 Security Layers

#LayerWhat It Does
1Regex Pattern Matching30 patterns detect known injection vectors
2ATLAS ComplianceMaps to ATLAS threat framework
3Neural ML DetectionCharCNN-BiLSTM v13, 1.6M params, <1ms CPU inference
4Tool Poisoning DetectionScans tool descriptions and schemas at registration
5RBACRole-based access control per tool
6Policy EngineConfigurable allow/deny rules
7Audit LoggingFull session recording, ATLAS-mapped
8Response ScanningScans tool outputs before returning to client
9Rate LimitingPer-session, per-tool, per-client
10Session Management256-bit session IDs, 30-min expiry
11-23Additional layersSignature verification, guardrails, chain analysis, evasion detection (L2.5), elicitation support, and more

Transports

ModeFlagDescription
TCP--transport tcp (default)TCP listener, supports TLS/mTLS
stdio--transport stdioStandard MCP stdin/stdout for local clients
HTTP--transport httpStreamable HTTP (MCP 2025-06-18) with Mcp-Session-Id session management and SSE streaming

What’s New in v1.5.1

  • Evasion Detection (L2.5) — 15 regex patterns detecting encoding (base64, URL, unicode, HTML entities), splitting (zero-width chars, interleaving), obfuscation (leet speak, padding, markup), and semantic evasion (role-play framing, instruction override)
  • Elicitation Support — Server-asks-client across all 3 transports (async HTTP, sync TCP+stdio) via elicitation/create
  • Per-Tool Rate Limiting — MaxCallsPerToolPerSession with per-tool overrides
  • JSON-RPC 2.0 Batch Support — Array requests across all transports
  • SSE Reconnection — Last-Event-ID header with ring buffer replay
  • Per-Session SSE Multiplexing — Multiple concurrent SSE streams per session
  • 643 tests (611 unit/integration + 32 load/stress), 14 benchmarks, 3 fuzz targets, 92.0% coverage
  • Race detector clean — CI runs go test -race on every PR

Quick Start

# Download signed binary
wget https://github.com/aegisgatesecurity/aegisgate-mcp/releases/download/v1.5.1/mcp-server-linux-amd64
chmod +x mcp-server-linux-amd64

# Run with demo tools
./mcp-server-linux-amd64 --demo --addr :8081

# Or use Docker
docker run -p 8081:8081 ghcr.io/aegisgatesecurity/aegisgate-mcp:1.5.1

Use as a Go Library

import "github.com/aegisgatesecurity/aegisgate-mcp"

srv, _ := mcpsecurity.NewSecuredMCPServer(cfg)
srv.RegisterTool("my-tool", "Description", 10, inputSchema, handler)
srv.RegisterResource("file:///data", "Data", "Data resource", "application/json", resourceHandler)
srv.RegisterPrompt("greeting", "Greeting prompt", promptHandler)
srv.Start(ctx)

Supply Chain Integrity

Every release includes 12 Cosign-signed assets:

  • 4 binaries (Lite+ML × amd64+arm64)
  • 4 SHA256 checksums
  • 4 Cosign bundles (Sigstore/Fulcio/Rekor)
  • SBOM attestation on container images

Comparison

FeatureAegisGate MCPOfficial MCP SDKmcpgatemcp-shield
Security layers230~5~3
Tool poisoning detection✅❌❌❌
ML threat detection✅❌❌❌
SSE streaming✅❌❌❌
External dependencies0ManyManyMany
Supply chain signing✅ Cosign❌❌❌
Protocol version2025-06-182025-06-182024-11-052024-11-05

See full comparison and OWASP MCP Top 10 mapping.

When to Upgrade to Platform

AegisGate MCP is free and standalone. When you need enterprise scale (unlimited ML inference, OAuth/SAML/SSO, SIEM integration, 31 compliance frameworks, multi-protocol support), upgrade to AegisGate Platform.

NeedAegisGate MCP (free)AegisGate Platform
Secure MCP server✅ 23 layers✅ Embedded
ML threat detection✅ 100 inf/min✅ Unlimited
OAuth/SAML/SSO❌ Bearer tokens✅ Full SSO
SIEM integration❌ File + Prometheus✅ 11 platforms
Compliance❌✅ 31 frameworks
Scale250 connectionsUnlimited