MCPInstall
securemcp-okta-gateway logo

securemcp-okta-gateway

by securemcp 4 stars securemcp/securemcp-okta-gateway

Secure MCP Okta Gateway is a gateway server that provides OAuth 2.0 Authorization Server and Resource Server functionalities, acting as a bridge between Model Context Protocol (MCP) clients and Okta authentication

READMEmain

Secure MCP Okta Gateway

Overview

Secure MCP Okta Gateway is a gateway server that provides OAuth 2.0 Authorization Server and Resource Server functionalities, acting as a bridge between Model Context Protocol (MCP) clients and Okta authentication. It supports dynamic client registration, authorization, token issuance, and proxying requests to backend services, all while enforcing secure authentication and authorization flows.

Features

  • OAuth 2.0 Authorization Server endpoints (dynamic client registration, authorization, token, etc.)
  • Okta integration for user authentication
  • Secure token issuance and validation
  • Reverse proxy for protected backend services
  • Health check endpoint
  • Configurable via YAML and environment variables
  • Redis-based session and token storage
  • Structured logging

Requirements

  • Go 1.24 or later
  • Redis server

Installation

git clone https://github.com/securemcp/securemcp-okta-gateway.git
cd securemcp-okta-gateway
go build -o securemcp-okta-gateway

Configuration

Edit config.yaml to define proxy routes:

proxies:
  - pattern: "/mcp/dice/"
    target_url: "http://localhost:3000"
  - pattern: "/mcp/uuid/"
    target_url: "http://localhost:4000"

Set environment variables as needed (see .env.sample for examples):

  • KVS_ADDR: Redis address (e.g., localhost:6379)
  • KVS_PASSWORD: Redis password
  • PORT: Port to run the server (default: 8080)
  • OKTA_URL, OKTA_CLIENT_ID, OKTA_CLIENT_SECRET, OKTA_REDIRECT_URI: Okta OAuth settings

Usage

Start the server:

./securemcp-okta-gateway

Endpoints

  • GET /healthz — Health check
  • POST /auth/register — Dynamic client registration
  • GET /auth/authorize — OAuth authorization endpoint
  • GET /auth/callback — OAuth callback endpoint
  • POST /auth/token — Token issuance endpoint
  • GET /.well-known/oauth-authorization-server — Authorization server metadata
  • GET /.well-known/oauth-protected-resource — Resource server metadata
  • Proxy endpoints as defined in config.yaml (e.g., /mcp/dice/, /mcp/uuid/)

MCP Clients

Cursor MCP Clients

{
  "mcpServers": {
    "dice": {
      "command": "npx",
      "args": ["-y", "mcp-remote@latest", "http://localhost:8080/mcp/dice/mcp"]
    },
    "uuid": {
      "command": "npx",
      "args": ["-y", "mcp-remote@latest", "http://localhost:8080/mcp/uuid/mcp"]
    },
  }
}

License

MIT License

References

More Security & Testing MCP servers

Similar servers from the same category.

Enables deepfake detection in images through Proofly API integration, providing detailed analysis results including real/fake probability scores and individual model results for each detected face.

Security & Testing

CASB provides comprehensive visibility and control over your SaaS applications, so you can easily eliminate the risk of compromise, prevent data loss, and avoid compliance violations.

Security & Testing

Audit logs summarize the history of changes made within your Cloudflare account. Audit logs include account level actions like zone configuration changes.

Security & Testing

YaraFlux

threatflux

Provides YARA-based malware scanning capabilities with support for local and MinIO storage backends, enabling security professionals to manage rules, scan files/URLs, and analyze results for threat detection.

filesystemstorage