Skip to content
autologin-mcp logo
MCP server
Registry

autologin-mcp MCP Server

Logs your AI coding agent into the web app it is testing; the password never reaches the model.

autologin-mcp scores 66 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Browser automation, AI and memory. GitHub shows 10 stars. Package registries report about 1,613 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by olgaysezginMITTypeScript10 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 3 + 10 + 4 + 7 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "olgaysezgin-autologin-mcp": {      "command": "npx",      "args": [        "-y",        "autologin-mcp@1.3.3"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

autologin-mcp is an open-source Model Context Protocol (MCP) server that lets AI coding agents such as Claude Code log in to the web app they are testing. When the agent's browser tab shows a login form, a "session expired" message, a 401/403 or a redirect to a login page, the agent calls the login tool, and autologin-mcp fills the form with credentials stored on your machine. The username and password never appear in the conversation, so they never reach the model. It works with Claude in Chrome, Playwright MCP and chrome-devtools-mcp, and needs no browser setup.

You:            "Test the checkout flow on staging"
Agent:          …navigates… the session has expired, the app shows a login form
Agent:          calls autologin.login({ url })                 ← no password in the request
autologin-mcp:  returns a one-time script                      ← no password in the response
Agent:          runs it in the tab → { "status": "success" }   ← the page got the password from your machine
Agent:          continues the checkout test

Quick use

Requirements: Node.js 22.12+, Claude Code, and a browser tool for the agent (for example Claude in Chrome).

# 1. Register the MCP server, skill and guard hook in Claude Code
npx autologin-mcp install

# 2. Add a login profile. Run this in a normal terminal, not in the AI chat.
npx autologin-mcp add
#   Profile name (e.g. staging): staging
#   Root URL (e.g. example.com or localhost:3000): staging.example.com
#   Username: qa@example.com
#   Password (hidden):
  1. Restart Claude Code and test as usual. When the app asks for a login, the agent calls login by itself.
  2. Optional: turn on chrome://inspect/#remote-debugging in Chrome (144+) to let autologin-mcp fill the tab directly (CDP mode).

Upgrade with npx autologin-mcp@latest install, remove with npx autologin-mcp uninstall. Step-by-step guide: Getting started.

Another agent? npx autologin-mcp print-config --client codex (or gemini, cursor, vscode, claude-desktop, hermes) prints its configuration. See Agents and browser tools. autologin-mcp is also listed in the official MCP Registry as io.github.olgaysezgin/autologin-mcp, and on Glama.

Features

  • Logs in when the agent needs it. The agent calls login when the page shows a login form, a "session expired" message, a 401/403 or a redirect to a login URL, then carries on with its task.
  • The password never enters the chat. Credentials go from a file on your machine straight into the page. Tool results are scrubbed of passwords, and a guard hook keeps the agent away from the credentials folder.
  • No browser setup. Bridge mode uses the JavaScript tool the agent already has. Turn on Chrome remote debugging and CDP mode fills the tab itself.
  • Locked to your app's origin. Credentials are released only to the site of the profile, so a prompt-injected page on another site gets nothing.
  • Real-world forms. React, Vue and Angular inputs, forms that render late, identifier-first pages that ask for the email before the password, submit buttons in many languages, and the page's own error message when a login fails.
  • Knows when to stop. Single sign-on, passkeys, captchas and a one-time code after the password are handed to you (needs_human) instead of failing or retrying, and those pages never receive the credentials.
  • No account lockouts. Three failed logins in five minutes pause the profile until you check the credentials.
  • Several accounts and apps. One global credentials file outside your projects, with as many profiles as you need.
  • One command to install. npx autologin-mcp install registers the MCP server, the skill and the guard hook in Claude Code.
  • Other agents and CI. print-config prints the setup for Codex CLI, Gemini CLI, Cursor, VS Code, Claude Desktop and Hermes Agent, and add --password-stdin creates profiles in scripts and CI.

Why

  • Sessions expire in the middle of long agent runs. The agent stops, or asks you for the password.
  • A password pasted into the chat becomes part of the conversation. It is sent to the model provider and ends up in transcripts, logs and context summaries.
  • A password in a file the agent can read (a project .env, a prompt file) has the same problem, and can end up in git.

autologin-mcp splits the work: the agent decides when to log in; a small deterministic program on your machine does the how, with no AI involved. It finds the login form, fills it, submits it and reports only the outcome.

Documentation

The full documentation is in docs/ and on the website. The essentials:

How it works

  • Bridge mode (default, zero setup). login returns a one-time loader script containing only a 60-second URL on 127.0.0.1. The agent runs it in the tab with the JavaScript tool it already has (javascript_tool, browser_evaluate, evaluate_script or Puppeteer's page.evaluate). The page then fetches the credentials from your machine, and they are released only if the page's browser-set Origin header belongs to the profile's site.
  • CDP mode (automatic when Chrome remote debugging is on). autologin-mcp connects to Chrome over the DevTools Protocol and fills the tab itself; the agent runs nothing.
  • The filler works with React, Vue and Angular forms, waits for the outcome, and returns success, submitted, or failed with the page's error message.

More: How it works.

The credentials file

npx autologin-mcp add writes ~/.autologin-mcp/credentials.env (permissions 600). It is global, outside your projects, so it never ends up in git. Edit it with npx autologin-mcp edit:

STAGING_URL=staging.example.com
STAGING_USERNAME=qa@example.com
STAGING_PASSWORD='p@ss w0rd#1'      # quote values that contain spaces or #

LOCAL_URL=localhost:3000
LOCAL_USERNAME=admin
LOCAL_PASSWORD=admin
LOCAL_SUBMIT_SELECTOR=button[type=submit]   # optional, for unusual forms

A profile only fills pages whose host matches its root URL (example.com, *.example.com, localhost:3000). Several accounts for the same app are fine. More: Configuration.

MCP tools

ToolWhat the agent gets back
list_profilesProfile name, root URL and username for each profile. Never passwords.
login({ url?, profile? })Bridge mode: run_in_page with a one-time loader to run in the tab, as script, function or expression for the agent's browser tool. CDP mode: the result directly (success, submitted, failed, no_login_form, rate_limited, …). needs_human with a reason (sso, passkey, captcha, mfa_required, …) when only a person can finish.
login_status({ profile? })The latest outcome per profile, for when the agent's JavaScript call was cut off.
open_configOpens the credentials file in your editor, or returns its path where there is no desktop. The content is never returned.

More: MCP tools and CLI reference.

Security in one paragraph

A Claude Code guard hook and deny rules block the agent from reading the credentials folder, also in skip-permissions mode. Every tool result is scrubbed of passwords. The bridge listens on 127.0.0.1 only, each script works once for 60 seconds, and credentials go only to the profile's origin, and only once the page showed a login form to fill, so a prompt-injected page on another site gets nothing. Three failed logins in five minutes pause a profile, so a wrong password cannot lock the account. autologin-mcp prevents accidental exposure, not a deliberately hostile agent: use dedicated test accounts. More: Security model.

Works with

Agent / browser toolStatus
Claude Code + Claude in ChromeSupported and tested end to end
Claude Code + Playwright MCPSupported (browser_evaluate, or CDP with a shared browser)
Claude Code + chrome-devtools-mcpSupported (evaluate_script, or CDP with a shared browser)
Puppeteer-based browser toolsSupported (expression with page.evaluate, or CDP with a shared browser)
Codex CLI, Gemini CLI, Cursor, VS Code, Claude Desktop, Hermes AgentThe stdio server runs, and print-config prints the setup; installer, skill and guard hook are Claude Code only. Not tested yet

More: Agents and browser tools and Troubleshooting.

FAQ

How do I let Claude Code log in to my web app without giving it my password? Install autologin-mcp, add a profile for your app in a normal terminal, and restart Claude Code. When the app shows a login form, Claude calls login and autologin-mcp fills the form with the credentials on your machine. Claude only sees the outcome.

Does the password ever reach the AI model? No. It goes from the local credentials file straight into the page, through the origin-checked 127.0.0.1 bridge or the Chrome DevTools Protocol. Tool results are redacted, and a guard hook blocks reads of the credentials file.

Do I need Chrome remote debugging? No. Bridge mode needs no browser setup. Remote debugging enables CDP mode, which also works when the app's Content-Security-Policy blocks the bridge.

Does it support SSO, 2FA or multi-step logins? It fills username + password forms on the app's own page, including identifier-first logins that ask for the email and then swap in the password field. Single sign-on, passkeys, captchas and a one-time code after the password are recognised and handed to you (needs_human) instead of failing or retrying. Filling TOTP codes, logins that move to another document, and iframes are on the roadmap.

Is it free? Yes, MIT licensed.

More questions: FAQ.

Roadmap

  • Opt-in auto-login (CDP mode): watch a profile's URL and log in without the agent asking
  • Logins that navigate between documents, and login forms inside iframes
  • TOTP codes (#1)
  • doctor and test <profile> commands
  • Installers that write the config for Codex CLI, Gemini CLI and Cursor (print-config prints it today); a Claude Code plugin

Development

npm install
npm test            # unit tests + end-to-end tests in a headless Chrome
npm run coverage    # fails below 98% statements/branches/functions/lines
npm run build && npm run smoke

The end-to-end tests start a throwaway headless Chrome (set CHROME_PATH if Chrome is not in a standard location). See CONTRIBUTING.md. Security reports: SECURITY.md.

Releases

Every release has the same version in package.json, the git tag, npm and the GitHub release. See CHANGELOG.md for what changed in each version.

License

MIT © Olgay Sezgin

Frequently asked questions

What is autologin-mcp MCP Server?

Logs your AI coding agent into the web app it is testing; the password never reaches the model.

How do I install autologin-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. autologin-mcp MCP Server runs locally from the npm package autologin-mcp with the command npx -y autologin-mcp@1.3.3.

Is autologin-mcp MCP Server free and open source?

Yes. autologin-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does autologin-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for autologin-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is autologin-mcp MCP Server's trust score calculated?

autologin-mcp MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server