WebMCP Proxy

v1.0.0Browser Automationstable

Integrate your existing MCP server on your website for browsing agent

webmcp-proxymcpai-integration
Share:
19
Stars
0
Downloads
0
Weekly
0/5

What is WebMCP Proxy?

WebMCP Proxy is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to integrate your existing mcp server on your website for browsing agent

Integrate your existing MCP server on your website for browsing agent

This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Integrate your existing MCP server on your website for brows

Use Cases

Integrate existing MCP servers into web browsing agents. Enable browser automation with MCP tool capabilities.
alpic-ai

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx webmcp-proxy

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use WebMCP Proxy

WebMCP Proxy is a client-side JavaScript library that bridges existing MCP servers running on remote HTTP/SSE endpoints to in-browser AI agents via the WebMCP API (document.modelContext). It dynamically discovers all tools exposed by a remote MCP server and registers them in the browser context, enabling web-based AI agents to call those tools without any server-side code changes. This is ideal for embedding AI assistant capabilities directly on websites that already operate an MCP server.

Prerequisites

  • An existing MCP server accessible over HTTP or SSE (Streamable HTTP transport)
  • The remote MCP server must allow CORS requests from your browser origin
  • A browser that supports the WebMCP API (document.modelContext)
  • Node.js and npm for installing the library
  • A web application (vanilla JS, React, or Vue) to integrate the proxy
1

Install the webmcp-proxy library

Add the library to your web project using npm.

npm install webmcp-proxy
2

Configure CORS on your MCP server

Ensure your remote MCP server responds with CORS headers that allow requests from your website's origin. This is required for the browser-side proxy to connect. Example header: Access-Control-Allow-Origin: https://your-website.com

3

Create the proxy in your application

Import and initialize the proxy with the URL of your remote MCP server. The proxy will connect, discover all available tools, and register them via the WebMCP API.

import { createWebMcpProxy } from 'webmcp-proxy';

const proxy = await createWebMcpProxy({
  url: 'https://mcp.example.com/mcp',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN' // optional
  }
});

console.log('Registered tools:', proxy.tools);
4

Use with React

If using React, webmcp-proxy provides a component wrapper that manages the proxy lifecycle.

import { WebMcpProxy } from 'webmcp-proxy/react';

export function App() {
  return (
    <WebMcpProxy url="https://mcp.example.com/mcp">
      {/* your AI agent component */}
    </WebMcpProxy>
  );
}
5

Test tool discovery

After initialization, log the proxy.tools array to verify that all tools from your remote MCP server have been discovered and registered correctly.

const proxy = await createWebMcpProxy({ url: 'https://mcp.example.com/mcp' });
proxy.tools.forEach(tool => console.log(tool.name, tool.description));

WebMCP Proxy Examples

Client configuration

WebMCP Proxy runs in the browser, not as a standalone MCP server entry in claude_desktop_config.json. Configure it in your web application code targeting your existing MCP server endpoint.

{
  "mcpServers": {
    "webmcp-proxy": {
      "command": "npx",
      "args": ["webmcp-proxy"],
      "env": {
        "MCP_SERVER_URL": "https://mcp.example.com/mcp"
      }
    }
  }
}

Prompts to try

Once your browsing agent has access to the registered tools from your remote MCP server, try these interaction patterns.

- "List all tools available from my MCP server."
- "Use the available tools to fetch the latest data from my backend."
- "Connect to my MCP server and run the search tool with query 'product catalog'."
- "What capabilities does my website's MCP server expose?"

Troubleshooting WebMCP Proxy

Tools are not discovered — proxy.tools is empty

Verify that your remote MCP server supports Streamable HTTP or SSE transport, and that it returns a valid tools/list response. Check browser network tab for errors on the MCP endpoint request.

CORS errors when connecting to the remote MCP server

Add Access-Control-Allow-Origin headers to your MCP server responses. For development, allow all origins temporarily; for production, specify your exact website domain.

document.modelContext is undefined

The WebMCP API is not available in all browsers. Ensure you are using a browser build that supports the WebMCP specification, or check the browser compatibility documentation for webmcp-proxy.

Frequently Asked Questions about WebMCP Proxy

What is WebMCP Proxy?

WebMCP Proxy is a Model Context Protocol (MCP) server that integrate your existing mcp server on your website for browsing agent It connects AI assistants to external tools and data sources through a standardized interface.

How do I install WebMCP Proxy?

Follow the installation instructions on the WebMCP Proxy GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with WebMCP Proxy?

WebMCP Proxy works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is WebMCP Proxy free to use?

Yes, WebMCP Proxy is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Browser Automation MCP Servers

Explore all browser automation servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "webmcp-proxy": { "command": "npx", "args": ["-y", "webmcp-proxy"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use WebMCP Proxy?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides