JSPM

@hoangcongst/chromemcp

0.1.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q29828F

A lightweight and fast MCP server to connect AI agents to your own Chrome browser.

Package Exports

  • @hoangcongst/chromemcp
  • @hoangcongst/chromemcp/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hoangcongst/chromemcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Chrome MCP: Give Your AI the Keys to Your Browser πŸ”‘

License: MIT TypeScript Chrome Extension

Unleash your AI's full potential by giving it direct, secure control over your personal Chrome browser. chromemcp transforms your browser from a simple tool into an active, intelligent partner for any task.


πŸš€ Core Philosophy: Speed and Simplicity

chromemcp is built on a simple but powerful idea: the best tools are the ones you don't notice. Our focus is on creating a seamless, lightweight, and incredibly fast bridge between your AI and your browser.

  • No Heavy Dependencies: We use a minimal set of well-vetted libraries to keep the footprint small.
  • Instant Startup: By hooking into your existing browser, we eliminate the slow, resource-intensive process of launching new browser instances.
  • Zero-Clutter Setup: The configuration is designed to be completed in minutes, getting you from clone to command as quickly as possible.

This project is for developers who value performance and want a tool that just works, without the bloat.

The Problem: Your AI is Trapped in a Chatbox

Large Language Models are incredibly powerful, but they are fundamentally disconnected from your most important workspace: the web browser. Traditional automation tools like Playwright or Puppeteer are clunky, run in isolated environments, and constantly struggle with logins, CAPTCHAs, and bot detection. They don't know who you are.

The Solution: Seamless, Context-Aware Automation

chromemcp bridges this gap. It's a Model Context Protocol (MCP) server that acts as a secure bridge between any AI agent and your own Chrome browser. It doesn't launch a new, empty browser; it connects to the one you're already using, complete with your logins, history, and cookies.

This means your AI can:

  • βœ… Operate on websites that require a login.
  • βœ… Leverage your existing session data for context.
  • βœ… Avoid bot detection by using your genuine browser fingerprint.
  • βœ… Work alongside you, in your environment.

How chromemcp Redefines AI Interaction

Advantage The Old Way (Playwright, etc.) The chromemcp Way
Integration ❌ Runs in a sterile, separate browser instance. βœ… Seamlessly integrates with your live browser session.
Authentication ❌ Constant re-logins and brittle session management. βœ… Stays logged in. Uses your existing cookies and sessions.
Privacy ⚠️ Can involve cloud services or complex setups. πŸ”’ 100% Local and Private. Your data never leaves your machine.
Speed & Resources 🐒 Slow to start, heavy on resources. ⚑ Instantaneous and Lightweight. No new browser process needed.
Stealth πŸ€– Easily flagged as a bot. πŸ₯· Human-like. Uses your real browser fingerprint.

From Zero to AI-Powered in 5 Minutes

  1. Clone & Install

    git clone https://github.com/hoangcongst/chromemcp.git
    cd chromemcp
    pnpm install && pnpm build
  2. Load the Extension

    • Go to chrome://extensions, enable Developer Mode.
    • Click Load unpacked and select the extension folder.
  3. Configure Your AI Client Once the extension is loaded, you don't need to manually start the server. Your AI client will do it for you. Here’s how to set it up:

    For Cursor, Claude, or other stdio-based clients:

    1. Find the absolute path to the chromemcp startup script. In your terminal, navigate to the project directory and run:

      # This will print the full path, e.g., /Users/you/projects/chromemcp
      pwd

      The path to the script will be /path/from/pwd/dist/index.js.

    2. In your AI client's settings, add a new MCP server configuration:

      • Name: ChromeMCP (or your preferred name)
      • Type: stdio
      • Command: node
      • Arguments: ["/path/to/your/chromemcp/dist/index.js"]

    Here is an example configuration snippet:

    {
      "name": "ChromeMCP",
      "command": "node",
      "args": [
        "/Users/your_username/path/to/chromemcp/dist/index.js"
      ],
      "type": "stdio"
    }
    1. Save the configuration. Your AI client is now connected and will start the server automatically whenever you use a browser tool.

The Toolkit: Your AI's Senses and Hands

Equip your AI with a powerful set of tools to see, understand, and interact with the web.

πŸ‘€ Vision & Understanding
  • snapshot: Perceive the structure and content of a webpage.
  • screenshot: See the visual layout of the page or specific elements.
  • get_inner_html: Read the raw content or text of any element.
  • get_console_logs: Debug by checking for errors and messages.
🦾 Action & Interaction
  • click, hover, type: Interact with any element on the page.
  • navigate, go_back, go_forward: Control the browser's navigation.
  • execute_javascript: Inject custom logic or modify the page on the fly.
  • press_key, select_option: Handle complex forms and keyboard shortcuts.

Join the Revolution

This is more than just a project; it's a step towards a future where AI agents are truly helpful assistants that can work with us in our digital environments.

Contributions are highly encouraged! Whether you want to add new tools, improve performance, or fix bugs, your input is valuable. Check out the issues or open a pull request to get started.

License

This project is licensed under the MIT License. See the LICENSE file for details.