MCP服务器架构模式:LLM集成应用的五种模式
MCP Server Architecture Patterns for LLM-Integrated Applications
想给LLM挂外部工具?这篇论文把MCP服务器架构拆成五种模式,还有反模式和性能数据,Claude Haiku和Sonnet用户值得看看。
该论文基于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个工具时准确率下降。
MCP Server Architecture Patterns for LLM-Integrated Applications
The 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 release, hundreds of community-built MCP servers appeared on GitHub, but no software-maintenance literature has yet described how the ecosystem is being structured in production. This industry experience paper catalogues five recurring MCP server architectural patterns observed across an enumerated corpus of fifteen independently developed servers (five production servers from the ANSYR voice AI platform plus ten public servers from the official MCP registry): Resource Gateway, Tool Orchestrator, Stateful Session Server, Proxy Aggregator, and Domain-Specific Adapter. Each pattern is described in the structured form of Gamma et al.: context, problem, solution, and consequences. We also document four anti-patterns and a set of cross-cutting concerns around authentication, versioning, and observability. The quantitative evaluation contributes three measurements: inter-rater reliability of the taxonomy across two independent LLM raters on 54 held-out servers (Cohen's kappa = 0.76), which also localizes three pattern-boundary ambiguities; transport overhead measured end-to-end on loopback and modeled for cross-host paths; and a tool-count study showing tool-selection accuracy drops below 90% between 10 and 15 tools per context for Claude Haiku 4.5 and between 20 and 30 tools for Sonnet 4. Code, corpus, and prompts are released as a replication package.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:MCP、Claude Haiku 4.5、Sonnet 4、架构模式,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始信息发布自一手权威信源「arXiv: Anthropic」(Tier-1 一手发布),具备高确定性参考价值。截至目前,全网已有 2 家独立信源对该事件进行交叉印证与跟进报道(含 Decoder 等),属于近期高关注度行业信号。
- Decoder07-01 07:40原文