MCP服务器架构模式:LLM集成应用的五种模式

MCP Server Architecture Patterns for LLM-Integrated Applications

精选理由

想给LLM挂外部工具?这篇论文把MCP服务器架构拆成五种模式,还有反模式和性能数据,Claude Haiku和Sonnet用户值得看看。

AI 摘要

该论文基于15个独立MCP服务器(5个来自ANSYR语音AI平台,10个来自官方注册表),识别出五种架构模式:Resource Gateway、Tool Orchestrator、Stateful Session Server、Proxy Aggregator和Domain-Specific Adapter。定量评估包括分类法跨两个LLM评分者的Cohen's kappa为0.76,并定位了三处模式边界模糊问题。端到端传输开销测量了环回和跨主机路径。工具计数研究显示Claude Haiku 4.5在10-15个工具时工具选择准确率低于90%,Sonnet 4在20-30个工具时准确率下降。

AI 翻译 · 中文

该论文基于15个独立MCP服务器(5个来自ANSYR语音AI平台,10个来自官方注册表),识别出五种架构模式:Resource Gateway、Tool Orchestrator、Stateful Session Server、Proxy Aggregator和Domain-Specific Adapter。定量评估包括分类法跨两个LLM评分者的Cohen's kappa为0.76,并定位了三处模式边界模糊问题。端到端传输开销测量了环回和跨主机路径。工具计数研究显示Claude Haiku 4.5在10-15个工具时工具选择准确率低于90%,Sonnet 4在20-30个工具时准确率下降。

arXiv: AnthropicThe Model Context Protocol (MCP), introduced by Anthropic in November 2024, defines a standardized interface for connecting large language models (LLMs) to external tools, data sources, and services. Within months of rel