中文文档 | English
Turn any webpage into an MCP server. Let AI assistants directly control the browser.
Broxy transforms any webpage into an MCP (Model Context Protocol) server, enabling AI assistants like Claude and Cursor to directly interact with and control web pages. This opens up powerful automation possibilities without requiring traditional APIs.
- API Endpoint - Execute JavaScript on any webpage and expose APIs for external calls
- AI Integration - Full MCP support for Claude/Cursor to directly control the browser
- Web Automation - Simulate input, clicks, and requests on any webpage
- AI Automation - Let Claude/Cursor automatically fill forms, submit reports, book meeting rooms
- Data Monitoring - Real-time monitoring of prices, stock quotes, competitor data
- API Generator - Convert websites without public APIs into callable interfaces
Add a single line to your website:
<script src="https://broxy.dev/assets/broxy-v1.user.js"></script>Visitors can immediately use Broxy services without installing any extensions.
- Install Tampermonkey browser extension
- Click here to add the Broxy script
- Open any website and click the Broxy floating button (bottom-right corner) to configure
User ⇄ AI Client (Claude/Cursor) ⇄ Broxy ⇄ Webpage
- User interacts with AI assistant
- AI sends commands to Broxy via MCP
- Broxy executes JavaScript on the target webpage
- Results are returned to the AI assistant
When Broxy is loaded, a global BroxyDev object is available:
// Theme
BroxyDev.getTheme() // 'light' | 'dark'
BroxyDev.setTheme('dark')
BroxyDev.toggleTheme()
// Language
BroxyDev.getLang() // 'zh' | 'en'
BroxyDev.setLang('en')
BroxyDev.toggleLang()
// Settings
BroxyDev.getSettings() // { theme, lang }
// Browser Info
BroxyDev.getBrowserInfo() // { userAgent, platform, url, ... }Broxy uses a configuration system for defining routes and tools:
window.__BROXY_INIT_DATA__ = {
version: "1.0",
data: {
routes: [...], // REST API endpoints
tools: [...], // MCP tools
mcpConfig: {...}, // MCP server configuration
initScript: "" // Custom initialization script
}
}Define custom API endpoints:
{
name: "getTheme",
pattern: "/theme",
method: "get",
handler: "async (method, path, query, body, headers) => { ... }",
enabled: true
}Define tools for AI assistants:
{
name: "setTheme",
pattern: "/mcp/setTheme",
description: "Set the website theme",
handler: "async ({ theme }) => { ... }",
inputSchema: {
type: "object",
properties: {
theme: { type: "string", description: "dark | light" }
},
required: ["theme"]
},
enabled: true
}This is a static website with no build system. To preview locally:
# Python
python3 -m http.server 8000
# Node.js
npx serve .
# PHP
php -S localhost:8000Then open http://localhost:8000 in your browser.
www/
├── index.html # Main landing page
├── script.js # Core functionality
├── i18n.js # Internationalization
├── styles.css # Styling
└── assets/
├── broxy-v1.user.js # Tampermonkey userscript
├── data.js # Default configuration
└── logo.png # Logo image
- Modern browsers with ES6+ support
- Chrome, Firefox, Safari, Edge (latest versions)
MIT License
- Website: https://broxy.dev
- Tampermonkey: https://www.tampermonkey.net