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. Exposed over MCP by the secure mcp gateway mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

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)

Adding it to your client

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Its toolset

Everything the assistant can do here goes through one of these:

  • Self — Hosted Gateway**: Deploy within your own infrastructure for maximum control
  • STDIO — Standard input/output MCP servers
  • StreamableHTTP — HTTP-based streaming connections via http://localhost:3000/mcp (or https:///mcp for hosted deployments)
  • repo — Full access to repositories (public and private)
  • public_repo — Access to public repositories only
  • read — user - Read access to user profile information
  • user — email - Access to user email addresses
  • Enterprise — grade Security**: Advanced SSO authentication for all MCP interactions
  • PORT — Server port
  • BASE_URL — Base URL for the gateway
  • AUTH_SECRET — Secret for signing/encrypting tokens (generate with openssl rand -base64 33)
  • AUTH_PROVIDER — OAuth provider name

Configuration

You will need 8 environment variables: API_KEY, BASE_URL, AUTH_SECRET, AUTH_GOOGLE_ID, AUTH_GOOGLE_SECRET, AUTH_OKTA_ID, AUTH_OKTA_SECRET, AUTH_AZURE_AD_ID. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Caveats

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Secure MCP Gateway.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the secure mcp gateway mcp server does with a few real requests.

When to reach for it

This sits in the cloud and infrastructure group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Secure MCP Gateway's toolset — Self, STDIO, StreamableHTTP and 11 more — is a fair guide to whether it matches your workflow. It is maintained by mcp-s-ai; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
SelfHosted Gateway**: Deploy within your own infrastructure for maximum control
STDIOStandard input/output MCP servers
StreamableHTTPHTTP-based streaming connections via http://localhost:3000/mcp (or https://<your-domain>/mcp for hosted deployments)
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
Enterprisegrade Security**: Advanced SSO authentication for all MCP interactions
PORTServer port
BASE_URLBase URL for the gateway
AUTH_SECRETSecret for signing/encrypting tokens (generate with openssl rand -base64 33)
AUTH_PROVIDEROAuth provider name
TOKEN_EXPIRATION_TIMEToken expiration time in milliseconds
DB_PATHSQLite database file path

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

It connects Secure MCP Gateway to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Self, STDIO, StreamableHTTP, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Secure MCP Gateway directly.