解决企业LLM代理认证碎片化问题,统一身份与权限管理
A Gateway Architecture for Enterprise MCP Authentication: Unifying Heterogeneous Auth, Identity Delegation, and the User / Non-User Persona Problem
- 设计双轴认证模型,区分用户与非用户角色及凭证类型
- 构建集中网关支持多种SSO与令牌发放方式,实现统一授权
- 落地部署支撑多端接入,适配企业级安全管控需求
Model Context Protocol(MCP)已成为连接大模型代理与企业工具的事实标准,一年内大型组织内部自建的MCP服务器已从零增长至数十个。快速部署引发治理危机:各团队独立实现认证机制,存在无认证、API密钥、完整OAuth等不同方案,导致认证体系碎片化,无法统一授权、追踪操作行为或及时下线离职员工。本文报告一项行业落地实践,提出一个集中式MCP网关架构,作为所有下游MCP服务器的统一入口。核心贡献包括:1)基于角色(交互用户 vs. 自动化非用户)与凭证类型(无认证、静态/动态API密钥、PKCE、客户端凭证、平台应用上下文)的二维认证模型;2)支持三种企业SSO授权和三种令牌发放模式(自持令牌、自生成令牌、通过RFC 8693委托OAuth)的网关层;3)实现三类端到端身份流转流程:用户到OAuth2、非用户到服务账户、用户到服务账户;4)部署演进从CDN/WAF边缘层到私有MCP隧道与企业级连接器。该架构已在生产环境部署,支撑网页、桌面、自定义SDK及低代码客户端接入,覆盖数十个MCP服务器。
原文摘要 · Abstract (English)
The Model Context Protocol (MCP) has become the de-facto interface for connecting LLM agents to enterprise tools, and adoption has been explosive: within a year, large organizations went from zero to dozens of internally built MCP servers. That speed created a governance crisis. Each team implemented authentication independently -- some with no auth, some with API keys, some with full OAuth -- producing a fragmented landscape with no consistent way to authorize callers, track who did what, or offboard a departing employee across the fleet. This paper reports an industry deployment that resolves the crisis with a centralized MCP gateway: a single aggregation, governance, and authentication layer that fronts every downstream MCP server. We make four contributions grounded in production experience. First, a two-axis authentication model crossing persona (interactive user vs. automated non-user) with credential type (no-auth, static/dynamic API key, PKCE, client credentials, platform app-context). Second, a gateway authentication layer supporting three enterprise SSO grants and three token-provisioning models: Bring-Your-Own-Token, Generate-Your-Own-Token, and delegated OAuth via RFC 8693 token exchange. Third, three end-to-end identity flows -- User-to-OAuth2, Non-user-to-Service-Account, and User-to-Service-Account -- composing client, gateway, and server. Fourth, the deployment evolution from CDN/WAF/edge perimeter to private MCP tunnels and enterprise-wide connectors. The architecture is in production, fronting dozens of MCP servers across web, desktop, custom-SDK, and low-code clients.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。