Glasses

Glasses

gourraguis

Takes screenshots of websites using headless Chrome with device emulation options. Gives AI assistants the ability to see and analyze web pages visually.

Captures website screenshots using headless Chrome automation with configurable device emulation, output formats, and full-page or viewport-only options for web development workflows and content auditing.

10490 views3Local (stdio)

What it does

  • Capture screenshots of any website URL
  • Emulate different devices (phones, tablets, laptops)
  • Choose output format (PNG or JPEG)
  • Take full-page or viewport-only screenshots
  • Screenshot local development servers

Best for

Web developers testing responsive designsContent auditing and competitive analysisAI assistants analyzing website layoutsDocumentation and visual web testing
No API key neededMultiple device emulation optionsWorks with local development servers

About Glasses

Glasses is a community-built MCP server published by gourraguis that provides AI assistants with tools and capabilities via the Model Context Protocol. Glasses automates website screenshot capture with headless Chrome, offering device emulation and flexible formats for we It is categorized under browser automation, developer tools. This server exposes 1 tool that AI clients can invoke during conversations and coding sessions.

How to install

You can install Glasses in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

Glasses is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Tools (1)

screenshot

Takes a screenshot of a website.

MseeP.ai Security Assessment Badge

Glasses MCP: Let Your AI See the Web 👓

NPM Version License: MIT

Your AI assistant is a powerful partner, capable of processing immense amounts of text and code. But when it comes to the visual web, it's flying blind. It can't see the layout of a competitor's landing page, the design of a complex dashboard, or the look of your latest prototype.

Glasses MCP gives it sight.

It's a simple tool that allows your AI to request a perfect, device-specific screenshot of any website. It's not just about taking pictures; it's about giving your AI the context it's been missing, turning the visual web into a resource it can finally understand and interact with.

Table of Contents

Features

  • Capture any URL: Take a screenshot of any public website or local development server.
  • Device Emulation: See how a site looks on a variety of popular phones, tablets, and laptops.
  • Selectable Format: Choose between png and jpeg image formats.
  • Full Page or Viewport: Capture the entire scrollable page or just the visible viewport.
  • Structured Output: Returns a clear JSON object indicating success or failure.

Installation

You can install Glasses MCP in two ways, depending on your preference and client application.

Method 1: Desktop Extension

This is the easiest way to get started. It allows for one-click installation in compatible clients like Claude Code.

  1. Download the latest glasses-mcp.dxt file.
  2. Open the .dxt file with your client application. The client will handle the rest.

Method 2: Manual JSON Configuration

This method uses npx to download and run the package on-demand. It's ideal for command-line usage or for developers who prefer not to install the extension directly.

To use this method, add the following JSON to your client's configuration file:

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

Configuration File Locations:

  • For Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json
  • For Gemini CLI: ~/.gemini/settings.json
  • For Cursor IDE: Your user settings.json file.

Usage

Once integrated, you can use prompts like these with your AI assistant.

Example Prompts

Here are a few examples of how you can use Glasses MCP.

For a straightforward capture of a homepage, where the AI can infer the filename:

"Take a screenshot of github.com and save it to my desktop."

To specify a different image format and save location:

"Get a JPEG screenshot of the latest news on bbc.com/news and save it in my downloads folder."

To see how a website looks on a mobile device, specifying the exact output filename:

"Capture the verge.com homepage as it would appear on a small iOS device and save it as verge-mobile.png."

To capture a local development server, focusing only on the visible portion of the page:

"Capture just the viewport of my local server at http://localhost:3000."

Tool Reference: screenshot

NameTypeRequiredDefaultDescription
urlstringYes-The full URL of the website to capture.
outputPathstringYes-The local file path to save the screenshot to.
format"png" | "jpeg"No"png"The output image format.
fullPagebooleanNotrueIf true, captures the entire page. If false, captures only the visible viewport.
devicestringNolaptop-hidpiThe name of the device to emulate (see Supported Devices below).

Supported Devices

The screenshot tool can optionally emulate a specific device, which sets the viewport size, pixel density, and user agent to match. We have curated a list of popular and representative devices to provide good coverage of the most common form factors while keeping the list manageable.

Device NameDevice IDCategoryRepresents
iPhone 14 Pro Maxios-largePhoneA large, modern iOS device.
iPhone SEios-smallPhoneA smaller, older-generation iOS device.
Pixel 6 Proandroid-largePhoneA large, modern Android device.
Galaxy S8android-mediumPhoneA common, slightly older Android device.
iPad Pro 11tablet-largeTabletA modern, high-resolution tablet.
iPad Minitablet-smallTabletA smaller, popular tablet format.
Laptop with HiDPI screenlaptop-hidpiLaptopA high-resolution laptop (e.g., MacBook Pro).
Laptop with MDPI screenlaptop-mdpiLaptopA standard-resolution laptop.

Returns: A JSON object indicating success or failure.

{
  "success": true,
  "outputPath": "/path/to/your/screenshot.png"
}

Error Handling

If the tool encounters an error (e.g., an invalid URL, a website that fails to load), it will return a JSON object with the isError flag set to true and a descriptive error message.

{
  "success": false,
  "error": "net::ERR_NAME_NOT_RESOLVED at https://invalid-url-here.com"
}

Limitations

  • No Login/Authentication: The tool cannot log in to websites that require authentication. It can only capture publicly accessible content.
  • Anti-Bot Measures: Some websites employ sophisticated anti-bot technologies that may block the tool from capturing a screenshot.
  • Complex Interactions: The tool does not support complex interactions like clicking buttons, filling out forms, or scrolling to a specific element before taking a screenshot.

Development & Contributing

To contribute to this project:

  1. Clone the repository: git clone https://github.com/gourraguis/glasses-mcp.git
  2. Install dependencies: cd glasses-mcp && npm install
  3. Build the project: npm run build
  4. To test your local build, use the MCP Inspector:
    npx @modelcontextprotocol/inspector node dist/main.js
    

Alternatives

Related Skills

Browse all skills
chrome-devtools

Browser automation, debugging, and performance analysis using Puppeteer CLI scripts. Use for automating browsers, taking screenshots, analyzing performance, monitoring network traffic, web scraping, form automation, and JavaScript debugging.

30
browser-tools

Lightweight Chrome automation toolkit with shared configuration, JSON-first output, and six focused scripts for starting, navigating, inspecting, capturing, evaluating, and cleaning up browser sessions.

5
browser-setup-devtools

Guide users through browser automation setup using Chrome DevTools MCP as the primary path and the OpenCode browser extension as a fallback. Use when the user asks to set up browser automation, Chrome DevTools MCP, browser MCP, browser extension, or runs the browser-setup command.

3
crewai-developer

Comprehensive CrewAI framework guide for building collaborative AI agent teams and structured workflows. Use when developing multi-agent systems with CrewAI, creating autonomous AI crews, orchestrating flows, implementing agents with roles and tools, or building production-ready AI automation. Essential for developers building intelligent agent systems, task automation, and complex AI workflows.

2
browser

This skill should be used for browser automation tasks using Chrome DevTools Protocol (CDP). Triggers when users need to launch Chrome with remote debugging, navigate pages, execute JavaScript in browser context, capture screenshots, or interactively select DOM elements. No MCP server required.

2
ccxt-typescript

CCXT cryptocurrency exchange library for TypeScript and JavaScript developers (Node.js and browser). Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors. Use when working with crypto exchanges in TypeScript/JavaScript projects, trading bots, arbitrage systems, or portfolio management tools. Includes both REST and WebSocket examples.

1