NexBrowser MCP Server
OfficialThe NexBrowser MCP Server connects MCP clients to NexBrowser Desktop for environment management, browser automation, and proxy IP purchasing.
Manage environments: list, open, close, and inspect NexBrowser environments/windows; create/delete window groups and move windows in/out of groups; connect and disconnect automation sessions.
Manage tabs: list, open, select, and close tabs.
Navigate: go to URLs, reload, go back, and go forward.
Interact with pages: click/double-click, hover, type, fill forms, select options, check/uncheck, press/hold/release keys, drag, scroll, wait for elements or text, resize viewport, and handle dialogs (list, accept, dismiss).
Upload and drop files: upload local files via file inputs, and drop files or MIME-typed data onto page targets.
Inspect pages: accessibility/ARIA snapshots, screenshots, page title and URL, visible text, console messages, and network requests.
Execute JavaScript: evaluate expressions and run code blocks when the dedicated permissions are enabled.
Manage proxy IP products: list purchasable IP products, quote orders, confirm orders (requires user approval in NexBrowser Desktop), and check order status.
Isolate sessions: each MCP process maintains its own independent browser sessions and active-tab state.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NexBrowser MCP ServerScreenshot the active tab in my default environment."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NexBrowser MCP Server
English | 简体中文
Connect MCP clients such as Codex, Claude Code, Claude Desktop, and Cursor to NexBrowser Desktop for environment management and browser automation.
NexBrowser Desktop must be running with NexBrowser OpenAPI enabled. This package is an MCP adapter, not a standalone browser.
Quick start
1. Enable NexBrowser OpenAPI
Start NexBrowser Desktop.
Open API MCP and enable NexBrowser OpenAPI.
Copy the displayed API key. The default address is
http://127.0.0.1:45536.
Requires Node.js 18 or later; Node.js 20 or later is recommended.
2. Add the MCP server
Replace <your-openapi-token> with the API key from NexBrowser Desktop.
Codex:
codex mcp add nexbrowser \
--env NEX_API_KEY=<your-openapi-token> \
--env NEX_API_HOST=http://127.0.0.1:45536 \
-- npx -y @nexbrowser/mcp@latestClaude Code:
claude mcp add nexbrowser \
--env NEX_API_KEY=<your-openapi-token> \
--env NEX_API_HOST=http://127.0.0.1:45536 \
-- npx -y @nexbrowser/mcp@latestOther MCP clients:
{
"mcpServers": {
"nexbrowser": {
"command": "npx",
"args": ["-y", "@nexbrowser/mcp@latest"],
"env": {
"NEX_API_HOST": "http://127.0.0.1:45536",
"NEX_API_KEY": "<your-openapi-token>"
}
}
}
}Restart or reload the MCP client after changing its configuration.
3. Install the automation Skill (optional)
The Skill teaches compatible agents how to choose tools, use snapshot references, and recover from common errors.
npx skills add https://github.com/nex-browser/nexbrowser-mcp --skill nexbrowser-automationRelated MCP server: Chrome Browser Control
Capabilities
Manage environments: list, open, close, and inspect NexBrowser environments.
Organize windows: list groups with their window counts, create, rename, and delete groups, and move windows in or out of a group.
Manage workspace proxies and platform accounts: list, create, update, delete, and detect proxies; list and edit platform-account catalog entries; bind accounts to closed windows. Secrets are never returned.
Automate pages: connect, navigate, click, type, upload files, and manage tabs.
Inspect pages: snapshots, screenshots, visible text, console messages, and network requests.
Isolate sessions: each MCP process owns its browser sessions and active-tab state.
Common tools:
nex_browser_list nex_browser_open
nex_browser_close nex_browser_connect
nex_browser_tab_list nex_browser_snapshot
nex_browser_click nex_browser_fill_form
nex_browser_take_screenshot nex_browser_network_requestsThe complete tool catalog is available through MCP tools/list. Tool access remains controlled by
NexBrowser Desktop.
Configuration
Variable | Required | Default | Description |
| Yes | — | API key issued by NexBrowser OpenAPI. |
| No |
| NexBrowser OpenAPI base URL. |
| No |
| Request timeout in milliseconds. |
| No | disabled | Set to |
Equivalent CLI flags are --api-key, --api-host, --timeout, and --expose-cdp. Environment
variables are safer for secrets because command-line values may be stored in shell history or
visible to other local processes.
Troubleshooting
Connection failed: confirm NexBrowser Desktop is running and OpenAPI is enabled.
Unauthorized: copy the current API key again and update
NEX_API_KEY.Not found: update NexBrowser Desktop to a release that provides API MCP and the unified
/automation/*endpoints.No tools after setup: restart or reload the MCP client.
Custom port: set
NEX_API_HOSTto the address displayed by NexBrowser Desktop.
See GitHub Releases for package versions.
Security
Keep OpenAPI bound to the loopback interface unless remote access is explicitly required.
Never commit or publish API keys, MCP configuration files containing keys, screenshots, or logs.
Resetting the API key immediately invalidates the previous key.
Snapshots, screenshots, page content, console output, and network logs may contain sensitive data and may be sent to the configured model provider.
Enable page evaluation, code execution, local-file access, or raw CDP URLs only when needed.
NexBrowser Desktop remains responsible for authorization and file-access policy.
Package usage
Run the MCP server directly:
npx -y @nexbrowser/mcp@latestOr install the CLI globally:
npm install --global @nexbrowser/mcp
nexbrowser-mcpEmbed it in another MCP host:
import { NexBrowserMcpServer } from '@nexbrowser/mcp';
const server = new NexBrowserMcpServer({
apiHost: 'http://127.0.0.1:45536',
apiKey: process.env.NEX_API_KEY ?? '',
timeout: 30_000
});
await server.connect(transport);
await server.close();Development
The repository uses Node.js 24.19.0 and pnpm 11 for development. The published package supports Node.js 18 or later.
pnpm install
pnpm typecheck
pnpm test
pnpm build
pnpm test:package
pnpm inspectThe real Desktop integration test is disabled by default. Run it only with a dedicated test window and API key:
NEX_E2E_ENABLED=1 NEX_E2E_WINDOW_ID=your-test-window NEX_API_KEY=your-test-key pnpm test:integrationMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceConnects MCP clients to real browser sessions via a Chromium plugin, enabling LLMs to read, scan, automate, and navigate web pages using the user's existing browser state.10291MIT
- AlicenseNot gradedqualityAmaintenanceEnables controlling a local Chrome browser via MCP tools, using a Chrome extension and WebSocket broker for browser automation.441MIT
- AlicenseNot gradedqualityCmaintenanceEnables browser automation over MCP using a real Chrome browser with existing profile, supporting real tabs, downloads, cookies, and RPA workflows.104MIT
- AlicenseAqualityDmaintenanceConnects to a running Chrome instance via CDP to expose browser control as MCP tools, preserving login state, cookies, and extensions for automation.1916MIT
Related MCP Connectors
Connect AI agents to Replynodes over the Model Context Protocol.
Access Kernel's cloud-based browsers and app actions via MCP (remote HTTP + OAuth).
Hosted AgentLux MCP server for marketplace, identity, creator, services, and social flows.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/nex-browser/nexbrowser-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server