Back to Home
stephaneberle9 icon

authful-mcp-proxy

Verified Safe

by stephaneberle9

Overview

A Model Context Protocol (MCP) proxy server that performs OIDC authentication to obtain access tokens for remote MCP servers protected by token validation, and bridges HTTP transport to local stdio for MCP clients.

Installation

Run Command
uvx authful-mcp-proxy --oidc-issuer-url https://auth.example.com --oidc-client-id my-client https://mcp.example.com/mcp

Environment Variables

  • MCP_BACKEND_URL
  • OIDC_ISSUER_URL
  • OIDC_CLIENT_ID
  • OIDC_CLIENT_SECRET
  • OIDC_SCOPES
  • OIDC_REDIRECT_URL
  • MCP_PROXY_DEBUG

Security Notes

The server implements OAuth 2.0 Authorization Code Flow with PKCE, which is a secure method for public clients. It uses `secrets.compare_digest` for state validation to prevent CSRF, and securely stores tokens using a local `DiskStore`. Configuration (client ID, secret) is expected via environment variables or CLI arguments, preventing hardcoded secrets. The proxy opens a local HTTP server for OIDC redirects, which is a standard and expected behavior for desktop applications. While local token storage always carries an inherent risk if the user's machine is compromised, the implementation adheres to OIDC best practices to minimize common vulnerabilities.

Similar Servers

Stats

Interest Score8
Security Score9
Cost ClassLow
Avg Tokens1
Stars1
Forks2
Last Update2025-12-16

Tags

OIDCOAuthProxyMCPAuthentication