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.
  • 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())

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.4.tar.gz (74.8 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.4-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oxylabs_ai_studio_mcp-0.1.4.tar.gz
  • Upload date:
  • Size: 74.8 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.4.tar.gz
Algorithm Hash digest
SHA256 824642a21137a7fa262af3581019d9d2ef41e0562c18355443f33ca0d3b6f6c3
MD5 3336c0733a56e0f04f8002c812d1855f
BLAKE2b-256 97b594f2a7421eda26b35b17d14e97185ef74293079a333c5d5550ccf000a2b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for oxylabs_ai_studio_mcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d13b1b8f6f18108c34768552a437a0bae36b3486f0f7c07feb298716e246b3f7
MD5 59f4085018be2a6d99203a7812458d99
BLAKE2b-256 382edbf8b60d9f26cf2dc4324b58b50055683cfb51483975ba63647978f0d37f

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