Fire in da houseTop Tip:Most people pay up to $340 per month for Perplexity, MidJourney, Runway, ChatGPT, and more - but you can get them all your AI tools for $15 with Galaxy. It's free to test!Fire in da houseCheck it out

browser-mcp

MCP.Pizza Chef: djyde

browser-mcp is an MCP server implemented as a browser extension that enables real-time interaction with the browser environment. It exposes tools to read page content as markdown, modify page styles, and search browser history, allowing LLMs to access and manipulate the browsing context dynamically. This server facilitates advanced workflows like summarizing pages, applying custom styles, and querying browsing history directly from the model.

Use This MCP server To

Extract markdown content from the current browser page Apply custom CSS styles to modify page appearance Search browser history for specific keywords or sites Summarize web pages using extracted markdown content Enable LLM-driven browser automation and navigation Integrate browser context into AI-enhanced workflows

README

browser-mcp

A browser extension and MCP server that allows you to interact with the browser you are using.

mcp

jkXeswNy@2x

Usage

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@djyde/mcp-browser@latest"
      ]
    }
  }
}

Tools

All available tools are listed in server/src/tools.ts.

get_current_page_markdown

Get the markdown from current browser browsing page.

example:

Summarize the current page.

append_style

Append a css style to the current browser browsing page.

example:

Change the current page to dark mode.

history_search

Search the browser history.

example:

Search the browser history for "github".

Roadmap

  • Publish the extension to extension store.
  • Write documentation.
  • Add more tools.

Build

pnpm i

Extension

cd extension

# chrome
npm run build

# edge
npm run build:edge

# firefox
npm run build:firefox

After building, the extension will be in the extension/.output directory.

Server

cd server

# dev
npm run dev

# build
npm run build

server/dist/cli.js is the MCP server entry.

Contributing

Add a new tool

  1. Add the tool schema to the tools array in server/src/tools.ts.
  2. Add a extension callable handler in extension/calls.ts.
  3. Add a tool handler in server/src/tools.ts. Use the call function to call the extension handler.

License

AGPL-3.0-or-later

browser-mcp FAQ

How do I install the browser-mcp server?
Install via npm using 'npx @djyde/mcp-browser@latest' and configure the browser extension.
Can browser-mcp modify the appearance of web pages?
Yes, it can append CSS styles to the current page to change its look, such as enabling dark mode.
How does browser-mcp extract content from web pages?
It provides a tool to get the current page content as markdown for easy summarization or processing.
Is browser-mcp compatible with multiple browsers?
It is designed as a browser extension, with plans to publish to extension stores for broad compatibility.
Can I search my browser history using browser-mcp?
Yes, it includes a tool to search browser history by keywords or phrases.
What kind of workflows can browser-mcp enable?
It enables workflows like summarizing pages, style customization, and history search integrated with LLMs.
Does browser-mcp support secure and scoped interactions?
Yes, it follows MCP principles for secure, scoped, and observable model interactions within the browser context.
What programming environment is required to run browser-mcp?
Node.js environment with npm support is required to run the MCP server component.