tags:: MCP Server source:: How to create multiple MCP server hosted on single endpoint with different Routes - Intermediate location /mcp-a/ { proxy_pass http://mcp-a.internal:8080/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; auth_request /auth; } location /mcp-b/ { proxy_pass http://mcp-b.internal:8080/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; auth_request /auth; } # Auth endpoint location = /auth { internal; proxy_pass http://oauth2-proxy.internal:4180/auth; proxy_pass_request_body off; proxy_set_header Content-Length ""; proxy_set_header X-Original-URI $request_uri; proxy_set_header X-Original-Method $request_method; }