AgentGuard MCP Server

AgentGuard MCP Server

Provides a secure MCP boundary for AI agents, intercepting and validating tool calls, redacting secrets, and requiring human approval for sensitive actions with a tamper-evident audit trail.

Category
访问服务器

README

AgentGuard

Runtime security for AI agents. AgentGuard intercepts tool calls at an MCP boundary, validates provenance and arguments, applies deterministic policy precedence, redacts secrets, pauses sensitive actions for human approval, and writes a tamper-evident audit trail.

AgentGuard attack lab

The application boots with a complete deterministic attack demo and zero credentials. Live adapters activate only when their hosted-service environment variables are present. AgentGuard never downloads a model and has no Ollama or local-vLLM fallback.

This is not a chatbot wrapper. It demonstrates agent security, protocol design, streaming UX, policy engineering, human-in-the-loop execution, multi-runtime architecture, observability, retrieval, evaluation, and hosted deployment.

Four attack fixtures prove four distinct controls:

Fixture Expected enforcement Security control
Indirect prompt injection BLOCK Untrusted provenance + destructive SQL
Secret exfiltration REDACT Recursive credential removal before egress
Production rollback APPROVAL Suspended execution + operator decision
Repository intelligence ALLOW Explicit read-only tool authorization

Stack, with a real job for each tool

Technology Implemented responsibility
Vercel AI SDK Typed UI event streaming and hosted model calls
OpenAI Responses API Explicit responses() inference route using GPT-5.6
OpenAI Agents SDK Primary hosted agent runtime connected to protected MCP tools
Model Context Protocol Streamable HTTP gateway with six guarded tools
LangGraph Stateful retrieve → assess → approve/finalize workflow
Mastra TypeScript-native agent through LiteLLM
PydanticAI Typed SecurityAssessment structured output
LiteLLM Hosted provider routing, retry, and budget gateway
Hosted vLLM Remote OpenAI-compatible serving adapter; never local
PostgreSQL + pgvector Security-run persistence, checkpoints, semantic audit history
Qdrant Hosted policy and attack-corpus vector retrieval
LlamaIndex Ingestion and retrieval over the Qdrant collection
DSPy Evaluation-driven policy-classifier optimization
Arize Phoenix Hosted OpenTelemetry traces and evaluation visibility

Run the credential-free demo

pnpm install
pnpm dev

Open http://localhost:3000. The first attack runs automatically. No .env.local is necessary.

pnpm typecheck
pnpm test
pnpm build

Repository map

src/app/                         Next.js UI and API routes
src/components/                  Recruiter-facing attack console
src/lib/guard/                   Policy engine, schemas, fixtures, audit chain
src/lib/mcp/                     MCP server and protected real/simulated executors
src/lib/runtimes/                OpenAI Agents, Mastra, and Python-service adapters
src/lib/ai/                      LiteLLM and remote-vLLM model providers
services/intelligence/           Hosted FastAPI intelligence service
infrastructure/postgres/         pgvector schema
infrastructure/litellm/          Hosted LiteLLM routing config
tests/                           Policy and browser-level verification
docs/                            Architecture, threat model, demo, credentials

For the live architecture, see Architecture. For the exact optional keys and their destinations, see Credentials. For interview delivery, use the 90-second demo script.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选