WebMCP connects web-based AI products such as ChatGPT, Gemini, and DeepSeek to local development tools exposed through MCP in VS Code.
Please read this before using WebMCP:
- Use at your own risk. WebMCP bridges remote AI systems with local tools and files. You are responsible for what those tools are allowed to do.
- Check the terms of service of the AI products you use. Automated interaction may not be allowed on some platforms.
- Do not send secrets or sensitive code unless you are comfortable sharing that data with the AI provider you are using.
- Starts a local MCP gateway in VS Code.
- Opens a supported web AI product through a bridge page.
- Lets the web model call local MCP tools after connection is established.
- Supports multiple browsers, multiple VS Code windows, and browser routing rules.
- Zero-config connection: VS Code manages the local port and session token automatically.
- Browser routing: Different domains can open in different browsers.
- Dynamic authentication: Each session uses a temporary token instead of a fixed browser extension ID allowlist.
- Origin isolation: The gateway only accepts requests from the expected origin.
- Workspace skills: Local skills can be discovered from the current workspace and exposed to the model progressively.
- Human-in-the-loop safety: Sensitive operations can require explicit approval before execution.
WebMCP is designed to keep the user in control:
- Sensitive operations such as file writes or command execution can be blocked until you approve them.
- The gateway runs locally. There is no hosted relay service in the middle.
- Commands are executed relative to the current workspace and can be restricted by the gateway.
That said, WebMCP is still a bridge between a remote model and local tools. Review your tool permissions carefully.
Install WebMCP Gateway from the VS Code Marketplace.
- Download the latest
mcp-bridge-browser.zipfrom Releases. - Extract the archive.
- Open the browser extensions page:
- Chrome:
chrome://extensions - Edge:
edge://extensions
- Chrome:
- Enable Developer Mode.
- Click
Load unpackedand select the extracted folder.
- Open VS Code.
- Click
WebMCP: OFFin the bottom-right status bar. - In the menu that opens, click
Start WebMCP. - Wait for the status bar item to change to
WebMCP: <port>.
When the status bar shows a port number, the local gateway is running.
- Click
WebMCP: <port>in the status bar. - Choose the target site you want to open, such as
Open Gemini,Open ChatGPT, or another supported entry. - WebMCP opens the bridge page in the configured browser.
- The bridge page completes the handshake with the local gateway automatically.
- After the handshake succeeds, the browser redirects to the target AI site.
When the browser extension shows ON, the connection is ready to use.
Before first use, add the WebMCP initialization prompt to the AI product you use.
- Click the WebMCP browser extension icon in the browser toolbar.
- Click
Copy Initialization Prompt. - Open the settings page of the AI product you are using.
- Find the area for memory, preferences, profile instructions, or custom instructions.
- Paste the copied prompt there and save it.
You usually only need to do this once per product/account.
- Open a new chat or an existing chat on the target AI site.
- Enter
/webmcpor@webmcp. - Add your actual task in the same message.
- Send the message.
For example:
Read src/utils.ts and write a unit test for it.List the files in the current workspace.Create project docs under the docs directory.
WebMCP can expose local skills from the current VS Code workspace.
Default scan directories:
.agents/skills.codex/skillsskills
A skill is any directory containing SKILL.md.
The recommended loading flow is:
- Call
list_skillsorsearch_skills. - Call
get_skillfor the selected skill. - Call
get_skill_resourceonly when the skill references extra files such asreferences/,templates/, orscripts/.
Example:
.agents/
skills/
my-skill/
SKILL.md
references/
examples.md
You can customize scan paths with the VS Code setting mcpGateway.skillDirectories.
- Node.js 18+
- VS Code
git clone https://github.com/three-water666/WebMCP.git
cd WebMCPThe build scripts generate both the VS Code extension (.vsix) and the browser extension package (.zip).
macOS / Linux:
chmod +x build_release.sh
./build_release.shWindows PowerShell:
.\build_release.ps1Build artifacts are written to the release/ directory.
- VS Code: open Extensions, choose
..., thenInstall from VSIX... - Browser: open the extensions page, enable Developer Mode, click
Load unpacked, and select the extracted extension folder fromrelease/ormcp-bridge-browser
Issues and pull requests are welcome.