Skip to main content
Glama
session-broker

session-broker

by om-divyatej

session-broker

MCP tools so an agent can sign into a website without seeing your password.

You stay in the browser you already use. We open that app with your existing profile (cookies and all) so a fresh Chromium does not force a new login. Tools: sign_in, complete_sign_in, browse, list_sessions, revoke.

Local only. Not a cloud vault.

Install

Needs Node (for npx). Nothing else — the first run installs its Python runtime by itself.

Cursor

Add to ~/.cursor/mcp.json (merge with your existing servers):

{
  "mcpServers": {
    "session-broker": {
      "command": "npx",
      "args": ["-y", "github:om-divyatej/session-broker"]
    }
  }
}

Reload MCP / restart Cursor. You should see sign_in, complete_sign_in, browse.

Claude Code

claude mcp add session-broker -- npx -y github:om-divyatej/session-broker

First launch takes a minute: it installs uv (a Python runner) if you don't have it, then fetches the server. After that it's instant.

Related MCP server: Browser MCP

Try it

Ask the agent:

Use session-broker. Sign into https://example.com/login as session demo, then tell me what you see.

  1. Quit the browser if it is already running (one process per profile).

  2. We pick the Chromium-based browser you actually use (freshest cookies: Chrome, Brave, Arc, Edge, Vivaldi, Opera, …) and open that profile — you should already be logged in.

  3. Only sign in if that site still asks. Do not paste the password in chat.

  4. Tell the agent you are signed in.

  5. It calls complete_sign_in, then browse. Leave that window alone while the agent works.

Safari (and Firefox) are not in this path — Playwright cannot reuse Safari's profile. If Safari is your only browser, install Chrome/Brave/Edge or set SESSION_BROKER_ISOLATED=1 (empty profile, you log in once).

Force a browser with SESSION_BROKER_BROWSER=chrome|brave|arc|msedge|…. Isolated empty profiles: SESSION_BROKER_ISOLATED=1. Attach to a browser started with remote debugging: SESSION_BROKER_CDP=http://127.0.0.1:9222.

How it is shaped

  • Daemon on 127.0.0.1:19876 owns Playwright and named profiles.

  • MCP stdio is a thin client. If the daemon is down, it starts one.

mcp is the default command. We open whatever Chromium browser you already live in; we only download Playwright Chromium if none is installed. Sessions live in ~/.session-broker/. Delete a site with revoke, or rm that folder.

Already have uv?

Skip Node and run the Python entry point directly:

{
  "mcpServers": {
    "session-broker": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/om-divyatej/session-broker", "session-broker"]
    }
  }
}

CLI checks:

npx -y github:om-divyatej/session-broker status
npx -y github:om-divyatej/session-broker serve

Limits

This is session-sharing with your consent. Sites that bind logins to device/IP (Google, banks, some shops) may reject the headless replay. Device-bound cookies cannot be copied off the machine by design.

Available Tools

5 tools
browseA

Read a page using a named session. Omit url to reuse the sign_in url.

If the result is LOGIN_REQUIRED, call sign_in, wait, complete_sign_in, retry.

Inputs: name (required), url. Returns: result

complete_sign_inA

Call after the user says they finished logging in. Saves the session (cookies stay in a local browser profile) and closes the login window.

Inputs: name (required). Returns: result

list_sessionsA

List saved website sessions and whether a login window is open.

Inputs: no named parameters. Returns: result

revokeA

Delete a named session and its local browser profile.

Inputs: name (required). Returns: result

sign_inA

Open a real browser so the user can log into a website.

The agent never sees the password. name is a durable session id (e.g. "western-digital"). After the user finishes logging in, you MUST call complete_sign_in before browsing.

Inputs: url (required), name (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a distinct role in the session lifecycle: browsing, listing, deleting, starting login, and completing login. The two-phase sign_in/complete_sign_in flow is clearly separated and not ambiguous.

    Naming Consistency4/5

    Most tools follow a clear imperative verb_noun or phrasal-verb pattern like list_sessions, complete_sign_in, and sign_in. Browse and revoke are less descriptive but still readable and not confusing.

    Tool Count5/5

    Five tools is well-scoped for a session-broker service. Each tool covers a necessary part of the workflow without redundancy.

    Completeness5/5

    The tool surface covers the full lifecycle: create a session (sign_in/complete_sign_in), use it (browse), inspect it (list_sessions), and destroy it (revoke). No obvious gaps exist for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI agents to authenticate with websites using a real Chromium browser with anti-detection measures and human-in-the-loop support for captchas and 2FA. Features stealth browsing, human-like interactions, and persistent session storage to automate and resume login workflows.
      -
    • A
      license
      A
      quality
      A
      maintenance
      Enables AI agents to drive your real, logged-in Chrome browser with existing sessions and cookies, bypassing CAPTCHA and anti-bot measures, with support for multi-session and human-in-the-loop workflows.
      40
      66
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to access authenticated websites by reusing your existing browser profile and cookies, so you never share passwords and sessions persist between runs.
      5
      5
      MIT