Glance logo

Glance

Organization
DebugBase

AI-powered browser automation MCP server for Claude Code. Navigate, click, screenshot, test — all from your terminal.

PublisherDebugBase
Repositoryglance
LanguageTypeScript
Forks
23
Stars
152
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Glance exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    152 stars and 23 forks from the linked repository.


What is Glance?

Glance is an MCP server that gives Claude Code a real browser. Instead of guessing what your web app looks like, Claude can actually see it, interact with it, and test it.

You: "Test the login flow on localhost:3000"

Claude: *opens browser* *navigates* *fills form* *clicks submit*
        *takes screenshot* *verifies redirect* *checks for errors*
        "Login flow works. Found 1 console warning about..."

Features

  • 30 MCP tools for complete browser control
  • Inline screenshots — Claude sees what the browser sees
  • Accessibility snapshots — full page structure as text
  • Test scenario runner — define multi-step tests in JSON
  • 12 assertion types — exists, textContains, urlEquals, and more
  • Session recording — record and replay browser sessions
  • Visual regression — pixel-level screenshot comparison
  • Network & console monitoring — catch errors and failed requests
  • Security controls — URL allowlist/denylist, rate limiting, JS execution policies
  • Headed mode — watch the browser in real-time

Quick Start

1. Install

bash
npm install -g glance-mcp

Or add directly to Claude Code:

bash
claude mcp add glance -- npx glance-mcp

2. Configure

Add to your .mcp.json:

json
{
  "mcpServers": {
    "glance": {
      "command": "npx",
      "args": ["glance-mcp"],
      "env": {
        "BROWSER_HEADLESS": "false"
      }
    }
  }
}

3. Use

Just ask Claude to interact with your web app:

"Open localhost:3000 and take a screenshot"
"Test the signup flow with invalid email"
"Check if the pricing page has all three tiers"
"Run a visual regression test on the dashboard"

Tools Reference

Browser Control (19 tools)

ToolDescription
browser_navigateNavigate to a URL
browser_clickClick an element (CSS selector or text)
browser_typeType into an input field
browser_hoverHover over an element
browser_dragDrag and drop between elements
browser_select_optionSelect from a dropdown
browser_press_keyPress a keyboard key
browser_scrollScroll the page or to an element
browser_screenshotCapture a screenshot (returned inline to Claude)
browser_snapshotGet the accessibility tree as text
browser_evaluateExecute JavaScript in the page
browser_console_messagesRead console logs and errors
browser_network_requestsMonitor network activity
browser_go_backNavigate back
browser_go_forwardNavigate forward
browser_tab_newOpen a new tab
browser_tab_listList all open tabs
browser_tab_selectSwitch to a tab
browser_closeClose the browser

Test Automation (7 tools)

ToolDescription
test_scenario_runRun a multi-step test scenario
test_scenario_statusCheck running scenario status
test_assertRun a single assertion
test_fill_formAuto-fill a form
test_auth_flowTest a login/signup flow
test_watch_eventsWatch for DOM/network events
test_stop_watchStop watching events

Session & Visual (4 tools)

ToolDescription
session_startStart recording a session
session_endEnd and save a session
session_listList recorded sessions
visual_baselineSave a visual baseline
visual_compareCompare against baseline

Test Scenarios

Define multi-step test scenarios in JSON:

json
{
  "name": "Login Flow",
  "steps": [
    { "name": "Go to login", "action": "navigate", "url": "http://localhost:3000/login" },
    { "name": "Enter email", "action": "type", "selector": "input[type='email']", "value": "user@test.com" },
    { "name": "Enter password", "action": "type", "selector": "input[type='password']", "value": "password123" },
    { "name": "Click submit", "action": "click", "selector": "button[type='submit']" },
    { "name": "Wait for redirect", "action": "sleep", "ms": 2000 },
    { "name": "Verify dashboard", "action": "assert", "type": "urlContains", "expected": "/dashboard" },
    { "name": "Screenshot result", "action": "screenshot", "screenshotName": "post-login" }
  ]
}

Assertion Types

TypeDescription
existsElement exists in DOM
notExistsElement does not exist
textContainsElement text contains value
textEqualsElement text equals value
hasAttributeElement has attribute with value
hasClassElement has CSS class
isVisibleElement is visible
isEnabledElement is enabled
urlContainsCurrent URL contains value
urlEqualsCurrent URL equals value
countEqualsNumber of matching elements
consoleNoErrorsNo console errors

Configuration

All configuration is via environment variables:

VariableDefaultDescription
BROWSER_HEADLESStrueRun browser in headed mode
BROWSER_SESSIONS_DIR.browser-sessionsDirectory for screenshots and sessions
BROWSER_SECURITY_PROFILElocal-devSecurity profile (local-dev, restricted, open)
BROWSER_VIEWPORT_WIDTH1280Browser viewport width
BROWSER_VIEWPORT_HEIGHT720Browser viewport height
BROWSER_TIMEOUT30000Default timeout in ms
BROWSER_CHANNEL—Browser channel (e.g., chrome, msedge)

Security Profiles

ProfileURL AccessJS ExecutionRate Limit
local-devAll HTTP/HTTPSAlways60/min
restrictedlocalhost onlyDisabled30/min
openEverythingAlways120/min

How It Works

  1. Claude Code connects to Glance via MCP (stdio transport)
  2. Claude calls tools like browser_navigate, browser_screenshot
  3. Glance translates these into Playwright commands
  4. Screenshots are returned as base64 images — Claude literally sees the page
  5. Accessibility snapshots give Claude the full DOM structure as text

Real-World Usage

Glance has been battle-tested on production apps:

  • DebugBase (debugbase.io) — 12 scenarios, 104 test steps, 97% pass rate
  • GitScribe AI — 16 scenarios, 196 test steps, 96% pass rate

Requirements

  • Node.js 18+
  • Playwright-compatible browser (auto-installed)

Development

bash
git clone https://github.com/DebugBase/glance.git
cd glance
npm install
npx playwright install chromium
npm run build
npm start

Claude Code Integration

Agent: e2e-tester

Glance ships with a Claude Code agent definition for comprehensive browser testing. The agent knows all 30 tools and follows a structured test workflow: navigate, screenshot, assert, report.

You: "Test the entire login flow on localhost:3000"
Agent: Opens browser → navigates → fills forms → clicks → screenshots → asserts → reports

Skill: /glance-test

Quick E2E test runner. Just provide a URL:

/glance-test https://myapp.com

The skill will:

  1. Navigate to the URL
  2. Screenshot and snapshot the page
  3. Discover all navigation links
  4. Test each page with assertions
  5. Check console for JS errors
  6. Generate a pass/fail report

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

License

MIT — built by DebugBase

Installation

TypingMind
{
  "mcpServers": {
    "glance": {
      "command": "npx",
      "args": [
        "@debugbase/glance"
      ]
    }
  }
}

Use Glance MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Glance is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Glance as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Glance MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "glance": {
      "command": "npx",
      "args": [
        "-y",
        "@debugbase/glance"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Glance MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Glance MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Glance to help me with this task?
Glance
Sure. I read it.
Here is what I found using Glance.

Frequently asked questions

What is the Glance MCP server used for?

Glance is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Glance MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Glance with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Glance MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Glance connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Glance MCP to TypingMind?

Glance runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Glance MCP provide in TypingMind?

Glance exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Glance MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Glance requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇