MCP OAuth Proxy
A lightweight OAuth 2.1 Client Credentials Flow proxy for MCP STDIO servers. Automatically fetches Bearer tokens and proxies JSON-RPC requests to your HTTP MCP server.
Power your agent
คำสั่งของผู้เผยแพร่เอง ไม่ใช่เอนด์พอยต์ของ PlugMCP
Host a copy with our keys and logs.
npx -y [email protected]Claude Code ไม่มีลิงก์ติดตั้งสำหรับคำสั่งแบบโลคัล ให้คัดลอกคำสั่งด้านล่างแล้วรันในเทอร์มินัล
claude mcp add mcp-oauth-proxy -- npx -y mcp-oauth-proxy@1.0.2รันในเทอร์มินัล
{ "mcpServers": { "mcp-oauth-proxy": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}claude_desktop_config.json
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดจากผู้เผยแพร่
A lightweight OAuth 2.1 Client Credentials Flow proxy for MCP STDIO servers. Automatically fetches Bearer tokens and proxies JSON-RPC requests to your HTTP MCP server.
OAuth 2.1 Client Credentials Flow proxy for MCP STDIO servers. Automatically fetches tokens and proxies JSON-RPC requests with Bearer authentication.
Option 1: Global Installation
npm install -g mcp-oauth-proxy
Option 2: Use with npx (no installation needed)
npx mcp-oauth-proxy
export MCP_CLIENT_SECRET="your-oauth-client-secret"
mcp.json)Add to your VS Code settings file (~/.config/Code/User/mcp.json):
{
"servers": {
"my-mcp-server": {
"command": "npx",
"args": ["-y", "mcp-oauth-proxy"],
"type": "stdio",
"env": {
"MCP_CLIENT_ID": "your-oauth-client-id",
"MCP_CLIENT_SECRET": "${env:MCP_CLIENT_SECRET}",
"MCP_AUTH_SERVER_URL": "https://your-auth-server.com/token",
"MCP_SERVER_URL": "http://localhost:8000/mcp"
}
}
}
}
Press Cmd+K Cmd+W (macOS) or Ctrl+K Ctrl+W (Windows/Linux) to reload VS Code window.
VS Code (STDIO)
↓ (JSON-RPC message)
mcp-oauth-proxy
├─ Fetches OAuth token from MCP_AUTH_SERVER_URL
└─ Adds "Authorization: Bearer <token>" header
↓ (HTTP POST)
Your MCP Server (HTTP)
↓ (Validates Bearer token)
← Returns JSON-RPC response
↓
VS Code (STDIO)
The proxy logs to stderr:
[OAuth Proxy] Initialized with:
Client ID: your-client-id
Client Secret length: 32
Auth Server: https://...
MCP Server: http://localhost:8000/mcp
[OAuth Proxy] Starting STDIO proxy...
[OAuth] Token fetched successfully (expires in 300s)
Check the VS Code Output panel (View → Output) and select "MCP Servers" from the dropdown.
Solution: Make sure to set MCP_CLIENT_SECRET in your system environment before launching VS Code:
export MCP_CLIENT_SECRET="your-secret"
Solution: Check that your client ID and secret are correct for the OAuth server.
Solution: Make sure your MCP server is running and MCP_SERVER_URL is correct.
MIT License - see LICENSE file for details
Contributions welcome! Feel free to open issues or PRs.
OAuth 2.1 Client Credentials Flow proxy for MCP STDIO servers. Automatically fetches tokens and proxies JSON-RPC requests with Bearer authentication.
{ "mcpServers": { "mcp-oauth-proxy": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ระเบียนนี้ไม่ได้ระบุตัวแปรสภาพแวดล้อมที่จำเป็น
MCP Oauth Proxy ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-11-16 OAuth 2.1 Client Credentials Flow proxy for MCP STDIO servers. Automatically fetches tokens and proxies JSON-RPC requests with Bearer authentication.