GatewayBench:面向MCP网关的统一能力与安全评估平台 GatewayBench: Unified Capability and Security Evaluation Platform for MCP Gateways 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-16
👁️ 预览文献
💡 AI 中文简介
随着AI智能体通过MCP协议调用外部工具,MCP网关成为管理工具面的关键中间件。但此前缺乏对网关设计的系统评估。本文提出GatewayBench,首个MCP网关统一评估框架,将网关分为扁平与分层两类,构建了涵盖6个领域524个任务和来自251个真实MCP服务器的11118个工具池。通过注入无关工具模拟大规模部署,对7种网关进行实验,发现不同设计在任务完成、工具使用效率和抗攻击性上差异显著,且与底层模型和智能体框架强相关。
领域智能体系统与安全
适合谁读需要一定专业背景
核心贡献首次系统性地提出MCP网关的统一评估框架与基准,揭示网关架构对智能体能力、效率和安全的关键影响;构建了包含真实工具池和可控规模扩展的大规模测试环境。
关键数据524个任务,6个领域,11,118个工具,251个真实MCP服务器,7种网关,实验覆盖良性及对抗任务。
推荐理由如果你关心AI智能体如何安全高效地调用工具,这篇论文提供了首个系统性答案,数据扎实,结论颠覆认知。
关键词["MCP网关", "智能体评估", "工具调用", "安全基准", "中间件", "大规模部署"]

原文摘要

查看英文原文摘要

AI agents have increasingly interacted with external environments by invoking tools, with Model Context Protocol (MCP) emerging as a standard interface for connecting agents to heterogeneous tools and services. As organizations deploy agents at scale, MCP gateways have become a critical middleware layer for aggregating, governing, and shaping the tool surface exposed to agents. Despite the growing importance of MCP gateways in agentic systems, no prior work has systematically studied how gateway design affects agent capability, efficiency, and security. To address this gap, we introduce GatewayBench, the first unified evaluation framework and benchmark for MCP gateways. We characterize gateway architectures into two major paradigms: flattened gateways and hierarchical gateways. GatewayBench comprises 524 tasks across six domains, together with a pool of 11,118 real-world tools from 251 authentic MCP servers. To emulate large-scale deployments, we systematically inject task-irrelevant tools sampled from this pool into each agent environment, enabling controlled evaluation as the accessible tool surface scales. Based on GatewayBench, we conduct extensive experiments across seven widely deployed MCP gateways and diverse agent configurations, covering both benign and adversarial tasks. Our results reveal substantial differences across gateway designs in task completion, tool-use efficiency, and resilience to attacks, and further demonstrate that these effects interact strongly with the underlying model and agent harness. These findings highlight the MCP gateway as a consequential yet underexplored component of the agentic AI stack. By enabling controlled evaluation of gateway architectures under realistic tool ecosystems, GatewayBench provides both practical guidance for MCP gateway design and a rigorous testbed for developing more capable, efficient, and secure agentic systems.