session-broker
This server gives an MCP agent tools to manage real-browser website sessions without the agent ever seeing your password.
sign_in: Opens a real browser profile at a URL under a durable session name so you can log in yourself.complete_sign_in: After you confirm login, saves the session and closes the login window.browse: Reads a page using a named session; omitting URL reuses the sign-in URL and can detect when login is required again.list_sessions: Lists saved website sessions and shows whether a login window is currently open.revoke: Deletes a named session and its local browser profile.Runs as a local daemon, reuses your existing Chromium-based browser profile, and keeps cookies on your machine only.
Allows reuse of an existing Arc browser profile for passwordless sign-in and session-based browsing.
Allows reuse of an existing Brave browser profile for passwordless sign-in and session-based browsing.
Allows reuse of an existing Opera browser profile for passwordless sign-in and session-based browsing.
Allows reuse of an existing Vivaldi browser profile for passwordless sign-in and session-based browsing.
Click on "Deploy 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., "@session-broker Sign into https://example.com and show the dashboard"
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.
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-brokerFirst 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.
Quit the browser if it is already running (one process per profile).
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.
Only sign in if that site still asks. Do not paste the password in chat.
Tell the agent you are signed in.
It calls
complete_sign_in, thenbrowse. 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:19876owns 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 serveLimits
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 toolsbrowseA
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
Scored across 5 tools
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.
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.
Five tools is well-scoped for a session-broker service. Each tool covers a necessary part of the workflow without redundancy.
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
Related MCP Connectors
Let your AI agent operate any website through a real, logged-in browser session.
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Launch, inspect, control, and share isolated cloud browsers for your agents.
Logs your AI agent into websites, catches verification codes, and asks you before anything risky.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables 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.-
- AlicenseAqualityAmaintenanceEnables 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.4066MIT
- AlicenseAqualityCmaintenanceEnables AI agents to access authenticated websites by reusing your existing browser profile and cookies, so you never share passwords and sessions persist between runs.55MIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to drive a headless Chrome browser that is already logged in to the user's accounts, supporting multiple accounts and safe handling of Google sessions without manual login or 2FA.MIT