Getmcpauth MCP Server

Drop-in OAuth 2.1 + Dynamic Client Registration for MCP servers, backed by mcpauth.

Local serverstdio

What is the Getmcpauth MCP server?

Connect Getmcpauth to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Drop-in OAuth 2.1 + Dynamic Client Registration for MCP servers, backed by mcpauth. The getmcpauth mcp server is what makes that connection.

What the server does

Wraps the official @modelcontextprotocol/sdk's requireBearerAuth middleware so unauthenticated or invalid requests get rejected with a spec-correct 401 before they ever reach your MCP server's handlers.

Installation

Installation goes through your MCP client rather than a global install: point it at getmcpauth on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Credentials and setup notes

Configuration is passed through the environment: MCPAUTH_SECRET. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Where it fits

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. It is maintained by yilmazali325; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Getmcpauth's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How to install the Getmcpauth MCP server

{
  "mcpServers": {
    "getmcpauth": {
      "command": "npx",
      "args": ["-y", "getmcpauth"],
      "env": {
        "MCPAUTH_SECRET": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
MCPAUTH_SECRETCredential the server authenticates with.Yes

Frequently asked questions

It connects Getmcpauth to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Getmcpauth directly.