Glasses logo

Glasses

Community
gourraguis

Glasses MCP is a simple MCP server that lets your AI agent see and capture the web 👓

Publishergourraguis
Repositoryglasses-mcp
LanguageTypeScript
Forks
2
Stars
10
Available tools
1
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

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

  • 1 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

    10 stars and 2 forks from the linked repository.

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:

json
{
  "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.

json
{
  "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.

json
{
  "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:
    bash
    npx @modelcontextprotocol/inspector node dist/main.js

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Available Tools

  • screenshot

    Takes a screenshot of a website.

Use Glasses MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Glasses 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 Glasses 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 Glasses 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": {
    "glasses": {
      "command": "npx",
      "args": [
        "-y",
        "glasses-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Glasses 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 Glasses 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 Glasses to help me with this task?
Glasses
Sure. I read it.
Here is what I found using Glasses.

Frequently asked questions

What is the Glasses MCP server used for?

Glasses 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 Glasses MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Glasses 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 Glasses 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 Glasses connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Glasses MCP to TypingMind?

Glasses 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 Glasses MCP provide in TypingMind?

Glasses exposes 1 MCP tools 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 Glasses MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Glasses 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 👇