MCP Server Auth Template

io.github.brunovicco/mcp-server-auth-template

OAuth 2.1/OIDC resource-server reference for secure MCP authorization

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "mcp-server-auth-template": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/brunovicco/mcp-server-auth-template:v0.7.0"
      ],
      "env": {
        "MCP_SERVER_RESOURCE_SERVER_URL": "<your MCP_SERVER_RESOURCE_SERVER_URL>",
        "MCP_SERVER_AUTH_PROVIDER": "<your MCP_SERVER_AUTH_PROVIDER>",
        "MCP_SERVER_REQUIRED_SCOPES": "[\"mcp:tools:call\"]",
        "MCP_SERVER_TRANSPORT_ALLOWED_HOSTS": "[\"127.0.0.1:8000\"]",
        "MCP_SERVER_GENERIC_JWKS_ALLOWED_ORIGINS": "[]"
      }
    }
  }
}
Environment variables
  • MCP_SERVER_RESOURCE_SERVER_URLrequiredProtected-resource URL advertised by this deployment
  • MCP_SERVER_AUTH_PROVIDERrequiredAuthorization-server adapter to use
  • MCP_SERVER_REQUIRED_SCOPESJSON array of baseline delegated OAuth scopes
  • MCP_SERVER_TRANSPORT_ALLOWED_HOSTSAdditional exact Host values accepted by the local container transport
  • MCP_SERVER_GENERIC_JWKS_ALLOWED_ORIGINSOptional JSON array of explicitly trusted cross-origin JWKS origins

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
0.7.0
Registry
active
Published
9/23/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that MCP Server Auth Template is listed here — it’s also the link we check for a free listing.

MCP Server Auth Template — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-brunovicco-mcp-server-auth-template?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="MCP Server Auth Template — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![MCP Server Auth Template — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-brunovicco-mcp-server-auth-template?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.