Oxylabs Web Scraping MCP server

Integrates with Oxylabs web scraping services to extract, clean, and structure web content for real-time data analysis and monitoring workflows.
Back to servers
Setup instructions
Provider
Oxylabs
Release date
Mar 18, 2025
Language
Python
Package
Stats
53.6K downloads
71 stars

The Oxylabs MCP server provides a bridge between AI models and the web, enabling data extraction from any website. It delivers clean, structured data from any site through a unified API, allowing AI models to effectively interact with web content.

Installation and Configuration

Prerequisites

Before starting, you need at least one of the following:

  • Oxylabs Web Scraper API Account: Get your username and password from Oxylabs (1-week free trial available)
  • Oxylabs AI Studio API Key: Obtain your API key from Oxylabs AI Studio (1000 credits free)

Environment Variables

The server uses these environment variables:

Name Description Default
OXYLABS_USERNAME Your Oxylabs Web Scraper API username
OXYLABS_PASSWORD Your Oxylabs Web Scraper API password
OXYLABS_AI_STUDIO_API_KEY Your Oxylabs AI Studio API key
LOG_LEVEL Log level for client logs INFO

Important: Delete any environment variable placeholders you don't have credentials for. Leaving placeholder values will result in non-functional tools.

Installation with uvx

  1. Install the uvx package manager:

    # macOS and Linux
    curl -LsSf https://astral.sh/uv/install.sh | sh
    

    Or for Windows:

    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    
  2. Use this configuration:

    {
      "mcpServers": {
        "oxylabs": {
          "command": "uvx",
          "args": ["oxylabs-mcp"],
          "env": {
            "OXYLABS_USERNAME": "OXYLABS_USERNAME",
            "OXYLABS_PASSWORD": "OXYLABS_PASSWORD",
            "OXYLABS_AI_STUDIO_API_KEY": "OXYLABS_AI_STUDIO_API_KEY"
          }
        }
      }
    }
    

Installation with uv

  1. Install the uv package manager:

    # macOS and Linux
    curl -LsSf https://astral.sh/uv/install.sh | sh
    

    Or for Windows:

    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    
  2. Use this configuration:

    {
      "mcpServers": {
        "oxylabs": {
          "command": "uv",
          "args": [
            "--directory",
            "/<Absolute-path-to-folder>/oxylabs-mcp",
            "run",
            "oxylabs-mcp"
          ],
          "env": {
            "OXYLABS_USERNAME": "OXYLABS_USERNAME",
            "OXYLABS_PASSWORD": "OXYLABS_PASSWORD",
            "OXYLABS_AI_STUDIO_API_KEY": "OXYLABS_AI_STUDIO_API_KEY"
          }
        }
      }
    }
    

Configure with Smithery OAuth2

  1. Go to https://smithery.ai/server/@oxylabs/oxylabs-mcp
  2. Click Auto to install the configuration for your client
  3. Or use this configuration:
    {
      "mcpServers": {
        "oxylabs": {
          "url": "https://server.smithery.ai/@oxylabs/oxylabs-mcp/mcp"
        }
      }
    }
    
  4. Follow instructions to authenticate with OAuth2

Configure with Smithery Query Parameters

If your client doesn't support OAuth2 authentication:

{
  "mcpServers": {
    "oxylabs": {
      "url": "https://server.smithery.ai/@oxylabs/oxylabs-mcp/mcp?oxylabsUsername=OXYLABS_USERNAME&oxylabsPassword=OXYLABS_PASSWORD&oxylabsAiStudioApiKey=OXYLABS_AI_STUDIO_API_KEY"
    }
  }
}

Setup with Claude Desktop

Navigate to Claude → Settings → Developer → Edit Config and add one of the configurations above to the claude_desktop_config.json file.

Setup with Cursor AI

Navigate to Cursor → Settings → Cursor Settings → MCP. Click Add new global MCP server and add one of the configurations above.

Available Tools

Oxylabs MCP provides two sets of tools that can be used together or independently:

Oxylabs Web Scraper API Tools

  1. universal_scraper: General website scraping
  2. google_search_scraper: Extract Google Search results
  3. amazon_search_scraper: Scrape Amazon search result pages
  4. amazon_product_scraper: Extract data from Amazon product pages

Oxylabs AI Studio Tools

  1. ai_scraper: Scrape content in JSON or Markdown format with AI-powered extraction
  2. ai_crawler: Crawl a website across multiple pages based on a prompt
  3. ai_browser_agent: Control a browser based on a prompt and return data in various formats
  4. ai_search: Search the web for URLs and extract content with AI

Logging

The server provides additional information about tool calls in notification/message events:

{
  "method": "notifications/message",
  "params": {
    "level": "info",
    "data": "Create job with params: {\"url\": \"https://ip.oxylabs.io\"}"
  }
}
{
  "method": "notifications/message",
  "params": {
    "level": "info",
    "data": "Job info: job_id=7333113830223918081 job_status=done"
  }
}
{
  "method": "notifications/message",
  "params": {
    "level": "error",
    "data": "Error: request to Oxylabs API failed"
  }
}

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "oxylabs" '{"command":"uvx","args":["oxylabs-mcp"],"env":{"OXYLABS_USERNAME":"OXYLABS_USERNAME","OXYLABS_PASSWORD":"OXYLABS_PASSWORD"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "oxylabs": {
            "command": "uvx",
            "args": [
                "oxylabs-mcp"
            ],
            "env": {
                "OXYLABS_USERNAME": "OXYLABS_USERNAME",
                "OXYLABS_PASSWORD": "OXYLABS_PASSWORD"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "oxylabs": {
            "command": "uvx",
            "args": [
                "oxylabs-mcp"
            ],
            "env": {
                "OXYLABS_USERNAME": "OXYLABS_USERNAME",
                "OXYLABS_PASSWORD": "OXYLABS_PASSWORD"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later