How brightdata/brightdata-mcp works
Bright Data MCP exposes web-data and browser capabilities to MCP-compatible agents. The main workflow is a client tool request routed by the server into search, page fetching, structured scraper collection, or browser actions, then returned as a tool result; scraper jobs additionally expose progress and results. The graph includes documented LLM response collection and dataset tools. Source excerpts show key orchestration and browser/session details, but not every runtime path, so unsampled subsystem links are omitted where their wiring is uncertain.
Main entry points: server.js Tool server · errors.js Error formatting · scraper_tools.js Scraper tools · browser_tools.js Browser actions
Components 20
MCP orchestration
- Tool server
server.js - Tool groups
tool_groups.js
Web data tools
- Web search
search_utils.js - Page fetch
fetch_api.js - Dataset search
search_dataset_schema.js - Scraper catalog
scraper_catalog.js - Scraper tools
scraper_tools.js - Scraper execution
scraper_run.js - LLM responses
sophie_assistant.js
Browser automation
- Browser actions
browser_tools.js - Browser sessions
browser_session.js - Browser rules
browser_rules.js - ARIA filtering
aria_snapshot_filter.js
Safety and errors
- Content approval gate
content_gate.js - Untrusted content
untrusted_content.js - Error formatting
errors.js - Credential redaction
safe_error.js
Other components
- MCP client / agent
- Bright Data APIs
- Remote browser
Connections 23
- MCP client / agent → Tool server: invokes tools
README.md - Tool server → Tool groups: resolves tools
server.js - Tool server → Web search: runs searches
server.js - Tool server → Page fetch: fetches pages
server.js - Tool server → Dataset search: validates dataset filters
server.js - Tool server → Scraper tools: registers scraper tools
server.js - Scraper tools → Scraper catalog: looks up scrapers
scraper_tools.js - Scraper tools → Scraper execution: runs collections
scraper_tools.js - Tool server → LLM responses: requests answers
server.js - Tool server → Browser actions: registers browser tools
server.js - Browser actions → Browser sessions: uses sessions
browser_tools.js - Browser sessions → ARIA filtering: filters snapshots
browser_session.js - Browser sessions → Remote browser: connects over CDP
browser_session.js - Tool server → Browser rules: applies tool rules
server.js - Tool server → Content approval gate: gates page results
server.js - Tool server → Untrusted content: handles untrusted text
server.js - Tool server → Error formatting: formats failures
server.js - Tool server → Credential redaction: redacts failures
server.js - Web search → Error formatting: formats tool errors
search_utils.js - Page fetch → Error formatting: formats API errors
fetch_api.js - Error formatting → Credential redaction: redacts URLs
errors.js - Tool server → Bright Data APIs: calls service APIs
server.js - Browser actions → Bright Data APIs: gets browser credentials
browser_tools.js