MCP Apify MCP Server

$git clone https://github.com/fvegah/mcp-apify.git cd mcp-apify python -m venv .venv source .venv/bin/activate pip install -e .
README.md

Enables AI assistants to interact with the Apify platform to manage actors.

MCP Apify

A Model Context Protocol (MCP) server for the Apify platform. This server enables AI assistants like Claude to interact with your Apify account — managing actors, monitoring runs, retrieving datasets, and more.

Features

  • Actors — List and inspect actors in your account
  • Runs — Start, monitor, abort, and resurrect actor runs
  • Tasks — Manage and execute saved actor configurations
  • Datasets — Retrieve scraped data and results
  • Key-Value Stores — Access stored records and outputs
  • Schedules — Monitor automated execution schedules

Prerequisites

Installation

Option 1: Install from source

git clone https://github.com/fvegah/mcp-apify.git
cd mcp-apify
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -e .

Option 2: Install with uv (recommended)

git clone https://github.com/fvegah/mcp-apify.git
cd mcp-apify
uv venv
source .venv/bin/activate
uv pip install -e .

Configuration

Step 1: Set your API token

Add your Apify API token to your shell profile (~/.zshrc, ~/.bashrc, or equivalent):

export APIFY_API_TOKEN="apify_api_xxxxxxxxxxxxxxxxxxxxx"

Reload your shell configuration:

source ~/.zshrc  # or source ~/.bashrc

Step 2: Configure your MCP client

Claude Desktop

Add the following to your Claude Desktop configuration file:

OS Path
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Windows %APPDATA%\Claude\claude_desktop_config.json
Linux ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "apify": {
      "command": "/absolute/path/to/mcp-apify/.venv/bin/python",
      "args": ["-m", "mcp_apify.server"]
    }
  }
}

Important: Replace /absolute/path/to/mcp-apify with the actual path where you cloned the repository.

Claude Code (CLI)

Add to your Claude Code MCP settings (~/.claude/settings.json):

{
  "mcpServers": {
    "apify": {
      "command": "/absolute/path/to/mcp-apify/.venv/bin/python",
      "args": ["-m", "mcp_apify.server"]
    }
  }
}

Step 3: Restart your MCP client

After configuration, restart Claude Desktop or Claude Code to load the new MCP server.

Usage

Once configured, you can interact with Apify through natural language. The AI assistant will use the appropriate tools automatically.

Example prompts

"List my recent actor runs"
"Show me the status of run abc123def456"
"Get the results from my last web scraper run"
"Abort the currently running actor"
"Run the apify/web-scraper actor with URL https://example.com"
"Show me all my scheduled tasks"

Available Tools

User Information

Tool Description
get_user_info Get information about the authenticated user

Actors

Tool Description
list_actors List all actors (created or used by user)
get_actor Get details of a specific actor

Runs

Tool Description
list_actor_runs List runs for a specific actor
list_user_runs List all runs across all actors
get_run Get details of a specific run
get_last_run Get the most recent run of an actor
run_actor Start a new actor run with optional input
abort_run Stop a running actor execution
resurrect_run Restart a finished run
get_run_log Retrieve the log output of a run

Tasks

Tool Description
list_tasks List all saved actor tasks
get_task Get task configuration details
run_task Execute a task with optional input override
list_task_runs List runs for a specific task
get_task_last_run Get the most recent task run

Datasets

Tool Description
list_datasets List all datasets
get_dataset Get dataset metadata
get_dataset_items Retrieve items from a dataset
get_run_dataset_items Get items from a run's default dataset

Key-Value Stores

Tool Description
`l

Tools (20)

get_user_infoGet information about the authenticated user
list_actorsList all actors (created or used by user)
get_actorGet details of a specific actor
list_actor_runsList runs for a specific actor
list_user_runsList all runs across all actors
get_runGet details of a specific run
get_last_runGet the most recent run of an actor
run_actorStart a new actor run with optional input
abort_runStop a running actor execution
resurrect_runRestart a finished run
get_run_logRetrieve the log output of a run
list_tasksList all saved actor tasks
get_taskGet task configuration details
run_taskExecute a task with optional input override
list_task_runsList runs for a specific task
get_task_last_runGet the most recent task run
list_datasetsList all datasets
get_datasetGet dataset metadata
get_dataset_itemsRetrieve items from a dataset
get_run_dataset_itemsGet items from a run's default dataset

Environment Variables

APIFY_API_TOKENrequiredApify API token from console.apify.com/settings/integrations

Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "apify": {
      "command": "/absolute/path/to/mcp-apify/.venv/bin/python",
      "args": ["-m", "mcp_apify.server"]
    }
  }
}

Try it

List my recent actor runs
Show me the status of run abc123def456
Get the results from my last web scraper run
Run the apify/web-scraper actor with URL https://example.com
Show me all my scheduled tasks

Frequently Asked Questions

What are the key features of MCP Apify?

Start, monitor, abort, and resurrect actor runs. Retrieve scraped data and results from Datasets. Manage and execute saved actor configurations (Tasks). Access stored records and outputs in Key-Value Stores. Monitor automated execution schedules.

What can I use MCP Apify for?

Automating web scraping workflows via natural language. Monitoring long-running data extraction jobs from a chat interface. Retrieving and analyzing scraped dataset items directly in Claude. Managing Apify actor tasks and configurations without leaving the IDE.

How do I install MCP Apify?

Install MCP Apify by running: git clone https://github.com/fvegah/mcp-apify.git cd mcp-apify python -m venv .venv source .venv/bin/activate pip install -e .

What MCP clients work with MCP Apify?

MCP Apify works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use MCP Apify with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free