MCP Hub
Back to servers

camofox-browser-mcp

MCP server for driving a local camofox-browser instance.

Updated
Feb 23, 2026

Quick Install

npx -y camofox-browser-mcp

camofox-browser-mcp

camofox-browser-mcp

MCP server for controlling a local camofox-browser instance.

license language npm npm downloads mcp Add with OpenCode Studio


quick installation

paste this into your llm agent session:

Install and configure camofox-browser-mcp by following the instructions here:
https://raw.githubusercontent.com/Microck/camofox-browser-mcp/refs/heads/main/INSTALL.md

npm (recommended)

npm install -g camofox-browser-mcp

MCP server for controlling a local jo-inc/camofox-browser instance.

This server exposes the full practical camofox-browser workflow to LLM agents: tab lifecycle, navigation, interaction, snapshots, screenshots, links, stats, cookie import, session cleanup, YouTube transcript extraction, and high-level composite helpers (navigate_and_snapshot, scroll_and_snapshot, fill_form, type_and_submit, batch_click, web_search).

Prerequisites

  1. Node.js 22+ (required for the npm package)
  2. Optional: Bun (recommended for local development): https://bun.sh/docs/installation
  3. A running camofox-browser server (default http://127.0.0.1:9377)
  4. Optional, depending on tools used:
    • CAMOFOX_API_KEY for cookie import
    • CAMOFOX_ADMIN_KEY for browser stop endpoint

Installation

Local development checkout

git clone https://github.com/Microck/camofox-browser-mcp.git
cd camofox-browser-mcp
bun install
bun run typecheck
bun run build

npm package

npm install -g camofox-browser-mcp

# optional smoke-run (most users just configure their MCP client)
camofox-browser-mcp

Configuration

Set these environment variables in your MCP client config.

VariableRequiredDefaultPurpose
CAMOFOX_BASE_URLyeshttp://127.0.0.1:9377Base URL of running camofox-browser server
CAMOFOX_URLaliasunsetCompatibility alias for CAMOFOX_BASE_URL
CAMOFOX_TIMEOUT_MSno30000HTTP timeout for camofox calls
CAMOFOX_TIMEOUTaliasunsetCompatibility alias for CAMOFOX_TIMEOUT_MS
CAMOFOX_DEFAULT_USER_IDnodefault-userDefault userId when omitted
CAMOFOX_DEFAULT_SESSION_KEYnodefault-sessionDefault sessionKey when omitted
CAMOFOX_API_KEYfor camofox_import_cookiesunsetBearer key for /sessions/:userId/cookies
CAMOFOX_ADMIN_KEYfor camofox_stop_browserunsetAdmin key sent as x-admin-key for /stop

Example MCP config (local build)

{
  "mcpServers": {
    "camofox-browser-mcp": {
      "command": "bun",
      "args": ["/absolute/path/to/camofox-browser-mcp/dist/index.js"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info",
        "CAMOFOX_BASE_URL": "http://127.0.0.1:9377",
        "CAMOFOX_DEFAULT_USER_ID": "default-user",
        "CAMOFOX_DEFAULT_SESSION_KEY": "default-session",
        "CAMOFOX_API_KEY": "",
        "CAMOFOX_ADMIN_KEY": ""
      }
    }
  }
}

Tool coverage

The MCP toolset maps to camofox-browser endpoints and includes compatibility aliases for common camofox-mcp prompts.

Server and session tools

MCP toolEndpointNotes
camofox_healthGET /healthRuntime and browser status
server_statusalias of camofox_healthCompatibility alias
camofox_start_browserPOST /startStarts browser engine
camofox_stop_browserPOST /stopRequires admin key
camofox_close_sessionDELETE /sessions/:userIdCloses all tabs/context for user
camofox_import_cookiesPOST /sessions/:userId/cookiesRequires API key

Tab lifecycle tools

MCP toolEndpointNotes
camofox_list_tabsGET /tabsLists open tabs by user
list_tabsalias of camofox_list_tabsCompatibility alias
camofox_create_tabPOST /tabsCreates tab with optional URL
create_tabalias of camofox_create_tabCompatibility alias
camofox_close_tabDELETE /tabs/:tabIdCloses one tab
close_tabalias of camofox_close_tabCompatibility alias
camofox_close_tab_groupDELETE /tabs/group/:listItemIdCloses all tabs in group
camofox_get_statsGET /tabs/:tabId/statsUsage stats and visited URLs

Navigation and interaction tools

MCP toolEndpointNotes
camofox_navigate_tabPOST /tabs/:tabId/navigateURL or macro navigation
navigatealias of camofox_navigate_tabCompatibility alias
navigate_and_snapshotcompositeNavigate, wait, then snapshot
camofox_waitPOST /tabs/:tabId/waitWait for page readiness
camofox_wait_for_textPOST /act (kind=wait)Wait for text appearance
camofox_get_snapshotGET /tabs/:tabId/snapshotRef-based accessibility snapshot
snapshotalias of camofox_get_snapshotCompatibility alias
scroll_and_snapshotcompositeScroll, then snapshot
camofox_clickPOST /tabs/:tabId/clickClick by ref or selector
batch_clickcompositeExecute multiple clicks sequentially
camofox_typePOST /tabs/:tabId/typeType text by ref/selector
type_textalias of camofox_typeCompatibility alias
type_and_submitcompositeType then press submit key
fill_formcompositeFill multiple fields + optional submit click
camofox_hoverPOST /act (kind=hover)Hover by ref or selector
camofox_pressPOST /tabs/:tabId/pressKeyboard press
camofox_scrollPOST /tabs/:tabId/scrollVertical scroll
camofox_scroll_elementPOST /act (kind=scrollIntoView)Scroll referenced element into view
camofox_backPOST /tabs/:tabId/backHistory back
go_backalias of camofox_backCompatibility alias
camofox_forwardPOST /tabs/:tabId/forwardHistory forward
go_forwardalias of camofox_forwardCompatibility alias
camofox_refreshPOST /tabs/:tabId/refreshPage reload
refreshalias of camofox_refreshCompatibility alias
camofox_get_linksGET /tabs/:tabId/linksExtract page links
camofox_screenshotGET /tabs/:tabId/screenshotReturns base64 PNG
web_searchmacro wrapper around navigateMulti-engine search helper

Content extraction tools

MCP toolEndpointNotes
camofox_youtube_transcriptPOST /youtube/transcriptExtracts YouTube captions

Supported web_search engines

web_search maps engine values to backend macros:

  • google, youtube, amazon, reddit, wikipedia, twitter, yelp
  • spotify, netflix, linkedin, instagram, tiktok, twitch

Compatibility notes

  • list_profiles, save_profile, load_profile, and delete_profile are not exposed yet because current jo-inc/camofox-browser APIs do not provide cookie export/profile endpoints.

Typical workflow

  1. camofox_start_browser
  2. camofox_create_tab (or camofox_list_tabs + reuse)
  3. camofox_navigate_tab
  4. camofox_get_snapshot
  5. Interact with refs: camofox_click, camofox_type, camofox_press, camofox_scroll
  6. Re-run camofox_get_snapshot after major page changes
  7. Cleanup with camofox_close_tab or camofox_close_session

Macro support

camofox_navigate_tab passes macro and query through to camofox-browser. Upstream macros include:

  • @google_search
  • @youtube_search
  • @amazon_search
  • @reddit_search
  • @reddit_subreddit
  • @wikipedia_search
  • @twitter_search
  • @yelp_search
  • @spotify_search
  • @netflix_search
  • @linkedin_search
  • @instagram_search
  • @tiktok_search
  • @twitch_search

Troubleshooting

  • camofox_health fails: check CAMOFOX_BASE_URL and confirm backend is running.
  • camofox_import_cookies 403: set CAMOFOX_API_KEY in both backend and MCP env.
  • camofox_stop_browser 403: set CAMOFOX_ADMIN_KEY in both backend and MCP env.
  • Missing refs after navigation: call camofox_get_snapshot again.

License

MIT

Reviews

No reviews yet

Sign in to write a review