mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-19 12:11:02 -04:00
[GH-ISSUE #342] [New Feature]: Add BrowserOS MCP support for better agent-controlled browsing #112
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Akalanka1337 on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/vxcontrol/pentagi/issues/342
Originally assigned to: @asdek on GitHub.
Target Component
External Integrations (LLM/Search APIs)
Enhancement Description
PentAGI currently has a browser tool that uses the external scraper service to fetch:
This is useful for basic extraction, but it is still mostly a request/response scraper flow. For modern web apps, the agent may need a more interactive browser: click buttons, fill forms, handle login pages, wait for JavaScript, inspect dynamic UI, and extract data after navigation.
Can we add optional BrowserOS MCP integration so PentAGI agents can control a real browser through MCP?
Current behavior
From reviewing the source code/doc, it looks like the current browser tool is implemented in:
backend/pkg/tools/browser.go/markdown,/html,/links, and/screenshotThis works for simple pages, but it is limited when the task needs real browser interaction. 🥹
Proposed feature
Add BrowserOS as an optional MCP browser backend. 💯
When enabled, PentAGI agents should be able to use BrowserOS MCP tools for actions like:
Why BrowserOS?
BrowserOS is an open-source AI browser with a built-in MCP server. It allows external AI clients to control the browser using MCP.
This could make PentAGI browsing easier and more reliable than only using the old scraper-style method.
Suggested config
Suggested modes
1. Scraper mode
Current behavior.
Use existing scraper endpoints:
/markdown/html/links/screenshot2. BrowserOS MCP mode 🥇
Use BrowserOS MCP as the main browser tool.
The agent can perform interactive browsing actions instead of only extracting static content.
3. Hybrid mode
Use the current scraper first for simple extraction.
If the scraper fails or the task needs interaction, fallback to BrowserOS MCP.
Example (Just my idea):
Example agent flow
Current flow:
New BrowserOS MCP flow:
Possible implementation idea
Add a browser backend interface:
Then keep the existing scraper implementation as one backend and add BrowserOS MCP as another backend.
Benefits 👍🏻
Safety considerations
Because PentAGI is a pentesting tool, BrowserOS MCP should be controlled safely:
Acceptance criteria
Technical Details
No response
Designs and Mockups
No response
Alternative Solutions
No response
Verification