arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.23449cs.AI
收藏

GatewayBench:MCP网关的统一能力与安全评估平台

GatewayBench: Unified Capability and Security Evaluation Platform for MCP Gateways

Tsinghua University(清华大学);University of Chicago(芝加哥大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Yitian Zheng, Zhaorun Chen, Haoyu Li, Bo Li

AI总结:

本研究提出首个MCP网关统一评估框架GatewayBench,涵盖524个任务与11118个真实工具,通过实验发现不同网关设计在任务完成等方面差异显著,为网关设计提供指导并助力智能体系统开发。

摘要:

智能体越来越多地通过调用工具与外部环境交互,模型上下文协议(Model Context Protocol,MCP)作为连接智能体与异构工具及服务的标准接口应运而生。随着企业大规模部署智能体,MCP网关已成为聚合、管控和塑造向智能体开放的工具面的关键中间件层。尽管MCP网关在智能体系统中的重要性日益提升,但此前尚无研究系统探讨网关设计如何影响智能体的能力、效率与安全性。为填补这一空白,我们提出GatewayBench,首个针对MCP网关的统一评估框架与基准。我们将网关架构分为两大范式:扁平化网关与分层网关。GatewayBench涵盖6个领域的524个任务,以及来自251个真实MCP服务器的11118个真实工具池。为模拟大规模部署场景,我们从该工具池中采样与任务无关的工具,系统性注入每个智能体环境,从而在可访问工具面扩展时开展可控评估。基于GatewayBench,我们针对7种广泛部署的MCP网关与多样的智能体配置开展大量实验,涵盖良性与对抗性任务。结果显示,不同网关设计在任务完成率、工具使用效率与抗攻击能力方面存在显著差异,且这些影响与底层模型和智能体框架存在强烈交互作用。这些发现表明,MCP网关是智能体AI栈中重要但未被充分探索的组件。通过在真实工具生态下对网关架构开展可控评估,GatewayBench既为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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑