A secure, open-source OAuth gateway for MCP authentication
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.
Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.
Everything the assistant can do here goes through one of these:
Self — Hosted Gateway**: Deploy within your own infrastructure for maximum controlSTDIO — Standard input/output MCP serversStreamableHTTP — 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 onlyread — user - Read access to user profile informationuser — email - Access to user email addressesEnterprise — grade Security**: Advanced SSO authentication for all MCP interactionsPORT — Server portBASE_URL — Base URL for the gatewayAUTH_SECRET — Secret for signing/encrypting tokens (generate with openssl rand -base64 33)AUTH_PROVIDER — OAuth provider nameYou 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.
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.
| Tool | What it does |
|---|---|
| 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://<your-domain>/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 |
| TOKEN_EXPIRATION_TIME | Token expiration time in milliseconds |
| DB_PATH | SQLite database file path |
{
"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.
| Variable | Description | Required |
|---|---|---|
| API_KEY | Credential the server authenticates with. | Yes |
| BASE_URL | Endpoint or connection string the server talks to. | Yes |
| AUTH_SECRET | Credential the server authenticates with. | Yes |
| AUTH_GOOGLE_ID | Configuration value read at startup. | Optional |
| AUTH_GOOGLE_SECRET | Credential the server authenticates with. | Yes |
| AUTH_OKTA_ID | Configuration value read at startup. | Optional |
| AUTH_OKTA_SECRET | Credential the server authenticates with. | Yes |
| AUTH_AZURE_AD_ID | Configuration value read at startup. | Optional |
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Stop letting your assistant hallucinate n8n node parameters — this server hands it the real schemas, templates and validation.
AWS Labs' official server suite — current AWS docs, CDK guidance, cost analysis and service tools.
Cloud browsers for AI agents — automation sessions that run in Browserbase's fleet, not on your machine.
Workers, KV, R2 and D1 by conversation — Cloudflare's official remote servers for building and observability.
Dashboards, Prometheus and Loki queries, incidents and alerts — observability by conversation.