JavaScript MCP Auth Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
JavaScript MCP Auth Server
This package shows the remote MCP auth boundary in JavaScript:
Express HTTP server
MCP Streamable HTTP transport at
/mcpProtected Resource Metadata
Bearer token middleware
Keycloak token introspection
audience validation
mcp:toolsscope enforcementprotected
add_numbersandserver_statustools
Run
pnpm mcp-auth-server-js install
cp .env.example .env
pnpm mcp-auth-server-js demo:keycloak
pnpm mcp-auth-server-js startFor the demo, configure Keycloak with:
client scope:
mcp:toolsMCP server confidential client:
mcp-serverdemo client/user for obtaining an access token
token audience:
http://localhost:3000/mcp
Related MCP server: mcp-keycloak
Demo Scripts
pnpm mcp-auth-server-js demo:no-token
pnpm mcp-auth-server-js demo:metadata
pnpm mcp-auth-server-js demo:get-token
pnpm mcp-auth-server-js demo:call-tool
pnpm mcp-auth-server-js demo:bad-scopeThe important point is the failure order:
no token returns
401withWWW-Authenticatemetadata tells the client where auth lives
token introspection rejects inactive tokens
audience validation rejects tokens for another API
scope validation rejects tokens without
mcp:tools
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
Self-hosted federated MCP gateway: one OAuth 2.1 MCP server in front of N apps, user-level scopes.
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
Demo banking MCP server: accounts, transactions and payments. OAuth 2.1 with DPoP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA production-ready MCP server that authenticates agents via OAuth 2.1 Bearer tokens, validates JWTs with JWKS, enforces tool-level scopes and roles, and logs the full delegation chain.-
- FlicenseNot gradedqualityDmaintenanceEnables secure MCP tool calls (add and multiply numbers) by validating OAuth2 tokens via Keycloak token introspection.-
- AlicenseNot gradedqualityBmaintenanceEnables clients to access multiple backend MCP servers through a single endpoint, with OAuth 2.1 authorization, namespaced tools, and secure credential management.2MIT
- FlicenseBqualityBmaintenanceEnables MCP clients to authenticate through OIDC and call protected tools while rejecting unauthenticated requests.26-