0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/integrations/brightdata
History 2026-10-22 14:33:21 +02:00
..
src feat(core): run agentic loop on the evented workflow engine (#16796) 2026-06-09 00:13:36 +01:00
CHANGELOG.md chore: version - exit prerelease mode 2026-10-21 11:26:39 +00:00
lint-staged.config.js refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
package.json chore(deps): update build tools (#27997) 2026-10-22 14:33:21 +02:00
README.md chore(*): Update/unify/add READMEs (#22858) 2026-09-02 14:36:59 +02:00
tsconfig.build.json feat(integrations): add brightdata integration (#16392) 2026-05-11 19:47:41 -04:00
tsconfig.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
tsdown.config.ts chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
turbo.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
vitest.config.ts feat(integrations): add brightdata integration (#16392) 2026-05-11 19:47:41 -04:00

@mastra/brightdata

Bright Data web search and web fetch tools for Mastra agents.

Backed by the official @brightdata/sdk. Bright Data's SERP API and Web Unlocker bypass bot detection and CAPTCHAs, so the tools work on sites that block typical scrapers.

Installation

npm install @mastra/brightdata

Usage

Set BRIGHTDATA_API_TOKEN and configure the Bright Data zones used by the tools.

import { createBrightDataTools } from '@mastra/brightdata';
import { Agent } from '@mastra/core/agent';

const { webSearch, webFetch } = createBrightDataTools();

export const researchAgent = new Agent({
  id: 'research-agent',
  name: 'Research Agent',
  model: 'openai/gpt-5.6-sol',
  instructions: 'Search for relevant pages, then fetch the best sources before answering.',
  tools: { webSearch, webFetch },
});

Documentation

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.