JavaScript MCP Auth Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@JavaScript MCP Auth ServerCheck the server status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: identity-aware-mcp-server
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kabirrajsingh/mcp-server-auth-js'
If you have feedback or need assistance with the MCP directory API, please join our Discord server