Secure MCP Gateway MCP Server

A secure, open-source OAuth gateway for MCP authentication

Remote serverstreamable-httpTypeScript

What is the Secure MCP Gateway MCP Server?

A secure, open-source OAuth gateway for MCP authentication

What it actually does

  • Self-Hosted Gateway — Deploy within your own infrastructure for maximum control
  • OAuth Authentication — Secure authentication with any OAuth provider via Auth.js
  • TypeScript Support — Fully typed for robust development
  • STDIO — Standard input/output MCP servers
  • StreamableHTTP — HTTP-based streaming connections via http://localhost:3000/mcp (or https:///mcp for hosted deployments)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
repoFull access to repositories (public and private)
public_repoAccess to public repositories only
readuser - Read access to user profile information
useremail - Access to user email addresses

How to install the Secure MCP Gateway MCP Server

{
  "mcpServers": {
    "your-server": {
      "command": "npx",
      "args": ["-y", "@your-mcp-server"],
      "env": {
        "API_KEY": "your-api-key"
      }
    },
    "octocode": {
      "command": "npx",
      "args": ["octocode-mcp"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
API_KEYCredential the server authenticates with.Yes
BASE_URLEndpoint or connection string the server talks to.Yes
AUTH_SECRETCredential the server authenticates with.Yes
AUTH_GOOGLE_IDConfiguration value read at startup.Optional
AUTH_GOOGLE_SECRETCredential the server authenticates with.Yes
AUTH_OKTA_IDConfiguration value read at startup.Optional
AUTH_OKTA_SECRETCredential the server authenticates with.Yes
AUTH_AZURE_AD_IDConfiguration value read at startup.Optional

Example prompts to try

  • “Use Secure MCP Gateway to Self.”
  • “Use Secure MCP Gateway to STDIO.”
  • “Use Secure MCP Gateway to StreamableHTTP.”

Frequently asked questions

A secure, open-source OAuth gateway for MCP authentication Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.