arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.07426cs.DCcs.AIcs.CLcs.NIcs.SE
收藏

支持MCP的LLM智能体的网络与系统性能表征

Network and Systems Performance Characterization of MCP-Enabled LLM Agents

Rutgers University(罗格斯大学)

Zihao Ding, Mufeng Zhu, Yao Liu

AI总结:

本文针对支持模型上下文协议(MCP)的大型语言模型(LLM)智能体,通过测量分析揭示能力、性能与成本的权衡,探索不同模型和配置对关键指标的影响并提出优化方案,为高效稳健的MCP工作流开发提供见解。

摘要:

模型上下文协议(Model Context Protocol,MCP)因能为大型语言模型(LLMs)提供与外部工具和服务交互的标准化方式、显著增强其能力,近期在AI社区受到越来越多关注。然而,支持MCP的LLM交互中包含的系统提示、MCP工具定义和上下文历史等大量上下文信息,大幅增加了token使用量。由于LLM提供商按token收费,这些扩展的上下文会迅速推高货币成本,并增加LLM服务的计算负载。本文对支持MCP的LLM交互进行了全面的基于测量的分析,揭示了能力、性能和成本之间的权衡。我们探索了不同LLM模型和MCP配置如何影响token效率、货币成本、任务完成时间和任务成功率等关键性能指标,并提出了包括启用并行工具调用和实现稳健的任务中止机制在内的潜在优化方案。这些发现为开发更高效、稳健且经济的支持MCP的工作流提供了有用的见解。

英文摘要:

Model Context Protocol (MCP) has recently gained increased attention within the AI community for providing a standardized way for large language models (LLMs) to interact with external tools and services, significantly enhancing their capabilities. However, the inclusion of extensive contextual information, including system prompts, MCP tool definitions, and context histories, in MCP-enabled LLM interactions, dramatically inflates token usage. Given that LLM providers charge based on tokens, these expanded contexts can quickly escalate monetary costs and increase the computational load on LLM services. This paper presents a comprehensive measurement-based analysis of MCP-enabled interactions with LLMs, revealing trade-offs between capability, performance, and cost. We explore how different LLM models and MCP configurations impact key performance metrics such as token efficiency, monetary cost, task completion times, and task success rates, and suggest potential optimizations, including enabling parallel tool calls and implementing robust task abort mechanisms. These findings provide useful insights for developing more efficient, robust, and cost-effective MCP-enabled workflows.

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

↑