Secure your MCP servers with OAuth
In this free, on-demand technical lab, build a secure, proxied MCP server using agentgateway and OAuth2 authentication.
- Create a simple MCP server: Build a Python-based MCP service exposing an
echotool and test it using the MCP Inspector GUI or CLI. - Proxy with agentgateway: Route requests through agentgateway, separating the MCP server logic from cross-cutting concerns like observability and authorization.
- Enable authentication: Configure OAuth2 with Keycloak to secure the MCP server, issuing tokens and enforcing access policies.
- Test the secure flow: Validate that clients can authenticate via the proxy and continue interacting with MCP tools safely.
Gain hands-on experience deploying, securing, and managing MCP servers in a cloud-native environment, learning how to integrate proxies and authentication into AI-native workloads.
Secure your MCP servers with OAuth
Lab
Take the course
Additional Resources
Cloud connectivity done right
