The AI MCP OAuth2 plugin secures Model Context Protocol (MCP) traffic on Kong AI Gateway using OAuth 2.0 specification for MCP servers. It ensures only authorized MCP clients can access protected MCP servers, and acts as a crucial security layer for MCP servers.
Breaking change
v3.13+The MCP OAuth2 plugin now treats all incoming traffic as MCP requests to address a potential authentication bypass vulnerability.
Do not use this plugin with the AI MCP Proxy plugin in
conversion-listenermode on the same route. Non-MCP requests will fail.Use MCP OAuth2 with MCP Proxy in
listenerorpassthrough-listenermodes. For REST API exposure, configure MCP Proxy inconversion-onlymode on a separate route.