Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP ApifyGet the results from my last web scraper run"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Table of Contents
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
Python 3.10 or higher
An Apify API token (get it here)
Installation
Option 1: Install from source
Option 2: Install with uv (recommended)
Configuration
Step 1: Set your API token
Add your Apify API token to your shell profile (~/.zshrc, ~/.bashrc, or equivalent):
Reload your shell configuration:
Step 2: Configure your MCP client
Claude Desktop
Add the following to your Claude Desktop configuration file:
OS | Path |
macOS |
|
Windows |
|
Linux |
|
Important: Replace
/absolute/path/to/mcp-apifywith the actual path where you cloned the repository.
Claude Code (CLI)
Add to your Claude Code MCP settings (~/.claude/settings.json):
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
Available Tools
User Information
Tool | Description |
| Get information about the authenticated user |
Actors
Tool | Description |
| List all actors (created or used by user) |
| Get details of a specific actor |
Runs
Tool | Description |
| List runs for a specific actor |
| List all runs across all actors |
| Get details of a specific run |
| Get the most recent run of an actor |
| Start a new actor run with optional input |
| Stop a running actor execution |
| Restart a finished run |
| Retrieve the log output of a run |
Tasks
Tool | Description |
| List all saved actor tasks |
| Get task configuration details |
| Execute a task with optional input override |
| List runs for a specific task |
| Get the most recent task run |
Datasets
Tool | Description |
| List all datasets |
| Get dataset metadata |
| Retrieve items from a dataset |
| Get items from a run's default dataset |
Key-Value Stores
Tool | Description |
| List all key-value stores |
| Get store metadata |
| List keys in a store |
| Retrieve a specific record |
| Get the OUTPUT record from a run |
Schedules
Tool | Description |
| List all schedules |
| Get schedule configuration |
| Get schedule execution history |
Examples
List recent runs with status filter
Ask: "Show me my failed runs from the last week"
The assistant will use list_user_runs with status: "FAILED" to retrieve the information.
Run an actor with custom input
Ask: "Run the web scraper on
The assistant will:
Use
run_actorwith the appropriate inputUse
get_runwithwait_for_finishto monitor completionUse
get_run_dataset_itemsto retrieve the results
Monitor a running actor
Ask: "What's the status of my current scraping job?"
The assistant will use list_user_runs with status: "RUNNING" to find active runs.
Development
Project structure
Running locally
Running tests
API Reference
This MCP server wraps the Apify API v2. For detailed information about request/response formats and available parameters, refer to the official documentation:
Troubleshooting
"APIFY_API_TOKEN environment variable is required"
Ensure the environment variable is set and exported in your shell profile, then restart your MCP client.
Server not appearing in Claude
Verify the path to the Python executable is correct and absolute
Check that the virtual environment has all dependencies installed
Restart Claude Desktop/Code completely
API errors
Verify your API token is valid at Apify Console.
License
MIT License — see LICENSE for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.