Skip to main content

oxylabs ai studio mcp server

Project description

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.

✅ 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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oxylabs_ai_studio_mcp-0.1.2.tar.gz (65.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oxylabs_ai_studio_mcp-0.1.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file oxylabs_ai_studio_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: oxylabs_ai_studio_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 65.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for oxylabs_ai_studio_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 558b588e16f127f67d5cfaecaa1bad2647c309bba1bd827ba364f79dcaab3c3b
MD5 b1ab0dce7a62d9d0cfbef2a6654207ae
BLAKE2b-256 9cc55f2f98ad71184033563dea910d134c652f4df4ffd9ba76b101b3469c1a6c

See more details on using hashes here.

File details

Details for the file oxylabs_ai_studio_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for oxylabs_ai_studio_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b7e9dbf4b6d0e6a82e4c6c5e67c6347ff045e49f84ac1602656f88f85df0b3b6
MD5 e7c9a1cadda3fb655b2f0006057bd418
BLAKE2b-256 0c5fa6be98565f4a4a20c1062924fc4264b98ba7e9d8b00a650ea4d5a3ac4b0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page