MCP OAuth Proxy
Allows OpenAI ChatGPT (Custom Actions) to interact with downstream MCP servers through an OAuth-authenticated OpenAPI bridge, dynamically mapping tools to REST endpoints.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP OAuth Proxylist all available tools from the downstream server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP OAuth Proxy
An OAuth 2.0 / 2.1 Proxy for HTTP Model Context Protocol (MCP) servers. This proxy acts as a secure, authenticated gateway enabling integration between downstream MCP servers and client platforms like Claude Web (Custom Connectors), Claude Desktop, and OpenAI ChatGPT (Custom Actions).
Features
Standard OAuth 2.0 / 2.1 Flow:
/oauth/authorizeAuthorization endpoint with PKCE validation support and a consent screen./oauth/tokentoken endpoint supportingauthorization_code,client_credentials, andrefresh_tokenflows.In-memory session and token storage.
SSE Connection Transport:
Compliant
/mcp/sseand/mcp/messagestream transport endpoints for standard clients.Dynamically constructs absolute URLs for message endpoints behind proxies.
OpenAPI Action Bridge:
Dynamically compiles tools from the downstream MCP server into a standard OpenAPI 3.0 specification via
/openapi.json.Maps tool-call executions to RESTful endpoints at
/api/tools/call/:toolName.
Robust Downstream Parsing:
Integrates with downstream endpoints using static tokens (e.g.
LtpaToken).Automatically handles downstream self-signed/corporate certificate authority validation issues (
REJECT_UNAUTHORIZED).Seamlessly extracts JSON-RPC payloads from downstream SSE-framed strings.
Related MCP server: openclaw-mcp
Setup & Local Development
1. Installation
Clone the repository and install dependencies:
npm install2. Environment Configuration
Create a .env file in the root directory (based on the provided template):
PORT=3000
DOWNSTREAM_MCP_URL=https://<your-downstream-mcp-server-domain>/mcp
LTPA_TOKEN=<your-downstream-authentication-token>
OAUTH_CLIENT_ID=mcp-client-id
OAUTH_CLIENT_SECRET=mcp-client-secret
REJECT_UNAUTHORIZED=false3. Start the Server
npm run dev4. Running Integration Tests
Start the server, and in a separate terminal run the HTTP and SSE test suites:
# Test OAuth flow, REST mapping, and OpenAPI generation
node test-proxy.js
# Test long-lived SSE streaming and message forwarding
node test-sse.jsDeployment to Render
Create a new Web Service on Render connected to your GitHub repository.
Select the Node environment, set Build Command to
npm install, and Start Command tonpm start.Use the Add from .env button in the Environment Variables section and paste your local
.envvalues.Once deployed, note your service's live URL (e.g.
https://your-service.onrender.com).
Client Integration Guides
1. Claude Web (Custom Connectors)
In your claude.ai dashboard under Connectors -> Add Custom Connector:
Name:
MCP OAuth ProxyRemote MCP server URL:
https://<your-render-url>/mcp/sseOAuth Client ID:
mcp-client-idOAuth Client Secret:
mcp-client-secretClick Add, complete the OAuth consent screen prompt, and Claude will automatically link the downstream tools.
2. Claude Desktop (Local Bridge)
Request a client credentials token:
curl -X POST https://<your-render-url>/oauth/token \ -H "Content-Type: application/json" \ -d '{"grant_type":"client_credentials","client_id":"mcp-client-id","client_secret":"mcp-client-secret"}'Open your
claude_desktop_config.json:Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the server block using the
@modelcontextprotocol/client-clistdio-to-SSE bridge:{ "mcpServers": { "mcp-oauth-proxy": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/client-cli", "https://<your-render-url>/mcp/sse?token=YOUR_ACCESS_TOKEN" ] } } }Restart Claude Desktop.
3. OpenAI ChatGPT (Custom Actions)
In your Custom GPT configure editor under Actions:
Click Import from URL and paste:
https://<your-render-url>/openapi.json.Under Authentication, select OAuth:
Client ID:
mcp-client-idClient Secret:
mcp-client-secretAuthorization URL:
https://<your-render-url>/oauth/authorizeToken URL:
https://<your-render-url>/oauth/token
Save the GPT and trigger a tool call to start the OAuth sign-in flow.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SunilAngadala/mcp-oauth-proxy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server