AegisMCP

AegisMCP

A local-first security gateway and visual dashboard for AI agents that enforces cost caps, blocks prompt injections, and requires approval for dangerous actions.

Category
Visit Server

README

šŸ›”ļø AegisMCP: Zero-Trust Security & Cost Firewall for AI Agents

License: MIT PRs Welcome Model Context Protocol

AegisMCP is a local-first security gateway and visual dashboard that sits between your filesystem and your AI coding agents (Claude Desktop, Cursor, Copilot). It strictly protects your infrastructure from destructive commands and heavily defends your API unit economics from runaway token costs.

<div align="center"> <img src="./AegisMCP.PNG" alt="AegisMCP Dashboard showing Firewall Active and 30% Profit Margin Guarantee" width="800"/> </div>


🚨 The Problem

Giving AI agents raw, unmonitored access to the Model Context Protocol (MCP) or your local terminal is a massive risk. A hallucination or infinite loop can wipe out a database, expose your .env files, or rack up thousands of dollars in API bills overnight, destroying your project's profit margins.

✨ How AegisMCP Solves It

AegisMCP acts as an impenetrable, zero-trust proxy:

  • Financial Guardrails (Guaranteed Margins): Hard-caps daily API spend and enforces a strict structural markup (e.g., 30%) calculation before execution to guarantee positive unit economics.
  • Semantic Threat Interception: Blocks prompt injections and malicious commands (chmod 777, DROP TABLE) instantly.
  • Real-Time Visual Dashboard: A Next.js hub that lets you monitor agent activity and requires explicit approval for dangerous actions.
  • Zero-Latency Local Compute: The interceptor runs locally alongside your agent, meaning zero cloud latency and no third-party data tracking.

šŸš€ Seamless Setup & Connection Guide

AegisMCP is designed for frictionless integration. You can boot the entire firewall in under 60 seconds.

1. Install & Boot the Firewall

Initialize the monorepo locally without complex configurations:

git clone [https://github.com/thekartikeyamishra/AegisMCP.git](https://github.com/thekartikeyamishra/AegisMCP.git)
cd AegisMCP




2. Connect Claude Desktop
Tell Claude to route its tools through your local Aegis firewall.

Open your Claude configuration file:

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Add AegisMCP to the mcpServers object:
npm install
npm run dev

{
  "mcpServers": {
    "AegisFirewall": {
      "command": "node",
      "args": ["/absolute/path/to/AegisMCP/packages/cli/dist/index.js"]
    }
  }
}



Restart Claude Desktop. You will see a šŸ”Ø icon indicating Aegis is connected.

3. Connect Cursor AI
Open Cursor Settings > Features > MCP Servers.

Click + Add New MCP Server.

Name it AegisFirewall.

Set the command to node and the argument to the absolute path of packages/cli/dist/index.js.

Click Save. Cursor will now route all system calls through Aegis.

šŸ” Search Keywords & SEO Tags
mcp-server, model-context-protocol, claude-desktop-skills, ai-agent-security, llm-firewall, prompt-injection-protection, cursor-agent-tools, openai-cost-control, api-token-tracker, zero-trust-ai, local-mcp-proxy.

šŸ¤ Contributing
AegisMCP is a community-driven defense layer. We actively accept Pull Requests! If you discover a new AI jailbreak or destructive pattern, please submit a PR. Check out our Good First Issues in the issue tracker to get started.

āš–ļø License & Liability
Distributed under the MIT License. AegisMCP is provided "AS IS". The authors hold no liability for API costs incurred or data lost by third-party AI agents. See LICENSE for more information.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured