Skip to main content

Oxylabs + MCP

Oxylabs AI Studio MCP Server

Licence


📖 Overview

The Oxylabs AI Studio MCP server provides various AI tools for your agents.:

  • Scrape: Allows getting content from any url in json or markdown format.
  • Crawl: Based on prompt crawls a website and collects data in markdown or json format.
  • Browser Agent: Given a task, agent controls a browser to achieve given object and returns data in markdown, json, html or screenshot formats.
  • Search: Allows search the web for urls and their contents.

✅ Prerequisites

Obtain your Api Key from Oxylabs AI Studio dashboard:

Basic Usage

Python >=3.10+ To run the server best to use uv:

  • install it using this guide
  • To setup with cursor the easiest way is to use uvx.

cursor uvx

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

You can also pull the project and run it locally with uv in cursor:
{
  "mcpServers": {
    "oxylabs-ai-studio": {
      "command": "uv",
      "args": [
        "--directory",
        "/<absolute-path-to-folder>/oxylabs-ai-studio-mcp",
        "run",
        "oxylabs-ai-studio-mcp"
      ],
      "env": {
        "OXYLABS_AI_STUDIO_API_KEY": "OXYLABS_AI_STUDIO_API_KEY"
      }
    }
  }
}

Agent example:

import os
import asyncio

from pydantic_ai import Agent
from pydantic_ai.mcp import MCPServerStdio

server = MCPServerStdio(  
    'uvx',
    args=[
          'oxylabs-ai-studio-mcp',
    ],
    env={
        "OXYLABS_AI_STUDIO_API_KEY": "<your_api_key>",
    },
)
# requires OPENAI_API_KEY to be set.
agent = Agent('openai:gpt-4o', mcp_servers=[server])


async def main():
   
    async with agent.run_mcp_servers():
        result = await agent.run('Got to oxylabs careers page and first first available job and return the job title and description.')
        print(result.output)

if __name__ == "__main__":
    asyncio.run(main())

Metadata

Release files for oxylabs-ai-studio-mcp 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oxylabs-ai-studio-mcp 0.1.4
File Size Uploaded
oxylabs_ai_studio_mcp-0.1.4.tar.gz 74.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oxylabs-ai-studio-mcp 0.1.4
File Interpreter ABI Platform
oxylabs_ai_studio_mcp-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 80.7 kB

Release files / oxylabs_ai_studio_mcp-0.1.4.tar.gz

Download URL oxylabs_ai_studio_mcp-0.1.4.tar.gz
Size 74.8 kB
Tags Source
SHA-256 checksum
How to use checksums
824642a21137a7fa262af3581019d9d2ef41e0562c18355443f33ca0d3b6f6c3
BLAKE2b-256 checksum
How to use checksums
97b594f2a7421eda26b35b17d14e97185ef74293079a333c5d5550ccf000a2b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release files / oxylabs_ai_studio_mcp-0.1.4-py3-none-any.whl

Download URL oxylabs_ai_studio_mcp-0.1.4-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d13b1b8f6f18108c34768552a437a0bae36b3486f0f7c07feb298716e246b3f7
BLAKE2b-256 checksum
How to use checksums
382edbf8b60d9f26cf2dc4324b58b50055683cfb51483975ba63647978f0d37f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page