MCP Gateway is an MCP (Model Context Protocol) server gateway.
It unifies multiple MCP servers behind one entry point, and provides proxy forwarding, authentication, admin APIs, plus the new SKILLS capability.
Common use case: convert local stdio MCP services into remotely accessible SSE / Streamable HTTP MCP services, so desktop or browser AI clients can use tools and skills in web chat interfaces.
- Manage multiple MCP services in one place (Visual + JSON editing modes)
- Unified
SSEforwarding: defaultGET|POST /api/v2/sse/<serverName> - Unified
HTTPforwarding: defaultPOST /api/v2/mcp/<serverName> - Built-in authentication (
Admin Token/MCP Token) - Built-in Skill MCP management in the
SKILLStab - Skill root directory validation (checks for
SKILL.md) - Path guard (whitelist directories + out-of-scope policy)
- Execution limits (timeout, max output)
- Policy rules (
allow / confirm / deny) - Pending command approval (
Approve / Reject)
Listen Address: gateway listen address and port, e.g.127.0.0.1:8765SSE Path: default"/api/v2/sse"HTTP Stream Path: default"/api/v2/mcp"
Final endpoint rule:
SSE:http://<listenAddress><ssePath>/<serverName>HTTP:http://<listenAddress><httpPath>/<serverName>
Example (listen on 127.0.0.1:8765):
http://127.0.0.1:8765/api/v2/sse/filesystemhttp://127.0.0.1:8765/api/v2/mcp/filesystem
ADMIN TOKEN: protects/api/v2/admin/*MCP TOKEN: protects/api/v2/mcp/*and/api/v2/sse/*
Notes:
- In the current UI, leaving token empty disables that auth scope
- For public exposure, enable auth and use long random tokens (as gateway passwords)
- Client requests should include header:
Authorization: Bearer <your_token>
Each row is one MCP service:
- Toggle: enable/disable the service
Name: service name (used in URL suffix)Command: startup command (e.g.npx)Args: command arguments+: add environment variablesx: remove service
Example (Playwright MCP):
- Name:
playwright - Command:
npx - Args:
-y @playwright/mcp@latest
The SKILLS tab is used to enable and manage the built-in Skill MCP service:
- Turn on
Enable Built-in SKILL MCP. - Set
Skill Server Name(default__skills__). - Add
Skill Roots, and ensureSKILL.mdexists directly in those directories. - Optionally enable
Path Guard, add absolute whitelist directories, and choose violation action:allow / confirm / deny. - Configure execution limits:
Execution Timeout (ms)(minimum1000) andMax Output (bytes)(minimum1024). - Maintain JSON policy rules in
Policy Rules(id/action/commandTree/contains/reason). - After running, approve or reject high-risk commands in
Pending Confirmations.
When gateway is running and SKILLS is enabled, the UI shows:
Skill SSE:http://<listenAddress><ssePath>/<skillsServerName>Skill HTTP:http://<listenAddress><httpPath>/<skillsServerName>
- Configure listen address and paths in the
MCPtab. - Set
ADMIN TOKENandMCP TOKENas needed (recommended for production). - Add MCP services and save config.
- Open the
SKILLStab and configure Skill capabilities (optional). - Click
Startat top-right, and wait for running status. - Copy generated
SSE / HTTPendpoints to your MCP client.
Visual: form-based editing for daily useJSON: direct edit ofmcpServersobject
You can switch between them. If JSON is invalid, UI will show an error and block startup.
The current config file path is shown at the bottom of the UI. Default paths are usually:
- Windows:
%APPDATA%\\mcp-gateway\\config.v2.json - macOS:
~/Library/Application Support/mcp-gateway/config.v2.json - Linux:
~/.config/mcp-gateway/config.v2.json
- Startup failed
Check each service has at leastName+Command. - Port already in use
Change listen port (e.g.127.0.0.1:9876) and retry. - Client cannot connect
Check service enabled status and verify URL path/service name. - SKILLS root cannot be enabled
EnsureSKILL.mdexists directly under the selected directory (current check is non-recursive).
- This software provides
SKILLScapabilities that may execute system commands or scripts with your authorization. - Although command rules, path guards, and confirmation workflows are built in, they cannot guarantee complete coverage of all scenarios or absolute safety.
- Any consequences caused by using
SKILLSor command execution (including but not limited to data loss, system issues, file corruption, service interruption, or hardware/software damage) are the sole responsibility of the user. - The author and maintainers of this software are not liable for any direct, indirect, incidental, or consequential damages arising from such use.
- You should validate high-risk commands in a controlled environment and maintain proper backups and permission isolation.


