Atlas / MCP servers / mcp-auth / Auth

AuthSAFE

mcp/mcp-auth/auth

🔐 Plug-and-play auth for Node.js MCP servers.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
2 1r · 0w · 1d
Transport
—
License
MIT
Stars
50
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://github.com/mcp-auth/js/actions?query=branch%3Amaster) [](https://codecov.io/gh/mcp-auth/js) [](https://www.npmjs.com/package/mcp-auth) [](https://bundlephobia.com/package/mcp-auth) [](https://github.com/mcp-auth/js/blob/master/LICENSE)

The MCP spec requires OAuth 2.1 and other RFCs for auth. Instead of spending weeks on them, use MCP Auth to connect to a trusted provider with a few lines of code.

mcp-auth targets the latest MCP specification and the MCP TypeScript SDK v2, implementing the spec's authorization requirements — RFC 9728 Protected Resource Metadata and RFC 8707 audience-bound token validation — for any OAuth 2.0 / OpenID Connect provider.

Get started

Is my provider supported?

Check out the MCP-compatible providers to see which providers are supported. It also includes a tool for real-time checking of provider compatibility.

Installation

npm install mcp-auth

Or use your package manager of choice, such as pnpm or yarn.

Still on MCP SDK v1 (@modelcontextprotocol/sdk)? Stay on the 0.2 line — npm install [email protected] — and see the v0.2.0 code and samples.

See the documentation for the full guide.

Join the discussion

Join the MCP Auth org discussion to ask questions or share your feedback.

Read from source at commit e714e6cc15a3OBSERVED · 2026-10-08
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add sample-servers -- npx -y @mcp-auth/[email protected]
claude-desktop
{
  "mcpServers": {
    "sample-servers": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-auth/[email protected]"
      ]
    }
  }
}
03

Exposed tools (2)

1 read · 0 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
purge-notesdestructive
whoamiread
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (1 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (5)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
purge-notes
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
packages/sample-servers/.dev.vars.example
.dev.vars.example
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@changesets/cli, typescript
Why it matters. 2 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/mcp-auth/package.json
jose, @modelcontextprotocol/server, @silverhand/eslint-config, @silverhand/ts-config, @types/node, eslint, nock, prettier
Why it matters. 10 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/sample-servers/package.json
@modelcontextprotocol/express, @modelcontextprotocol/node, @modelcontextprotocol/server, hono, zod, @silverhand/eslint-config, @silverhand/ts-config, @types/express
Why it matters. 14 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha e714e6cc15a3full audit observations/trust-audit/mcp-server/mcp-auth__auth.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-08e714e6cc15a3SAFEB89first audit
06

Questions

What is the Auth MCP server?

🔐 Plug-and-play auth for Node.js MCP servers.

What tools does Auth expose?

2 in total: 1 read-only, 0 that write, and 1 that can delete or overwrite (purge-notes). Every one is listed on this page with its risk.

Is Auth safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Auth need?

No credential environment variables were found in its source, so it appears to need none.

How current is this page?

The grade is for one exact copy of the source (e714e6cc15a3), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement