74
/ 100
2 days ago
glama

Remote MCP OAuth Template

A production-ready template for building remote MCP servers with OAuth 2.1 authentication and JWT passthrough. It enables per-user authorization and proxies tool calls to existing backend APIs.

Is this your MCP?

Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.

Install from

M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.

// key findings
No credential exfiltration, no sensitive file access, no obfuscation
Static analysis found nothing flowing your secrets to unexpected places.
Open source with a license and README
Anyone can audit the code, the license is declared, and the publisher documents what it does.
🔐
You'll be asked for 1 credential: MOCK_JWT_SECRET
These are read from process.env at runtime. Make sure you trust where they’ll be sent.
// required environment variables
This server reads these from process.env. You'll be asked to provide them before it can run.
configALLOWED_ORIGINSCORS on these is locked to the auth app origin ().
configAUTH_APP_URL4. MCP validates the params, parks them as a short-lived mcp_session, and 302-redirects the browser to /oauth/authorize?mcp_session=....
configBACKEND_API_URL1. Point it at your API. Set and JWT_VERIFY_PATH (the endpoint that returns the current user for a Bearer token, e.g. /api/auth/me). That endpoint is all the MCP server needs from your backend.
configJWT_VERIFY_PATH1. Point it at your API. Set BACKEND_API_URL and (the endpoint that returns the current user for a Bearer token, e.g. /api/auth/me). That endpoint is all the MCP server needs from your backend.
configMCP_PUBLIC_URLThe MCP server is a plain Node.js Express app. The only hard requirement: it MUST be reachable over HTTPS at — Claude will not complete OAuth against plain HTTP.
configMCP_URL
🔐 secretMOCK_JWT_SECRET
configMOCK_PORT
configPORTno (default 4000) Local listen port
// full audit trail
The full breakdown of what we checked, the deductions that landed, the network hosts, the dependency advisories, and concrete fix guidance is available to verified publishers.
// improvement guidance — verified publishers only
We have 5 concrete improvements we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Score](https://m8ven.ai/badge/mcp/mstfbysl-remote-mcp-oauth-template-5zyjik)](https://m8ven.ai/mcp/mstfbysl-remote-mcp-oauth-template-5zyjik)
commit: cdeb6129079fee1024a5de8d13b4bf8d487495ce
code hash: 8c8d79779c02c8a6ac507d1a8300fe46ac1481f523198519d82756b4e3b7f35c
verified: 7/29/2026, 9:27:01 AM
view raw JSON →