MCP server.
Expose all of Sentinel's browser automation capabilities directly to your AI assistant — no code required. Works with Cursor, Windsurf, and Claude Desktop.
What is MCP?
The Model Context Protocol (MCP) is an open standard that lets AI assistants call external tools. Sentinel implements an MCP server — once configured, your AI assistant can navigate pages, fill forms, extract data, and run autonomous agents, all from a natural language prompt.
Ask your AI to scrape a page or automate a flow — no scripts to write.
Add 5 lines to your MCP config. The browser session persists across tool calls.
All 8 Sentinel tools are exposed — goto, act, extract, observe, run, screenshot, and more.
Install the browser
Use Node.js 20 or newer. Install Chromium once on the machine that runs the MCP server, then add one of the stdio configurations below. The package is pinned to release 4.2.1.
npx --yes --package playwright playwright install chromiumOn Windows, use command: npx.cmd if your MCP client cannot resolve npx.
Cursor
Add the following to your Cursor MCP configuration, then restart Cursor. The Sentinel tools will appear in the tool picker automatically.
// .cursor/mcp.json (or Settings → MCP → Add server)
{
"mcpServers": {
"sentinel": {
"command": "npx",
"args": ["--yes", "--package", "@isoldex/sentinel@4.2.1", "sentinel-mcp"],
"env": {
"GEMINI_API_KEY": "your-key-here",
"SENTINEL_HEADLESS": "true"
}
}
}
}Alternatively: Settings → Features → MCP Servers → Add server and enter the command and args manually.
Windsurf
Edit the Windsurf MCP config file and restart the app.
// ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"sentinel": {
"command": "npx",
"args": ["--yes", "--package", "@isoldex/sentinel@4.2.1", "sentinel-mcp"],
"env": {
"GEMINI_API_KEY": "your-key-here",
"SENTINEL_HEADLESS": "true"
}
}
}
}Claude Desktop
Edit the Claude Desktop config file, then restart the app. Set SENTINEL_HEADLESS to false to watch the browser while Claude controls it.
// macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
// Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"sentinel": {
"command": "npx",
"args": ["--yes", "--package", "@isoldex/sentinel@4.2.1", "sentinel-mcp"],
"env": {
"GEMINI_API_KEY": "your-key-here",
"SENTINEL_HEADLESS": "false"
}
}
}
}macOS
~/Library/Application Support/Claude/
Windows
%APPDATA%\Claude\
HTTP server mode
Run Sentinel as a standalone Streamable HTTP MCP server instead of a stdio subprocess. Useful for a single trusted browser session shared by editors, Docker or Kubernetes deployments, and local iteration where the client supports reconnecting after a server restart. Tool calls are serialized against one browser; use separate server processes for independent users or sessions.
Rebuild Sentinel; clients with reconnect support can resume the HTTP connection.
One Sentinel process, one browser — used by multiple MCP clients.
Use a container or remote VM with a bearer token, allowed hosts and TLS.
1. Start the server
Enable HTTP with SENTINEL_MCP_HTTP=1 and choose the port with SENTINEL_MCP_PORT (default 3333). The server listens on 127.0.0.1 by default; override with SENTINEL_MCP_HOST.
# Start Sentinel as a standalone HTTP MCP server
GEMINI_API_KEY=your-key-here \
SENTINEL_MCP_HTTP=1 \
SENTINEL_MCP_PORT=3333 \
npx --yes --package @isoldex/sentinel@4.2.1 sentinel-mcp
# Or via the built-in dev script (from a cloned repo) — auto-restarts on rebuild:
# npm run build:watch # terminal 1
# npm run mcp:dev # terminal 22. Point the client at the URL
Replace the command/args block with a url entry. Use a client that supports remote Streamable HTTP MCP servers. URL, headers and remote-server setup vary by client and version.
// .cursor/mcp.json (or any MCP client config)
{
"mcpServers": {
"sentinel": {
"url": "http://127.0.0.1:3333/mcp"
}
}
}Security note
Local HTTP defaults to 127.0.0.1:3333. Host and Origin checks reject requests outside the loopback allow-list. Binding outside loopback requires SENTINEL_MCP_TOKEN; startup fails without it. Clients send Authorization: Bearer <token>. A configured token is checked on every request, including loopback. Request bodies are limited to 4 MiB by default. Use TLS for network traffic.
Remote HTTP access
Set a long random token on the server, allow its public hostname and put TLS in front of the HTTP listener. The token controls access to the complete shared browser session, including logged-in sites.
GEMINI_API_KEY=your-key-here \
SENTINEL_MCP_HTTP=1 \
SENTINEL_MCP_HOST=0.0.0.0 \
SENTINEL_MCP_TOKEN=replace-with-a-long-random-secret \
SENTINEL_MCP_ALLOWED_HOSTS=mcp.example.com \
npx --yes --package @isoldex/sentinel@4.2.1 sentinel-mcp{
"mcpServers": {
"sentinel": {
"url": "https://mcp.example.com/mcp",
"headers": { "Authorization": "Bearer <same-server-token>" }
}
}
}| Variable | Default | Purpose |
|---|---|---|
| SENTINEL_MCP_HTTP | off | Set to 1 to use HTTP instead of stdio. |
| SENTINEL_MCP_HOST | 127.0.0.1 | Bind address. Non-loopback binding requires a token. |
| SENTINEL_MCP_PORT | 3333 | HTTP listener port. |
| SENTINEL_MCP_TOKEN | unset | Bearer token; required when the bind address is outside loopback. |
| SENTINEL_MCP_ALLOWED_HOSTS | loopback + bind host | Comma-separated additional hostnames or host:port values. |
| SENTINEL_MCP_ALLOWED_ORIGINS | loopback | Comma-separated additional full Origin URLs. Non-browser clients may omit Origin. |
| SENTINEL_MCP_MAX_BODY_BYTES | 4194304 | Maximum request body size; larger bodies receive HTTP 413. |
Available tools
The browser session persists across tool calls within the same MCP server process. Errors are returned as structured isError: true responses — the server never crashes on a tool failure.
| Tool | Parameters | Description |
|---|---|---|
| sentinel_goto | url: string | Navigate to a URL and wait for the page to settle. |
| sentinel_act | instruction: string, variables?: Record<string, string> | Perform a natural language action on the current page (click, fill, scroll, etc.). |
| sentinel_extract | instruction: string, schema?: object | Extract structured data from the current page using a natural language instruction and JSON schema. |
| sentinel_observe | instruction?: string | List interactive elements on the page, optionally filtered by a natural language hint. |
| sentinel_run | goal: string, maxSteps?: number | Run the autonomous agent loop to achieve a high-level goal. |
| sentinel_screenshot | — | Take a screenshot of the current page. Returns a base64-encoded PNG. |
| sentinel_close | — | Close the browser session and release all resources. |
| sentinel_token_usage | — | Get accumulated token usage and estimated cost for the current session. |
Development tips
Environment variables are passed via the env block in your MCP config file.
# Set these in the env block of your MCP configuration.
GEMINI_API_KEY=your-key-here
SENTINEL_HEADLESS=false
GEMINI_VERSION=gemini-3-flash-preview
# The bundled MCP executable uses Gemini. For another provider,
# build a custom integration with Sentinel({ provider: ... }).
# Setting OPENAI_API_KEY alone does not switch the bundled MCP server.Pro tip
Set SENTINEL_HEADLESS=false while building prompts so you can watch exactly what the browser is doing. Switch to true for production use.