Skip to content
MCP server

autologin-mcp

Lets AI coding agents log into the web app under test without exposing the password

Runs locally

autologin-mcp is an open-source MCP server for browser automation. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
1.3.3
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add autologin-mcp -- npx -y autologin-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "autologin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autologin-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "autologin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autologin-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "autologin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autologin-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "autologin-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "autologin-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add autologin-mcp -- npx -y autologin-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.autologin-mcp]
command = "npx"
args = ["-y", "autologin-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "autologin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autologin-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "autologin-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "autologin-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user autologin-mcp npx -- -y autologin-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "autologin-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "autologin-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "autologin-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "autologin-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "autologin-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "autologin-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "autologin-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "autologin-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "autologin-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "autologin-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "autologin-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "autologin-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "autologin-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "autologin-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About autologin-mcp

Coding agents that test a web app in a real browser often hit a login wall when a session expires or a token is revoked. This MCP server takes over that step: the agent asks it to log in, and it fills the form on the page using credentials kept in a local file on the user's machine.

The model only receives a one-time loader script with a short-lived local URL and the final outcome, such as success, a failure message, or a request for a human when SSO, passkeys, captchas or one-time codes are involved. Credentials are released only to pages on the profile's own site, and tool results are scrubbed of passwords.

It is aimed at developers and QA engineers who run Claude Code with Claude in Chrome, Playwright MCP or chrome-devtools-mcp against staging or local apps and want long test runs to continue without manual sign-ins.

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 2 of 4 tools read data; 2 names don't say.

From the server's own tool labels and tool names; not verified by us.

list_profilesName suggests: reads
Lists profile name, root URL and username for each profile. Never passwords.
login
Returns a one-time loader script in bridge mode, or the login result directly in CDP mode; reports needs_human when a person must finish.
login_statusName suggests: reads
Returns the latest login outcome per profile.
open_config
Opens the credentials file in an editor or returns its path; the content is never returned.

What it does

Automatic login on demand
The agent calls the login tool when it sees a login form, a 401/403, a login redirect or a session-expired message.
Password kept out of chat
Credentials go from a local file straight into the page, so the model never handles them.
Origin-checked credential release
Credentials are sent only to pages whose browser-set Origin matches the profile's site.
One-time 127.0.0.1 bridge
Each loader script works once, binds to loopback and expires after 60 seconds.
Handoff for hard logins
SSO, passkeys, captchas and one-time codes are returned to the user instead of retried.
Lockout protection
Three failed logins in five minutes pause the profile to avoid locking the account.

Good for

  • Keep an AI agent testing a checkout or dashboard flow after the session expires
  • Run end-to-end browser tests on a staging app that requires login
  • Let a coding agent reproduce bugs behind authentication without sharing the password
  • Switch between several test accounts for the same app during a run

Pricing

Open source

Free and open source under the MIT license.

Prices change. Check olgaysezgin.github.io before you buy.

autologin-mcp FAQ

How do I let Claude Code log in to my web app without giving autologin-mcp my password?

Install autologin-mcp with npx autologin-mcp install and add a login profile in a normal terminal with npx autologin-mcp add. When Claude Code's browser tab shows a login form, Claude calls the login tool and autologin-mcp fills the form with the credentials stored on your machine. Claude only sees the outcome, never the password.

Does the password ever reach the AI model?

No. The password goes from a local credentials file directly into the page, over a one-time 127.0.0.1 bridge that checks the page's origin or through the Chrome DevTools Protocol. Tool results are redacted, and a guard hook blocks the agent from reading the credentials file.

Do I need to enable Chrome remote debugging?

No. The default bridge mode needs no browser setup. Remote debugging enables CDP mode, which helps when the app's Content-Security-Policy blocks the bridge.

Does autologin-mcp support SSO, two-factor authentication or multi-step logins?

It fills the common username and password form on the app's own page, including identifier-first logins. Single sign-on, passkeys, captchas and a one-time code after the password are handed to the user. Filling TOTP codes, logins that navigate to a second document, and iframes are on the roadmap.

Is autologin-mcp free?

Yes. autologin-mcp is open source, so you can use and self-host it for free.

How do I add autologin-mcp to Claude Code?

Run this command in your terminal: claude mcp add autologin-mcp -- npx -y autologin-mcp

What are the best alternatives to autologin-mcp?

The closest alternatives to autologin-mcp are Browser MCP, playwright_mcp, Browser Ref MCP, Agent-first-browse and Playwright MCP.

Where this comes from

  • Description: written from the project's README, the project's website and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers