Fügt Node.js MCP servern mit nur wenigen Zeilen Code OAuth 2.1 Autorisierung und Provider-Verbindungen hinzu.
Auch bekannt als mcp-auth/js, @antogyn/mcp-auth, mcp-auth
- Stars
- 50
- Tools
- —
- Downloads, 30 Tage
- 24.687
- Neueste Version
- —
- Letzter Commit
- 31. Aug. 2026
- Lizenz
- MIT
Was ist Auth MCP?
Fügt Node.js MCP servern mit nur wenigen Zeilen Code OAuth 2.1 Autorisierung und Provider-Verbindungen hinzu.
Zusammenfassung generiert aus dem README des Projekts
Über Auth MCP server
Die Integration von OAuth 2.1 Autorisierung in Node.js MCP server wird für Entwickler durch dieses SDK zu einem hocheffizienten Prozess. Es ermöglicht Entwicklern, ihre Server mit vertrauenswürdigen Identity Providern zu verbinden, ohne Wochen mit der manuellen Implementierung komplexer Sicherheitsprotokolle zu verbringen. Die Library ist speziell für die Arbeit mit dem MCP TypeScript SDK v2 konzipiert, behält aber die Kompatibilität für Nutzer des @modelcontextprotocol/sdk v1 bei, indem die 0.2er Version genutzt werden kann.
Durch die Implementierung von RFC 9728 Protected Resource Metadata und RFC 8707 audience-bound token validation stellt das Package sicher, dass Server die neuesten Anforderungen der Model Context Protocol Spezifikation erfüllen. Entwickler können das Package via npm, pnpm oder yarn installieren, um diese Sicherheitsfeatures in ihre lokalen oder Remote-Serverumgebungen zu integrieren. Es unterstützt jeden OAuth 2.0 oder OpenID Connect Provider, der die Kompatibilitätskriterien erfüllt.
Was du damit machen kannst
- 1Verbindung zu Identity Providern herstellenDu kannst deinen MCP server mit minimalem Code-Aufwand mit einem bestehenden OpenID Connect Provider verknüpfen.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du Auth MCP
Formate geprüft am 10. Nov. 2026Zu Cursor hinzufügenZu Goose hinzufügenAuth MCP in Claude Code installieren
$ claude mcp add js -- npx -y @antogyn/mcp-authAuth MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"js": {
"command": "npx",
"args": [
"-y",
"@antogyn/mcp-auth"
]
}
}
}Auth MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"js": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@antogyn/mcp-auth"
]
}
}
}Auth MCP in VS Code CLI installieren
$ code --add-mcp '{"name":"js","type":"stdio","command":"npx","args":["-y","@antogyn/mcp-auth"]}'Auth MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"js": {
"command": "npx",
"args": [
"-y",
"@antogyn/mcp-auth"
]
}
}
}Auth MCP in Codex installieren
$ codex mcp add js -- npx -y @antogyn/mcp-authAuth MCP in Codex config.toml installieren
~/.codex/config.toml
[mcp_servers.js] command = "npx" args = ["-y", "@antogyn/mcp-auth"]
Auth MCP in Gemini CLI installieren
$ gemini mcp add -s user js npx -- -y @antogyn/mcp-authAuth MCP in Gemini settings.json installieren
~/.gemini/settings.json
{
"mcpServers": {
"js": {
"command": "npx",
"args": [
"-y",
"@antogyn/mcp-auth"
]
}
}
}Automatisierte Checks
Geluften am 12. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarBestanden
- Open Source Lizenz (OSI)Bestanden
- Commit oder Release im letzten JahrBestanden
- Package-Name ähnelt keinem populären PackageBestanden
- Remote Endpoint nutzt HTTPSNicht geprüft
- Destruktive Tools sind markiertNicht geprüft
- Keine versteckten Anweisungen an das ModellBestanden
- Keine kritischen Advisories im Paket oder seinen AbhängigkeitenNicht geprüft
README
Auf GitHub ansehenMCP Auth Node.js SDK
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 mcp-auth@0.2 — 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.
Auth MCP Fragen
Wie füge ich Auth MCP zu Claude Code hinzu?
Führe claude mcp add js -- npx -y @antogyn/mcp-auth in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich Auth MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Wie füge ich OAuth-Authentifizierung zu einem Node.js MCP server hinzu?
Installiere das mcp-auth package via npm und konfiguriere es mit wenigen Zeilen Code, um eine Verbindung zu einem unterstützten OAuth 2.0 oder OpenID Connect Provider herzustellen.
Welche MCP Spezifikation unterstützt mcp-auth?
Es unterstützt die neueste MCP Spezifikation und das MCP TypeScript SDK v2.
Welche Provider werden von mcp-auth unterstützt?
Es unterstützt jeden OAuth 2.0 / OpenID Connect Provider; es gibt zudem eine MCP-kompatible Provider-Liste inklusive Compatibility Checker.
Kann ich mcp-auth mit dem MCP SDK v1 nutzen?
Ja, bleibe in der 0.2er Version und installiere mcp-auth@0.2, wenn du das @modelcontextprotocol/sdk v1 verwendest.