About browser-mcp
browser-mcp pairs a browser extension with an MCP server so MCP clients can interact with the browser in use. It suits users who want an LLM to read web pages or change how they look. The project is licensed under AGPL-3.0-or-later.
Key features
- 01Get current page content as Markdown
- 02Append CSS styles to the current page
- 03Search browser history
Use cases
- 01Asking the LLM to summarize the page currently open
- 02Switching the current page to dark mode
- 03Finding previously visited pages by keyword
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEbrowser-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.
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
- Add the tool schema to the
toolsarray inserver/src/tools.ts. - Add a extension callable handler in
extension/calls.ts. - Add a tool handler in
server/src/tools.ts. Use thecallfunction to call the extension handler.
License
AGPL-3.0-or-later
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.