Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Add Gemini 3.1 Pro and Inception Mercury-2 model support (#4847)
Suchintane1c5e5c913a9
diff --git a/docs/docs.json b/docs/docs.jsonindex 956b8ff42..147d8e487 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -58,7 +58,8 @@"going-to-production/error-handling","going-to-production/reliability-tips","going-to-production/captcha-bot-detection",- "integrations/mcp"+ "integrations/mcp",+ "integrations/cli"]},{diff --git a/docs/integrations/cli.mdx b/docs/integrations/cli.mdxnew file mode 100644index 000000000..4d99d2424--- /dev/null+++ b/docs/integrations/cli.mdx@@ -0,0 +1,245 @@+{/* This file (docs/) and fern/integrations/cli.mdx must stay in sync. docs/ is for Mintlify, fern/ is for Fern. */}+---+title: CLI & Skills+subtitle: Automate browsers and manage workflows from the command line+slug: going-to-production/cli+---++The `skyvern` CLI gives you direct access to browser automation, workflow management, credential storage, and more — all from your terminal. Use it in shell scripts, CI/CD pipelines, or for quick one-off tasks.++## Install++```bash+pip install skyvern+```++Set your API key:++```bash+export SKYVERN_API_KEY="YOUR_KEY" # get one at https://app.skyvern.com+```++Optionally run the interactive setup wizard to configure your environment:++```bash+skyvern init+```++## Command reference++### Services++```bash+skyvern run server # Start the local API server+skyvern run mcp # Start the MCP server (stdio transport)+skyvern run mcp --http # Start the MCP server (HTTP transport)+skyvern status # Check if services are running+skyvern stop # Stop running services+```++### Browser automation++All browser commands operate on an active session. Create one first, then run actions against it.++```bash+# Session management+skyvern browser session create # Start a cloud browser session+skyvern browser session create --timeout 30 # Custom timeout (minutes)+skyvern browser session list # List active sessions+skyvern browser session get --session pbs_xxx+skyvern browser session connect --cdp ws://localhost:9222 # Connect to local Chrome+skyvern browser session close # Close the active session++# Navigation+skyvern browser navigate --url https://example.com++# AI-powered actions+skyvern browser act --prompt "Click the Sign In button"+skyvern browser extract --prompt "Get all product names and prices"+skyvern browser validate --prompt "Is the user logged in?"++# Precision actions (CSS/XPath selectors or natural language intent)+skyvern browser click --selector "#submit-btn"+skyvern browser click --intent "the checkout button"+skyvern browser type --selector "#email" --text "[email protected]"+skyvern browser select --selector "#country" --value "US"+skyvern browser scroll --direction down --amount 500+skyvern browser press-key --key Enter+skyvern browser hover --selector ".menu-item"+skyvern browser wait --selector "#results" --state visible++# Screenshots+skyvern browser screenshot+skyvern browser screenshot --full-page --output page.png++# Run JavaScript+skyvern browser evaluate --expression "document.title"++# Full task automation (multi-step agent)+skyvern browser run-task --prompt "Find the cheapest flight from NYC to LA"+skyvern browser login --url https://app.example.com --credential-id cred_xxx+```++<Tip>+Every browser command supports `--json` for machine-readable output, and `--session` / `--cdp` to target a specific session. If omitted, the CLI uses the last active session automatically.+</Tip>++### Workflows++```bash+skyvern workflow list # List all workflows+skyvern workflow get --workflow-id wpid_xxx # Get workflow details+skyvern workflow create --file workflow.json # Create from JSON definition+skyvern workflow update --workflow-id wpid_xxx --file updated.json+skyvern workflow delete --workflow-id wpid_xxx+skyvern workflow run --workflow-id wpid_xxx # Execute a workflow+skyvern workflow run --workflow-id wpid_xxx --params '{"url": "https://example.com"}'+skyvern workflow status --run-id wr_xxx # Check run status+skyvern workflow cancel --run-id wr_xxx # Cancel a running workflow+```++### Credentials++Credentials are created interactively via stdin so secrets never appear in shell history.++```bash+skyvern credentials add # Interactive credential creation (password or credit card)+skyvern credential list # List stored credentials+skyvern credential get --id cred_xxx+skyvern credential delete --id cred_xxx+```++Note: `credentials` (plural) is used for the interactive `add` command; `credential` (singular) for list/get/delete. Both forms are intentional.++### Workflow blocks++```bash+skyvern block schema --block-type task # Show the JSON schema for a block type+skyvern block validate --file block.json # Validate a block definition+```++### MCP setup++Register Skyvern's MCP server with your AI coding tool in one command:++```bash+skyvern setup claude-code # Register with Claude Code (global)+skyvern setup claude-code --project # Register with Claude Code (project-level)+skyvern setup claude-desktop # Register with Claude Desktop+skyvern setup cursor # Register with Cursor+skyvern setup windsurf # Register with Windsurf+skyvern setup codex # Register with Codex+```++### Other++```bash+skyvern docs # Open documentation in your browser+skyvern quickstart # One-command setup + start+skyvern init browser # Initialize browser configuration only+```++## CLI vs MCP: when to use which++| Use case | CLI | MCP |+|----------|-----|-----|+| Shell scripts and CI/CD | Yes | No |+| One-off browser tasks | Yes | Yes |+| AI assistant integration (Claude, Cursor, Codex) | No | Yes |+| Credential creation (secrets via stdin) | Yes | No |+| Starting/stopping services | Yes | No |+| Composing with Unix pipes (`--json` output) | Yes | No |+| Natural language orchestration by an AI agent | No | Yes |++The CLI and MCP server share the same underlying logic. The CLI is for humans and scripts; MCP is for AI assistants that call tools programmatically.++## Skills++Skills are bundled reference markdown files that teach AI coding tools how to use Skyvern. They are **not** the same as MCP tools — they are documentation that an AI agent can load to learn the CLI and API.++```bash+skyvern skill list # List available skills+skyvern skill show skyvern # Render a skill in the terminal+skyvern skill path skyvern # Print the absolute path to a skill file+skyvern skill path # Print the skills directory+skyvern skill copy --output ./docs # Copy all skills to a local directory+skyvern skill copy skyvern -o . # Copy a single skill+```++<Accordion title="Loading skills into AI tools">++Skills are plain markdown files. You can load them into any AI coding tool that supports custom instructions:++**Claude Code** — add the skill path as a custom instructions file or use `skyvern setup claude-code` which configures MCP (the richer integration path).++**Codex** — copy the skill into your project's `.codex/skills/` directory:++```bash+skyvern skill copy skyvern -o .codex/skills/+```++**Any tool** — point your tool at the file path returned by `skyvern skill path skyvern`.++</Accordion>++## JSON output++All commands support `--json` for structured output, making it easy to compose with `jq` and other tools:++```bash+# Extract the session ID from a new session+SESSION=$(skyvern browser session create --json | jq -r '.session_id')++# Extract data and pipe to a file+skyvern browser extract --prompt "Get all links" --json | jq '.extracted' > links.json++# Check workflow run status in a script+STATUS=$(skyvern workflow status --run-id wr_xxx --json | jq -r '.status')+```++## Troubleshooting++<Accordion title="Command not found: skyvern">+Make sure the package is installed and on your PATH:++```bash+pip install skyvern+which skyvern+```++If using a virtual environment, activate it first. You can also run via module:++```bash+python3 -m skyvern --help+```+</Accordion>++<Accordion title="Authentication errors">+Verify your API key is set:++```bash+echo $SKYVERN_API_KEY+```++You can also pass it directly:++```bash+skyvern credentials add --api-key YOUR_KEY+```++Get an API key from [Settings](https://app.skyvern.com/settings/api-keys) in the Skyvern dashboard.+</Accordion>++<Accordion title="No active browser session">+Browser commands require an active session. Create one first:++```bash+skyvern browser session create+```++Or specify a session explicitly:++```bash+skyvern browser navigate --url https://example.com --session pbs_xxx+```+</Accordion>diff --git a/docs/integrations/mcp.mdx b/docs/integrations/mcp.mdxindex 62231790c..508eca5a3 100644--- a/docs/integrations/mcp.mdx+++ b/docs/integrations/mcp.mdx@@ -1,3 +1,4 @@+{/* This file (docs/) and fern/integrations/mcp.mdx must stay in sync. docs/ is for Mintlify, fern/ is for Fern. Minor formatting differences (Tip vs inline text, CardGroup) are OK since the platforms support different components. */}---title: MCP Serversubtitle: Connect AI assistants to browser automation via Model Context Protocol@@ -6,171 +7,182 @@ slug: going-to-production/mcpThe Skyvern MCP server lets AI assistants like Claude Desktop, Claude Code, Codex, Cursor, and Windsurf control a browser. Your AI can fill out forms, extract data, download files, and run multi-step workflows, all through natural language.-<Note>-Local (stdio) mode requires Python 3.11, 3.12, or 3.13. Remote HTTP mode has no local dependencies.-</Note>-## What you can do-The MCP server exposes 31 tools across 5 categories:+The MCP server exposes 33 tools across 6 categories:| Category | Key tools | What they do ||----------|-----------|--------------|-| **Session management** | `session_create`, `session_close`, `session_list`, `session_connect` | Open, manage, and reuse browser sessions |-| **Browser actions** | `act`, `navigate`, `click`, `type`, `scroll`, `select_option`, `press_key`, `wait` | Control the browser with natural language or CSS/XPath selectors |-| **Data extraction** | `extract`, `screenshot`, `evaluate` | Pull structured data from pages, capture screenshots, run JavaScript |-| **Validation** | `validate` | Check page conditions using AI (returns true/false) |-| **Workflows** | `workflow_create`, `workflow_run`, `workflow_status`, `workflow_get`, `workflow_update`, `workflow_delete` | Build and execute multi-step automations |+| **Session management** | `skyvern_session_create`, `skyvern_session_close`, `skyvern_session_list`, `skyvern_session_connect` | Open, manage, and reuse browser sessions |+| **Browser actions** | `skyvern_act`, `skyvern_navigate`, `skyvern_click`, `skyvern_type`, `skyvern_scroll`, `skyvern_select_option`, `skyvern_press_key`, `skyvern_wait` | Control the browser with natural language or CSS/XPath selectors |+| **Data extraction** | `skyvern_extract`, `skyvern_screenshot`, `skyvern_evaluate` | Pull structured data from pages, capture screenshots, run JavaScript |+| **Validation** | `skyvern_validate` | Check page conditions using AI (returns true/false) |+| **Credentials** | `skyvern_credential_list`, `skyvern_credential_get`, `skyvern_credential_delete` | Look up stored credentials for login flows |+| **Workflows** | `skyvern_workflow_create`, `skyvern_workflow_run`, `skyvern_workflow_status`, `skyvern_workflow_get`, `skyvern_workflow_update`, `skyvern_workflow_delete` | Build and execute multi-step automations |++Your AI assistant decides which tools to call based on your instructions. For example, asking "go to Hacker News and get the top post title" triggers `skyvern_session_create`, `skyvern_navigate`, `skyvern_extract`, and `skyvern_session_close` automatically.-Your AI assistant decides which tools to call based on your instructions. For example, asking "go to Hacker News and get the top post title" triggers `session_create`, `navigate`, `extract`, and `session_close` automatically.+## Quick start-## Setup+Pick your client and follow the setup below. Get your API key from [Settings](https://app.skyvern.com) in the Skyvern dashboard.-### Option A: Setup wizard (recommended)+<Tabs>+<Tab title="Claude Code">```bash-pip install skyvern-skyvern init+claude mcp add-json skyvern '{"type":"streamable-http","url":"https://api.skyvern.com/mcp","headers":{"x-api-key":"YOUR_SKYVERN_API_KEY"}}' --scope user```-The wizard will:-1. Ask whether to use Skyvern Cloud or a local server-2. Configure your LLM provider (if local)-3. Detect your MCP clients (Claude Desktop, Cursor, Windsurf)-4. Write the MCP configuration file for each client automatically+</Tab>+<Tab title="Claude Desktop">-<Tip>-If you chose local mode, start the server before using MCP:+Add to your Claude Desktop config file (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS, `~/.config/Claude/claude_desktop_config.json` on Linux):-```bash-skyvern run server+```json+{+ "mcpServers": {+ "Skyvern": {+ "type": "streamable-http",+ "url": "https://api.skyvern.com/mcp",+ "headers": {+ "x-api-key": "YOUR_SKYVERN_API_KEY"+ }+ }+ }+}```-</Tip>--### Option B: Manual configuration (stdio — runs locally)-Each client has its own config file and format. Pick your client below.+</Tab>+<Tab title="Cursor">-<Accordion title="Claude Desktop / Cursor / Windsurf (JSON)">--Add to your client's config file (see config file locations table below):+Add to `~/.cursor/mcp.json`:```json{"mcpServers": {"Skyvern": {- "env": {- "SKYVERN_BASE_URL": "https://api.skyvern.com",- "SKYVERN_API_KEY": "YOUR_SKYVERN_API_KEY"- },- "command": "/usr/bin/python3",- "args": ["-m", "skyvern", "run", "mcp"]+ "type": "streamable-http",+ "url": "https://api.skyvern.com/mcp",+ "headers": {+ "x-api-key": "YOUR_SKYVERN_API_KEY"+ }}}}```-Replace `/usr/bin/python3` with the output of `which python3` on your machine. For local mode, set `SKYVERN_BASE_URL` to `http://localhost:8000`.--</Accordion>--<Accordion title="Claude Code (JSON)">+</Tab>+<Tab title="Windsurf">-Add to `.mcp.json` in your project root (version-controlled), or `~/.claude.json` for global config:+Add to `~/.codeium/windsurf/mcp_config.json`:```json{"mcpServers": {- "skyvern": {- "type": "stdio",- "command": "/usr/bin/python3",- "args": ["-m", "skyvern", "run", "mcp"],- "env": {- "SKYVERN_BASE_URL": "https://api.skyvern.com",- "SKYVERN_API_KEY": "YOUR_SKYVERN_API_KEY"+ "Skyvern": {+ "type": "streamable-http",+ "url": "https://api.skyvern.com/mcp",+ "headers": {+ "x-api-key": "YOUR_SKYVERN_API_KEY"}}}}```-Replace `/usr/bin/python3` with the output of `which python3`.--</Accordion>--<Accordion title="Codex (TOML)">+</Tab>+<Tab title="Codex">-Add to `~/.codex/config.toml` (global) or `.codex/config.toml` in a trusted project:+Add to `~/.codex/config.toml`:```toml[mcp_servers.skyvern]-command = "/usr/bin/python3"-args = ["-m", "skyvern", "run", "mcp"]+url = "https://api.skyvern.com/mcp"-[mcp_servers.skyvern.env]-SKYVERN_BASE_URL = "https://api.skyvern.com"-SKYVERN_API_KEY = "YOUR_SKYVERN_API_KEY"+[mcp_servers.skyvern.http_headers]+x-api-key = "YOUR_SKYVERN_API_KEY"```-Replace `/usr/bin/python3` with the output of `which python3`. You can also run `codex mcp add skyvern -- python3 -m skyvern run mcp` to add it interactively.+To load the API key from an environment variable instead, use `env_http_headers`:-</Accordion>+```toml+[mcp_servers.skyvern.env_http_headers]+x-api-key = "SKYVERN_API_KEY"+```++</Tab>+</Tabs>++That's it — no Python, no `pip install`, no local server. Your AI assistant connects directly to Skyvern Cloud over HTTPS.++## Alternative: Local mode (stdio)++If you prefer to run Skyvern locally or need to use your own LLM provider, use stdio transport instead. This requires Python 3.11, 3.12, or 3.13.-### Option C: Remote MCP over HTTPS (streamable HTTP) — recommended for cloud users+```bash+pip install skyvern+```-Connect directly to Skyvern's hosted MCP endpoint. No local Python installation required.+<Tabs>+<Tab title="Claude Code">-In remote HTTP mode:-- Clients must send `x-api-key` on every request.-- Use `skyvern_session_create` first, then pass `session_id` explicitly on subsequent browser tool calls.+```bash+claude mcp add --transport stdio skyvern \+ --env SKYVERN_BASE_URL=https://api.skyvern.com \+ --env SKYVERN_API_KEY=YOUR_SKYVERN_API_KEY \+ -- python3 -m skyvern run mcp+```++For a local server, set `SKYVERN_BASE_URL=http://localhost:8000`.-If your MCP client supports native remote HTTP transport, configure it directly.+</Tab>+<Tab title="Claude Desktop / Cursor / Windsurf">-<Accordion title="Claude Desktop / Cursor / Windsurf / Claude Code (JSON)">+Add to your client's config file:```json{"mcpServers": {"Skyvern": {- "type": "streamable-http",- "url": "https://api.skyvern.com/mcp",- "headers": {- "x-api-key": "YOUR_SKYVERN_API_KEY"+ "command": "/usr/bin/python3",+ "args": ["-m", "skyvern", "run", "mcp"],+ "env": {+ "SKYVERN_BASE_URL": "https://api.skyvern.com",+ "SKYVERN_API_KEY": "YOUR_SKYVERN_API_KEY"}}}}```-For Claude Code, add to `.mcp.json` in your project root or `~/.claude.json` globally.--</Accordion>+Replace `/usr/bin/python3` with the output of `which python3`. For a local server, set `SKYVERN_BASE_URL` to `http://localhost:8000`.-<Accordion title="Codex (TOML)">+</Tab>+<Tab title="Codex">```toml[mcp_servers.skyvern]-url = "https://api.skyvern.com/mcp"+command = "/usr/bin/python3"+args = ["-m", "skyvern", "run", "mcp"]-[mcp_servers.skyvern.env_http_headers]-x-api-key = "SKYVERN_API_KEY"+[mcp_servers.skyvern.env]+SKYVERN_BASE_URL = "https://api.skyvern.com"+SKYVERN_API_KEY = "YOUR_SKYVERN_API_KEY"```-Set the `SKYVERN_API_KEY` environment variable, or use `http_headers` for a static value:+Replace `/usr/bin/python3` with the output of `which python3`.-```toml-[mcp_servers.skyvern]-url = "https://api.skyvern.com/mcp"+</Tab>+</Tabs>-[mcp_servers.skyvern.http_headers]-x-api-key = "YOUR_SKYVERN_API_KEY"-```+<Tip>+You can also run `skyvern init` to auto-detect installed clients and write configs automatically.-</Accordion>+If using local mode, start the server before using MCP:-<Tip>-This is the simplest setup for Skyvern Cloud users — no Python, no `pip install`, just paste the config and go.-Get your API key from [Settings](https://app.skyvern.com) in the Skyvern dashboard.+```bash+skyvern run server+```</Tip><Accordion title="Config file locations by client">@@ -210,7 +222,7 @@ Get your API key from [Settings](https://app.skyvern.com) in the Skyvern dashboa## Troubleshooting-<Accordion title="Python version errors">+<Accordion title="Python version errors (local mode only)">The Skyvern MCP server requires Python 3.11, 3.12, or 3.13. Check your version with `python3 --version`. If you have multiple Python versions installed, make sure the `command` in your MCP config points to a supported version:```bash@@ -245,21 +257,3 @@ which python3Use the full absolute path (e.g., `/usr/bin/python3` or `/Users/you/.pyenv/shims/python3`), not just `python3`. Restart your MCP client after editing the config file.</Accordion>-## Next steps--<CardGroup cols={2}>- <Card- title="Run a Task"- icon="play"- href="/running-automations/run-a-task"- >- Learn the API for running browser automations- </Card>- <Card- title="API Quickstart"- icon="rocket"- href="/getting-started/quickstart"- >- Get started with the Skyvern SDK- </Card>-</CardGroup>diff --git a/fern/docs.yml b/fern/docs.ymlindex b996974ee..c5c916113 100644--- a/fern/docs.yml+++ b/fern/docs.yml@@ -146,8 +146,10 @@ navigation:path: observability/overview.mdx- section: Integrationscontents:- - page: Skyvern MCP+ - page: MCP Serverpath: integrations/mcp.mdx+ - page: CLI & Skills+ path: integrations/cli.mdx- page: Zapierpath: integrations/zapier.mdx- page: Makediff --git a/fern/integrations/cli.mdx b/fern/integrations/cli.mdxnew file mode 100644index 000000000..00ccc3c43--- /dev/null+++ b/fern/integrations/cli.mdx@@ -0,0 +1,245 @@+{/* This file (fern/) and docs/integrations/cli.mdx must stay in sync. fern/ is for Fern, docs/ is for Mintlify. */}+---+title: CLI & Skills+subtitle: Automate browsers and manage workflows from the command line+slug: integrations/cli+---++The `skyvern` CLI gives you direct access to browser automation, workflow management, credential storage, and more — all from your terminal. Use it in shell scripts, CI/CD pipelines, or for quick one-off tasks.++## Install++```bash+pip install skyvern+```++Set your API key:++```bash+export SKYVERN_API_KEY="YOUR_KEY" # get one at https://app.skyvern.com+```++Optionally run the interactive setup wizard to configure your environment:++```bash+skyvern init+```++## Command reference++### Services++```bash+skyvern run server # Start the local API server+skyvern run mcp # Start the MCP server (stdio transport)+skyvern run mcp --http # Start the MCP server (HTTP transport)+skyvern status # Check if services are running+skyvern stop # Stop running services+```++### Browser automation++All browser commands operate on an active session. Create one first, then run actions against it.++```bash+# Session management+skyvern browser session create # Start a cloud browser session+skyvern browser session create --timeout 30 # Custom timeout (minutes)+skyvern browser session list # List active sessions+skyvern browser session get --session pbs_xxx+skyvern browser session connect --cdp ws://localhost:9222 # Connect to local Chrome+skyvern browser session close # Close the active session++# Navigation+skyvern browser navigate --url https://example.com++# AI-powered actions+skyvern browser act --prompt "Click the Sign In button"+skyvern browser extract --prompt "Get all product names and prices"+skyvern browser validate --prompt "Is the user logged in?"++# Precision actions (CSS/XPath selectors or natural language intent)+skyvern browser click --selector "#submit-btn"+skyvern browser click --intent "the checkout button"+skyvern browser type --selector "#email" --text "[email protected]"+skyvern browser select --selector "#country" --value "US"+skyvern browser scroll --direction down --amount 500+skyvern browser press-key --key Enter+skyvern browser hover --selector ".menu-item"+skyvern browser wait --selector "#results" --state visible++# Screenshots+skyvern browser screenshot+skyvern browser screenshot --full-page --output page.png++# Run JavaScript+skyvern browser evaluate --expression "document.title"++# Full task automation (multi-step agent)+skyvern browser run-task --prompt "Find the cheapest flight from NYC to LA"+skyvern browser login --url https://app.example.com --credential-id cred_xxx+```++<Tip>+Every browser command supports `--json` for machine-readable output, and `--session` / `--cdp` to target a specific session. If omitted, the CLI uses the last active session automatically.+</Tip>++### Workflows++```bash+skyvern workflow list # List all workflows+skyvern workflow get --workflow-id wpid_xxx # Get workflow details+skyvern workflow create --file workflow.json # Create from JSON definition+skyvern workflow update --workflow-id wpid_xxx --file updated.json+skyvern workflow delete --workflow-id wpid_xxx+skyvern workflow run --workflow-id wpid_xxx # Execute a workflow+skyvern workflow run --workflow-id wpid_xxx --params '{"url": "https://example.com"}'+skyvern workflow status --run-id wr_xxx # Check run status+skyvern workflow cancel --run-id wr_xxx # Cancel a running workflow+```++### Credentials++Credentials are created interactively via stdin so secrets never appear in shell history.++```bash+skyvern credentials add # Interactive credential creation (password or credit card)+skyvern credential list # List stored credentials+skyvern credential get --id cred_xxx+skyvern credential delete --id cred_xxx+```++Note: `credentials` (plural) is used for the interactive `add` command; `credential` (singular) for list/get/delete. Both forms are intentional.++### Workflow blocks++```bash+skyvern block schema --block-type task # Show the JSON schema for a block type+skyvern block validate --file block.json # Validate a block definition+```++### MCP setup++Register Skyvern's MCP server with your AI coding tool in one command:++```bash+skyvern setup claude-code # Register with Claude Code (global)+skyvern setup claude-code --project # Register with Claude Code (project-level)+skyvern setup claude-desktop # Register with Claude Desktop+skyvern setup cursor # Register with Cursor+skyvern setup windsurf # Register with Windsurf+skyvern setup codex # Register with Codex+```++### Other++```bash+skyvern docs # Open documentation in your browser+skyvern quickstart # One-command setup + start+skyvern init browser # Initialize browser configuration only+```++## CLI vs MCP: when to use which++| Use case | CLI | MCP |+|----------|-----|-----|+| Shell scripts and CI/CD | Yes | No |+| One-off browser tasks | Yes | Yes |+| AI assistant integration (Claude, Cursor, Codex) | No | Yes |+| Credential creation (secrets via stdin) | Yes | No |+| Starting/stopping services | Yes | No |+| Composing with Unix pipes (`--json` output) | Yes | No |+| Natural language orchestration by an AI agent | No | Yes |++The CLI and MCP server share the same underlying logic. The CLI is for humans and scripts; MCP is for AI assistants that call tools programmatically.++## Skills++Skills are bundled reference markdown files that teach AI coding tools how to use Skyvern. They are **not** the same as MCP tools — they are documentation that an AI agent can load to learn the CLI and API.++```bash+skyvern skill list # List available skills+skyvern skill show skyvern # Render a skill in the terminal+skyvern skill path skyvern # Print the absolute path to a skill file+skyvern skill path # Print the skills directory+skyvern skill copy --output ./docs # Copy all skills to a local directory+skyvern skill copy skyvern -o . # Copy a single skill+```++<Accordion title="Loading skills into AI tools">++Skills are plain markdown files. You can load them into any AI coding tool that supports custom instructions:++**Claude Code** — add the skill path as a custom instructions file or use `skyvern setup claude-code` which configures MCP (the richer integration path).++**Codex** — copy the skill into your project's `.codex/skills/` directory:++```bash+skyvern skill copy skyvern -o .codex/skills/+```++**Any tool** — point your tool at the file path returned by `skyvern skill path skyvern`.++</Accordion>++## JSON output++All commands support `--json` for structured output, making it easy to compose with `jq` and other tools:++```bash+# Extract the session ID from a new session+SESSION=$(skyvern browser session create --json | jq -r '.session_id')++# Extract data and pipe to a file+skyvern browser extract --prompt "Get all links" --json | jq '.extracted' > links.json++# Check workflow run status in a script+STATUS=$(skyvern workflow status --run-id wr_xxx --json | jq -r '.status')+```++## Troubleshooting++<Accordion title="Command not found: skyvern">+Make sure the package is installed and on your PATH:++```bash+pip install skyvern+which skyvern+```++If using a virtual environment, activate it first. You can also run via module:++```bash+python3 -m skyvern --help+```+</Accordion>++<Accordion title="Authentication errors">+Verify your API key is set:++```bash+echo $SKYVERN_API_KEY+```++You can also pass it directly:++```bash+skyvern credentials add --api-key YOUR_KEY+```++Get an API key from [Settings](https://app.skyvern.com/settings/api-keys) in the Skyvern dashboard.+</Accordion>++<Accordion title="No active browser session">+Browser commands require an active session. Create one first:++```bash+skyvern browser session create+```++Or specify a session explicitly:++```bash+skyvern browser navigate --url https://example.com --session pbs_xxx+```+</Accordion>diff --git a/fern/integrations/mcp.mdx b/fern/integrations/mcp.mdxindex 57fa096ff..3ca55776b 100644--- a/fern/integrations/mcp.mdx+++ b/fern/integrations/mcp.mdx@@ -1,82 +1,262 @@+{/* This file (fern/) and docs/integrations/mcp.mdx must stay in sync. fern/ is for Fern, docs/ is for Mintlify. Minor formatting differences (Tip vs inline text, CardGroup) are OK since the platforms support different components. */}----title: Skyvern MCP+title: MCP Server+subtitle: Connect AI assistants to browser automation via Model Context Protocolslug: integrations/mcp----# Model Context Protocol (MCP)+The Skyvern MCP server lets AI assistants like Claude Desktop, Claude Code, Codex, Cursor, and Windsurf control a browser. Your AI can fill out forms, extract data, download files, and run multi-step workflows, all through natural language.-Skyvern's MCP server implementation helps connect your AI applications to the browser. This allows your AI applications to do things like: fill out forms, download files, research information on the web, and more.+## What you can do-You can connect your MCP-enabled applications to Skyvern in two ways:-1. **Local Skyvern Server**- - Use your favourite LLM to power Skyvern-2. **Skyvern Cloud**- - Create an account at [app.skyvern.com](https://app.skyvern.com)- - Get the API key from the settings page which will be used for setup+The MCP server exposes 33 tools across 6 categories:++| Category | Key tools | What they do |+|----------|-----------|--------------|+| **Session management** | `skyvern_session_create`, `skyvern_session_close`, `skyvern_session_list`, `skyvern_session_connect` | Open, manage, and reuse browser sessions |+| **Browser actions** | `skyvern_act`, `skyvern_navigate`, `skyvern_click`, `skyvern_type`, `skyvern_scroll`, `skyvern_select_option`, `skyvern_press_key`, `skyvern_wait` | Control the browser with natural language or CSS/XPath selectors |+| **Data extraction** | `skyvern_extract`, `skyvern_screenshot`, `skyvern_evaluate` | Pull structured data from pages, capture screenshots, run JavaScript |+| **Validation** | `skyvern_validate` | Check page conditions using AI (returns true/false) |+| **Credentials** | `skyvern_credential_list`, `skyvern_credential_get`, `skyvern_credential_delete` | Look up stored credentials for login flows |+| **Workflows** | `skyvern_workflow_create`, `skyvern_workflow_run`, `skyvern_workflow_status`, `skyvern_workflow_get`, `skyvern_workflow_update`, `skyvern_workflow_delete` | Build and execute multi-step automations |++Your AI assistant decides which tools to call based on your instructions. For example, asking "go to Hacker News and get the top post title" triggers `skyvern_session_create`, `skyvern_navigate`, `skyvern_extract`, and `skyvern_session_close` automatically.++## Quick start++Pick your client and follow the setup below. Get your API key from [Settings](https://app.skyvern.com) in the Skyvern dashboard.++<Tabs>+<Tab title="Claude Code">++```bash+claude mcp add-json skyvern '{"type":"streamable-http","url":"https://api.skyvern.com/mcp","headers":{"x-api-key":"YOUR_SKYVERN_API_KEY"}}' --scope user+```++</Tab>+<Tab title="Claude Desktop">++Add to your Claude Desktop config file (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS, `~/.config/Claude/claude_desktop_config.json` on Linux):++```json+{+ "mcpServers": {+ "Skyvern": {+ "type": "streamable-http",+ "url": "https://api.skyvern.com/mcp",+ "headers": {+ "x-api-key": "YOUR_SKYVERN_API_KEY"+ }+ }+ }+}+```++</Tab>+<Tab title="Cursor">++Add to `~/.cursor/mcp.json`:++```json+{+ "mcpServers": {+ "Skyvern": {+ "type": "streamable-http",+ "url": "https://api.skyvern.com/mcp",+ "headers": {+ "x-api-key": "YOUR_SKYVERN_API_KEY"+ }+ }+ }+}+```++</Tab>+<Tab title="Windsurf">++Add to `~/.codeium/windsurf/mcp_config.json`:++```json+{+ "mcpServers": {+ "Skyvern": {+ "type": "streamable-http",+ "url": "https://api.skyvern.com/mcp",+ "headers": {+ "x-api-key": "YOUR_SKYVERN_API_KEY"+ }+ }+ }+}+```++</Tab>+<Tab title="Codex">++Add to `~/.codex/config.toml`:++```toml+[mcp_servers.skyvern]+url = "https://api.skyvern.com/mcp"++[mcp_servers.skyvern.http_headers]+x-api-key = "YOUR_SKYVERN_API_KEY"+```++To load the API key from an environment variable instead, use `env_http_headers`:++```toml+[mcp_servers.skyvern.env_http_headers]+x-api-key = "SKYVERN_API_KEY"+```++</Tab>+</Tabs>++That's it — no Python, no `pip install`, no local server. Your AI assistant connects directly to Skyvern Cloud over HTTPS.++## Alternative: Local mode (stdio)++If you prefer to run Skyvern locally or need to use your own LLM provider, use stdio transport instead.-## Quickstart<Tip title="Supported Python Versions" icon="fa-brands fa-python">-Python 3.11, 3.12 and 3.13+Local mode requires Python 3.11, 3.12, or 3.13.</Tip>-1. **Install Skyvern**```bashpip install skyvern```-2. **Configure Skyvern** Run the setup wizard which will guide you through the configuration process. You can connect to either [Skyvern Cloud](https://app.skyvern.com) or a local version of Skyvern.+<Tabs>+<Tab title="Claude Code">+```bash-skyvern init+claude mcp add --transport stdio skyvern \+ --env SKYVERN_BASE_URL=https://api.skyvern.com \+ --env SKYVERN_API_KEY=YOUR_SKYVERN_API_KEY \+ -- python3 -m skyvern run mcp+```++For a local server, set `SKYVERN_BASE_URL=http://localhost:8000`.++</Tab>+<Tab title="Claude Desktop / Cursor / Windsurf">++Add to your client's config file:++```json+{+ "mcpServers": {+ "Skyvern": {+ "command": "/usr/bin/python3",+ "args": ["-m", "skyvern", "run", "mcp"],+ "env": {+ "SKYVERN_BASE_URL": "https://api.skyvern.com",+ "SKYVERN_API_KEY": "YOUR_SKYVERN_API_KEY"+ }+ }+ }+}```-3. **(Optional) Launch the Skyvern Server. Only required in local mode**+Replace `/usr/bin/python3` with the output of `which python3`. For a local server, set `SKYVERN_BASE_URL` to `http://localhost:8000`.++</Tab>+<Tab title="Codex">++```toml+[mcp_servers.skyvern]+command = "/usr/bin/python3"+args = ["-m", "skyvern", "run", "mcp"]++[mcp_servers.skyvern.env]+SKYVERN_BASE_URL = "https://api.skyvern.com"+SKYVERN_API_KEY = "YOUR_SKYVERN_API_KEY"+```++Replace `/usr/bin/python3` with the output of `which python3`.++</Tab>+</Tabs>++<Tip>+You can also run `skyvern init` to auto-detect installed clients and write configs automatically.++If using local mode, start the server before using MCP:+```bashskyvern run server```+</Tip>++<Accordion title="Config file locations by client">++| Client | Format | Path |+|--------|--------|------|+| **Claude Desktop** (macOS) | JSON | `~/Library/Application Support/Claude/claude_desktop_config.json` |+| **Claude Desktop** (Linux) | JSON | `~/.config/Claude/claude_desktop_config.json` |+| **Claude Code** (project) | JSON | `.mcp.json` in project root |+| **Claude Code** (global) | JSON | `~/.claude.json` |+| **Codex** (global) | TOML | `~/.codex/config.toml` |+| **Codex** (project) | TOML | `.codex/config.toml` in trusted project |+| **Cursor** | JSON | `~/.cursor/mcp.json` |+| **Windsurf** | JSON | `~/.codeium/windsurf/mcp_config.json` |++</Accordion>-## Examples-### Skyvern allows Claude to look up the top Hackernews posts today+## See it in action++**Claude Desktop** looking up the top Hacker News posts:<video style={{ aspectRatio: '16 / 9', width: '100%' }} controls><source src="https://github.com/user-attachments/assets/0c10dd96-c6ff-4b99-ad99-f34a5afd04fe" type="video/mp4" /></video>-### Cursor looking up the top programming jobs in your area+**Cursor** finding programming jobs:<video style={{ aspectRatio: '16 / 9', width: '100%' }} controls><source src="https://github.com/user-attachments/assets/084c89c9-6229-4bac-adc9-6ad69b41327d" type="video/mp4" /></video>-### Ask Windsurf to do a form 5500 search and download some files+**Windsurf** searching Form 5500 and downloading files:<video style={{ aspectRatio: '16 / 9', width: '100%' }} controls><source src="https://github.com/user-attachments/assets/70cfe310-24dc-431a-adde-e72691f198a7" type="video/mp4" /></video>-## Supported Applications-`skyvern init` helps configure the following applications for you:-- Cursor-- Windsurf-- Claude Desktop-- Your custom MCP App?+## Troubleshooting-Use the following config if you want to set up Skyvern for any other MCP-enabled application-```json-{- "mcpServers": {- "Skyvern": {- "env": {- "SKYVERN_BASE_URL": "https://api.skyvern.com", # "http://localhost:8000" if running locally- "SKYVERN_API_KEY": "YOUR_SKYVERN_API_KEY" # find the local SKYVERN_API_KEY in the .env file after running `skyvern init` or in your Skyvern Cloud console- },- "command": "PATH_TO_PYTHON",- "args": [- "-m",- "skyvern",- "run",- "mcp"- ]- }- }-}+<Accordion title="Python version errors (local mode only)">+The Skyvern MCP server requires Python 3.11, 3.12, or 3.13. Check your version with `python3 --version`. If you have multiple Python versions installed, make sure the `command` in your MCP config points to a supported version:++```bash+which python3.11+# Use this path in your MCP config+```++You can also use `pipx` to install in an isolated environment:++```bash+pipx install skyvern+```+</Accordion>++<Accordion title="Connection refused (local mode)">+Make sure the Skyvern server is running before using MCP tools:++```bash+skyvern run server```++Confirm the server is reachable at `http://localhost:8000`. If you changed the port, update `SKYVERN_BASE_URL` in your MCP config to match.+</Accordion>++<Accordion title="MCP client doesn't detect Skyvern">+Verify that the `command` path in your MCP config is correct:++```bash+which python3+```++Use the full absolute path (e.g., `/usr/bin/python3` or `/Users/you/.pyenv/shims/python3`), not just `python3`. Restart your MCP client after editing the config file.+</Accordion>diff --git a/skyvern/config.py b/skyvern/config.pyindex 85e6c6e53..6afbe5690 100644--- a/skyvern/config.py+++ b/skyvern/config.py@@ -356,6 +356,11 @@ class Settings(BaseSettings):MOONSHOT_API_KEY: str | None = NoneMOONSHOT_API_BASE: str = "https://api.moonshot.cn/v1"+ # INCEPTION AI+ ENABLE_INCEPTION: bool = False+ INCEPTION_API_KEY: str | None = None+ INCEPTION_API_BASE: str = "https://api.inceptionlabs.ai/v1"+# TOTP SettingsTOTP_LIFESPAN_MINUTES: int = 10VERIFICATION_CODE_INITIAL_WAIT_TIME_SECS: int = 40@@ -466,6 +471,8 @@ class Settings(BaseSettings):},"gemini-3-pro-preview": {"llm_key": "VERTEX_GEMINI_3.0_PRO", "label": "Gemini 3 Pro"},"gemini-3.0-flash": {"llm_key": "VERTEX_GEMINI_3.0_FLASH", "label": "Gemini 3 Flash"},+ "gemini-3.1-pro-preview": {"llm_key": "VERTEX_GEMINI_3.1_PRO", "label": "Gemini 3.1 Pro"},+ "mercury-2": {"llm_key": "INCEPTION_MERCURY_2", "label": "Inception Mercury 2"},"gemini-2.5-flash-lite": {"llm_key": "VERTEX_GEMINI_2.5_FLASH_LITE","label": "Gemini 2.5 Flash Lite",diff --git a/skyvern/forge/sdk/api/llm/config_registry.py b/skyvern/forge/sdk/api/llm/config_registry.pyindex e79380442..737f490e4 100644--- a/skyvern/forge/sdk/api/llm/config_registry.py+++ b/skyvern/forge/sdk/api/llm/config_registry.py@@ -1033,6 +1033,19 @@ if settings.ENABLE_GEMINI:),),)+ LLMConfigRegistry.register_config(+ "GEMINI_3.1_PRO",+ LLMConfig(+ "gemini/gemini-3.1-pro-preview",+ ["GEMINI_API_KEY"],+ supports_vision=True,+ add_assistant_prefix=False,+ max_completion_tokens=65536,+ litellm_params=LiteLLMParams(+ thinking_level="medium" if settings.GEMINI_INCLUDE_THOUGHT else "minimal",+ ),+ ),+ )if settings.ENABLE_NOVITA:@@ -1399,6 +1412,22 @@ if settings.ENABLE_VERTEX_AI:),),)+ LLMConfigRegistry.register_config(+ "VERTEX_GEMINI_3.1_PRO",+ LLMConfig(+ "vertex_ai/gemini-3.1-pro-preview",+ [],+ supports_vision=True,+ add_assistant_prefix=False,+ max_completion_tokens=65536,+ litellm_params=LiteLLMParams(+ api_base=f"{api_base}/gemini-3.1-pro-preview" if api_base else None,+ vertex_location=settings.VERTEX_LOCATION,+ thinking_level="medium" if settings.GEMINI_INCLUDE_THOUGHT else "minimal",+ vertex_credentials=settings.VERTEX_CREDENTIALS,+ ),+ ),+ )LLMConfigRegistry.register_config("VERTEX_GEMINI_2.5_FLASH_LITE",LLMConfig(@@ -1579,6 +1608,25 @@ if settings.ENABLE_MOONSHOT:),),)++if settings.ENABLE_INCEPTION:+ LLMConfigRegistry.register_config(+ "INCEPTION_MERCURY_2",+ LLMConfig(+ "openai/mercury-2",+ ["INCEPTION_API_KEY"],+ supports_vision=False,+ add_assistant_prefix=False,+ max_completion_tokens=128000,+ litellm_params=LiteLLMParams(+ api_key=settings.INCEPTION_API_KEY,+ api_base=settings.INCEPTION_API_BASE,+ api_version=None,+ model_info={"model_name": "openai/mercury-2"},+ ),+ ),+ )+# Add support for dynamically configuring OpenAI-compatible LLM models# Based on liteLLM's support for OpenAI-compatible APIs# See documentation: https://docs.litellm.ai/docs/providers/openai_compatible