# Apify MCP Server

> Apify's Model Context Protocol server — lets an AI agent find and run thousands of ready-made scrapers and crawlers from Apify Store as tools

- Category: Data & Labeling / Web Scraping & Crawling
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/apify/apify-mcp-server
- Website: https://mcp.apify.com
- Canonical page: https://ai-tldr.dev/tools/apify-mcp-server/

## In short

Apify MCP Server is Apify's Model Context Protocol server — lets an AI agent find and run thousands of ready-made scrapers and crawlers from Apify Store as tools. It sits in the Web Scraping & Crawling category of the Data & Labeling tools and is open-source, written in TypeScript and licensed MIT.

## Overview

The Apify MCP Server is Apify's official Model Context Protocol server. It lets an AI assistant use any Actor from Apify Store — the platform's catalogue of ready-made scrapers, crawlers and automation tools — as a tool, so an agent can pull data from social media, search engines, maps, e-commerce sites and ordinary web pages without anyone writing a scraper. Apify runs a hosted instance at mcp.apify.com over Streamable HTTP with OAuth, which means clients such as Claude.ai or Visual Studio Code can connect with just the URL; the same server also ships as the npm package @apify/actors-mcp-server for local stdio use.

The server reads each Actor's input schema and turns it into a matching MCP tool, so the model knows which arguments to pass and what comes back. Out of the box it loads two Actors — RAG Web Browser, which searches the web and returns the content of the top results, and Web Fetch, which returns any URL as Markdown, text, HTML or links — plus helper tools for dynamic discovery: search-actors, fetch-actor-details and call-actor let an agent find a suitable Actor in the Store, inspect its inputs and run it mid-conversation. Results land in Apify datasets and key-value stores, which the agent reads back page by page with get-dataset-items and related tools.

Beyond scraping, optional tool categories expose more of the Apify platform: Actor runs and logs, saved tasks, cron schedules, builds, Actor source files, Apify documentation search and read-only access to the Apify API. A tools parameter (a URL query on the hosted server, a --tools flag locally) chooses exactly what is loaded, down to a single Actor. Running Actors normally needs an Apify account and API token; the README also documents agentic payments — a prepaid token from AGI, per-request x402 payments in USDC on Base, or Skyfire PAY tokens — for agents that pay without an account. The server code is MIT-licensed TypeScript; the Actors it runs are billed through the Apify platform.

## What it does

- Any Apify Store Actor as an MCP tool, with its input schema converted into the tool's arguments so the model knows what to pass
- Dynamic discovery: search-actors, fetch-actor-details and call-actor let an agent find, inspect and run a new Actor in the middle of a task
- Default tools for web research — RAG Web Browser for search-and-scrape and Web Fetch for single URLs as Markdown, text, HTML or links
- Optional categories for runs, datasets and key-value stores, saved tasks, schedules, builds, Actor source, Apify docs and read-only Apify API calls, selected with a tools parameter
- Hosted endpoint at mcp.apify.com with OAuth or a bearer token, or a local stdio server via npx @apify/actors-mcp-server
- Agentic payments through AGI, direct x402 or Skyfire, so an autonomous agent can pay for Actor runs without an Apify account

## Getting started

The hosted server at mcp.apify.com is the route Apify recommends; some features, such as output schema inference for structured Actor results, are only available there. The configurator at mcp.apify.com writes the config for most clients, and the snippets below come from the README and the Apify docs.

1. Connect to the hosted server with OAuth

   In a client that supports OAuth, add the server by URL alone and sign in to Apify when prompted. The old /sse endpoint has been removed — use the bare URL with Streamable HTTP.

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com"
    }
  }
}
```

2. Or pass an API token as a bearer header

   For clients without OAuth, send your Apify API token in the Authorization header.

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com",
      "headers": {
        "Authorization": "Bearer <APIFY_TOKEN>"
      }
    }
  }
}
```

3. Run it locally over stdio

   For local integrations such as Claude Desktop, launch the npm package with your token in the environment. Rental Actors only work through the hosted endpoint; locally you get the Actors in your configured toolset.

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server"],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

4. Pin the tool set

   The default tool set may change between versions, so the README recommends naming tools explicitly in production. Pass categories, single tools or Actors — on the hosted URL as a query parameter, locally as a flag. Naming one Actor exposes only that Actor.

```bash
# hosted
https://mcp.apify.com?tools=actors,docs,apify/rag-web-browser,apify/web-fetch

# local
npx @apify/actors-mcp-server --tools actors,docs,apify/rag-web-browser,apify/web-fetch
npx @apify/actors-mcp-server --tools apify/my-actor
```

5. Opt out of telemetry if you need to

   Tool-call telemetry (and Sentry error tracking on stdio) is on by default.

```bash
# hosted
https://mcp.apify.com?telemetry-enabled=false

# local
npx @apify/actors-mcp-server --telemetry-enabled=false
```

## When to use it

- Let a chat assistant pull structured data from Google Maps, Instagram, Facebook or search results on request, using an existing Store scraper instead of writing one
- Give a research agent web search and page fetching through RAG Web Browser and Web Fetch, with JavaScript rendering handled by Apify
- Manage your own Apify account from an AI client — inspect runs and logs, read datasets, edit saved tasks and set up schedules
- Expose one in-house Actor to an agent as a single, tightly scoped tool with tools=<your-actor>
