Hosted MCP

1

Get your API token

  1. Go to Bright Data user settings
  2. Copy your API token (it looks like: 2dceb1aa0***************************)
2

Configure your MCP server

from openai import OpenAI

client = OpenAI()

resp = client.responses.create(
  model="gpt-4o",
  tools=[
    {
      "type": "mcp",
      "server_label": "BrightData",
      "server_url": "https://mcp.brightdata.com/sse?token=API_TOKEN",
      "require_approval": "never",
    },
  ],
  input="What is the weather in Paris ?",
)

print(resp.output_text)
3

Test it works

  1. Ask your AI: “Can you search Google for ‘weather today’?”
  2. You should see results!
4

Monitor usage

  1. View your API usage at My Zones in your Bright Data dashboard
  2. Your free tier includes 5,000 requests per month