cdp-bridge
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CDP_BRIDGE_TOKENS | No | Token白名单,多个token用英文逗号分隔。也可以通过--tokens参数指定。 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| browser_get_tabsA | Get all open browser tabs with their IDs, URLs, and titles. |
| browser_scanA | Get simplified HTML content of the active tab plus tab list. The HTML is optimized for LLM consumption (stripped of scripts, styles, invisible elements). Args: tabs_only: Only return tab list without page content (saves tokens). switch_tab_id: Switch to this tab before scanning. text_only: Return plain text instead of simplified HTML. |
| browser_execute_jsA | Execute JavaScript in the browser and capture results plus DOM changes. Args: script: JavaScript code to execute (or JSON command for CDP operations). switch_tab_id: Switch to this tab before executing. no_monitor: Skip DOM change monitoring (faster, less info). |
| browser_switch_tabA | Switch the active MCP browser tab without changing the visible Chrome tab. Args: tab_id: The tab ID to switch to (from browser_get_tabs). |
| browser_focus_tabA | Bring a Chrome tab to the foreground: activate the tab AND focus its window. Unlike browser_switch_tab (which only changes the MCP-side active session without touching the visible Chrome UI), this actually makes the tab visible to the user. Use this when the user can't find the tab the agent is working on (e.g. across many windows / Spaces / minimized windows). Goes through chrome.tabs.update + chrome.windows.update (extension-native APIs), avoiding the chrome.debugger CDP "Not allowed" restriction on Target.activateTarget. Args: tab_id: The tab ID to focus (from browser_get_tabs). |
| browser_batchA | Run multiple extension/CDP commands in one request. Args: commands: Command objects supported by the extension, such as {"cmd":"cdp","method":"DOM.getDocument","params":{"depth":1}}. tab_id: Optional tab ID inherited by commands that omit tabId. timeout: Seconds to wait for the batch result. |
| browser_waitA | Wait until JavaScript condition returns a truthy value. Args: condition_js: JavaScript expression or script. The return value is tested for truthiness. timeout: Maximum seconds to wait. interval: Seconds between checks. switch_tab_id: Optional tab ID to make active before waiting. |
| browser_navigateB | Navigate the active tab to a URL. Args: url: The URL to navigate to. |
| browser_screenshotA | Take a screenshot of the active tab (returns base64 PNG). Args: tab_id: Optional tab ID to screenshot. Uses active tab if empty. |
| browser_save_imageA | Save base64 screenshot data to PNG file. Args: screenshot_json_str_or_file: JSON output from browser_screenshot tool, or path to a JSON file containing the screenshot data. output_path: Output PNG file path or directory. Behavior: - Existing directory: save as {directory}/screenshot_{timestamp}.png - File path with existing parent dir: save directly to that file - File path with non-existing parent dir: return error - Empty/not provided: auto-generate based on input path or timestamp Returns: JSON with status, saved_path, and size_bytes. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Unagi-cq/cdp-bridge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server