Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-oxylabs-web-api-mcp": {
"command": "uvx",
"args": [
"oxylabs-web-api-mcp"
],
"env": {
"OXYLABS_WEB_API_KEY": "<YOUR_VALUE>",
"HOST": "127.0.0.1",
"PORT": "8080",
"MCP_TRANSPORT": "stdio",
"OXYLABS_SPILL": "1",
"OXYLABS_RETRIES": "2",
"OXYLABS_BASE_URL": "https://webapi.oxylabs.io",
"OXYLABS_ENV_FILE": "<VALUE>",
"MCP_ALLOWED_HOSTS": "localhost:*,127.0.0.1:*",
"OXYLABS_SPILL_DIR": "<VALUE>",
"OXYLABS_RATE_LIMIT": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "",
"OXYLABS_MAX_INLINE_TOKENS": "10000"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-oxylabs-web-api-mcp": {
"command": "uvx",
"args": [
"oxylabs-web-api-mcp"
],
"env": {
"OXYLABS_WEB_API_KEY": "<YOUR_VALUE>",
"HOST": "127.0.0.1",
"PORT": "8080",
"MCP_TRANSPORT": "stdio",
"OXYLABS_SPILL": "1",
"OXYLABS_RETRIES": "2",
"OXYLABS_BASE_URL": "https://webapi.oxylabs.io",
"OXYLABS_ENV_FILE": "<VALUE>",
"MCP_ALLOWED_HOSTS": "localhost:*,127.0.0.1:*",
"OXYLABS_SPILL_DIR": "<VALUE>",
"OXYLABS_RATE_LIMIT": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "",
"OXYLABS_MAX_INLINE_TOKENS": "10000"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-oxylabs-web-api-mcp": {
"command": "uvx",
"args": [
"oxylabs-web-api-mcp"
],
"env": {
"OXYLABS_WEB_API_KEY": "<YOUR_VALUE>",
"HOST": "127.0.0.1",
"PORT": "8080",
"MCP_TRANSPORT": "stdio",
"OXYLABS_SPILL": "1",
"OXYLABS_RETRIES": "2",
"OXYLABS_BASE_URL": "https://webapi.oxylabs.io",
"OXYLABS_ENV_FILE": "<VALUE>",
"MCP_ALLOWED_HOSTS": "localhost:*,127.0.0.1:*",
"OXYLABS_SPILL_DIR": "<VALUE>",
"OXYLABS_RATE_LIMIT": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "",
"OXYLABS_MAX_INLINE_TOKENS": "10000"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-oxylabs-web-api-mcp": {
"command": "uvx",
"args": [
"oxylabs-web-api-mcp"
],
"env": {
"OXYLABS_WEB_API_KEY": "<YOUR_VALUE>",
"HOST": "127.0.0.1",
"PORT": "8080",
"MCP_TRANSPORT": "stdio",
"OXYLABS_SPILL": "1",
"OXYLABS_RETRIES": "2",
"OXYLABS_BASE_URL": "https://webapi.oxylabs.io",
"OXYLABS_ENV_FILE": "<VALUE>",
"MCP_ALLOWED_HOSTS": "localhost:*,127.0.0.1:*",
"OXYLABS_SPILL_DIR": "<VALUE>",
"OXYLABS_RATE_LIMIT": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "",
"OXYLABS_MAX_INLINE_TOKENS": "10000"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-oxylabs-web-api-mcp": {
"command": "uvx",
"args": [
"oxylabs-web-api-mcp"
],
"env": {
"OXYLABS_WEB_API_KEY": "<YOUR_VALUE>",
"HOST": "127.0.0.1",
"PORT": "8080",
"MCP_TRANSPORT": "stdio",
"OXYLABS_SPILL": "1",
"OXYLABS_RETRIES": "2",
"OXYLABS_BASE_URL": "https://webapi.oxylabs.io",
"OXYLABS_ENV_FILE": "<VALUE>",
"MCP_ALLOWED_HOSTS": "localhost:*,127.0.0.1:*",
"OXYLABS_SPILL_DIR": "<VALUE>",
"OXYLABS_RATE_LIMIT": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "",
"OXYLABS_MAX_INLINE_TOKENS": "10000"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-oxylabs-web-api-mcp": {
"command": "uvx",
"args": [
"oxylabs-web-api-mcp"
],
"env": {
"OXYLABS_WEB_API_KEY": "<YOUR_VALUE>",
"HOST": "127.0.0.1",
"PORT": "8080",
"MCP_TRANSPORT": "stdio",
"OXYLABS_SPILL": "1",
"OXYLABS_RETRIES": "2",
"OXYLABS_BASE_URL": "https://webapi.oxylabs.io",
"OXYLABS_ENV_FILE": "<VALUE>",
"MCP_ALLOWED_HOSTS": "localhost:*,127.0.0.1:*",
"OXYLABS_SPILL_DIR": "<VALUE>",
"OXYLABS_RATE_LIMIT": "<VALUE>",
"MCP_ALLOWED_ORIGINS": "",
"OXYLABS_MAX_INLINE_TOKENS": "10000"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| OXYLABS_WEB_API_KEY secret | Yes | Oxylabs Web API key, sent as `Authorization: Bearer <key>`. Required on stdio. Over HTTP, a per-request Authorization header takes precedence, so this environment value is a fallback. |
| HOST | No | HTTP transport bind address. Default: 127.0.0.1 |
| PORT | No | HTTP transport bind port. Default: 8080 |
| MCP_TRANSPORT | No | Transport to use: `stdio` or `http`. Default: stdio |
| OXYLABS_SPILL | No | Set to `0` to keep everything inline even on stdio. Default: 1 |
| OXYLABS_RETRIES | No | Number of retries on transient errors. Default: 2 |
| OXYLABS_BASE_URL | No | Override the Web API base URL, e.g. to go through a proxy. Default: https://webapi.oxylabs.io |
| OXYLABS_ENV_FILE | No | Path to a .env file. On stdio, OXYLABS_* values not already set in the environment are read from this file. |
| MCP_ALLOWED_HOSTS | No | Comma-separated Host allowlist for the HTTP transport. Required when clients connect using a hostname other than localhost/127.0.0.1; `host:*` matches any port on that host. Default: localhost:*,127.0.0.1:* |
| OXYLABS_SPILL_DIR | No | Directory where offloaded pages, company lists, and screenshots are written (stdio only). Defaults to a per-user directory in the system temp directory. |
| OXYLABS_RATE_LIMIT | No | Cap what each API key spends through this server, e.g. `100/1h` or `50/30m`. Off by default. Each URL or query in a batch counts as one scrape. |
| MCP_ALLOWED_ORIGINS | No | Comma-separated Origin allowlist for browser clients (HTTP only). Empty by default. |
| OXYLABS_MAX_INLINE_TOKENS | No | Token budget for one reply; content beyond it is offloaded on stdio or truncated over HTTP. Default: 10000 |
Remote headers
HTTP headers the remote endpoint expects.
| Name | Required | Description |
|---|---|---|
| Authorization secret | Yes | Oxylabs Web API key, from a Web API instance in the Oxylabs dashboard. |