Back to Home
nskw-d icon

MCPServer-with-Auth

Verified Safe

by nskw-d

Overview

Auth0-protected MCP server and client demonstrating authenticated tool access for AI agent integration.

Installation

Run Command
uv run mcp_server.py

Environment Variables

  • AUTH0_DOMAIN
  • AUTH0_CLIENT_ID
  • AUTH0_CLIENT_SECRET
  • AUTH0_AUDIENCE
  • JWT_ALGORITHM
  • MCP_HOST
  • MCP_PORT
  • REQUIRED_PERMISSION
  • OAUTH_CALLBACK_URI
  • OAUTH_CALLBACK_PORT
  • GOOGLE_API_KEY

Security Notes

The server correctly implements JWT verification using Auth0's JWKS endpoint, validating tokens for algorithms, audience, and issuer. Secrets are appropriately loaded from environment variables. The client's OAuth authorization code flow involves a local HTTP server for callbacks, a standard practice for CLI applications. Error handling for JWT and OAuth processes is present. While the client relies on Selenium WebDriver, which requires a correct setup, and a GOOGLE_API_KEY is used, these are managed through environment variables and standard library usage.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens100
Stars0
Forks0
Last Update2025-12-15

Tags

Auth0MCPOAuthPythonAI Agent