browser-mcp

by djyde

Integrations

  • Provides tools to manipulate and append CSS styles to web pages, including the ability to implement dark mode and other style changes.

  • Enables interaction with Firefox browser, allowing for retrieving page content, modifying CSS styles, and searching browser history.

  • Mentioned in examples for history search functionality, allowing search through browser history for GitHub-related visits.

browser-mcp

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

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.

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

-
security - not tested
F
license - not found
-
quality - not tested

A MCP server that allows AI assistants to interact with the browser, including getting page content as markdown, modifying page styles, and searching browser history.

  1. Usage
    1. Tools
      1. get_current_page_markdown
      2. append_style
      3. history_search
    2. Roadmap
      1. Build
        1. Extension
      2. Server
        1. Contributing
          1. Add a new tool
        2. License

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A headless browser MCP server that allows AI agents to fetch web content and perform Google searches without API keys, supporting various output formats like Markdown, JSON, HTML, and text.
            Last updated -
            2
            4
            TypeScript
            MIT License
          • A
            security
            F
            license
            A
            quality
            An MCP protocol server that enables web search functionality using the Tavily API, allowing AI assistants to perform internet searches in real-time.
            Last updated -
            4
            2
            Python
          • -
            security
            A
            license
            -
            quality
            An MCP server that helps AI assistants access text content from websites that implement bot detection, bridging the gap between what you can see in your browser and what the AI can access.
            Last updated -
            1
            Python
            Apache 2.0
          • -
            security
            A
            license
            -
            quality
            An MCP server that enables AI assistants to control a web browser through natural language commands, allowing them to navigate websites and extract information via SSE transport.
            Last updated -
            387
            Python
            MIT License
            • Apple

          View all related MCP servers

          ID: no0ntst2o9