Search DevTools

Jump to any tool or page

apify-mcp-server

Trending

Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store โšก

apify4,798 stars236 forksBrowser & Web
View source

Install

mcp_config.json

{
  "mcpServers": {
    "com-apify-apify-mcp-server": {
      "url": "https://mcp.apify.com/",
      "type": "streamable-http"
    }
  }
}

Documentation

Apify MCP server

Connect your agent to the largest marketplace of tools for AI.

The official Apify Model Context Protocol (MCP) server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store, at https://mcp.apify.com.

Apify is the marketplace of ready-to-run tools for AI agents. One connection to the Apify MCP server gives your agent thousands of tools to choose from, for jobs like web fetch, SERP monitoring, lead generation and enrichment, and pulling data from e-commerce sites and social media. The server loads only what each task needs.

Your agent searches Apify Store, checks an Actor's input and pricing, runs it, and reads the structured results, so you don't install a separate MCP server for every site. Connect to the hosted server with OAuth, or run it locally over stdio with the @apify/actors-mcp-server npm package.

Contents

๐Ÿš€ Quickstart

  1. Open the MCP configurator, pick your client, and choose the tools you want.
  2. Copy the generated configuration, deeplink, or command into your client.
  3. Sign in to Apify in the browser window that opens. If you don't have an account, you can create a free one there.

The hosted endpoint is https://mcp.apify.com. If your client can't use OAuth, send your Apify API token in an Authorization: Bearer <APIFY_TOKEN> header instead. Treat the token like a password and keep it out of repositories. Create a token in Apify Console and copy it right after creating it. It is shown only once.

Using a coding agent such as Claude Code, Codex, Cursor, or GitHub Copilot? An official Apify plugin installs this MCP server together with Apify agent skills in one step.

๐Ÿค– Set up your client

The configurator generates the exact setup for each supported client, including Claude Code, ChatGPT, Cursor, VS Code, GitHub Copilot CLI, Claude, Claude Desktop, Codex, OpenCode, Kiro, and more. The snippets below cover the most common cases.

Claude Code

claude mcp add apify "https://mcp.apify.com" -t http

Claude Code opens the Apify sign-in page the first time it uses the server. To install the Apify plugin with Apify agent skills instead, run /plugin marketplace add apify/apify-claude-code-plugin, then /plugin install apify@apify and /reload-plugins.

ChatGPT

  1. Open ChatGPT Plugins, select Add in the top-right corner, then Add custom MCP server.
  2. Fill in the form:
    • Icon: upload the Apify icon.
    • Name: Apify
    • Description: Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store
    • Connection: Server URL, the URL with your settings from the configurator, for example with ?tools=. Without custom settings, use https://mcp.apify.com.
    • Authentication: OAuth
  3. Check I understand and want to continue, then select Create as a plugin.
  4. Sign in with Apify, review the tools, and install the plugin. No API token is needed.
  5. Start a new conversation, type @, and select Apify.

In Business, Enterprise, and Edu workspaces, an admin or owner may need to create or publish the plugin. If the option is missing, ask your workspace admin. When the server's tools change, open the plugin and select Refresh.

The ChatGPT desktop app uses local MCP configuration shared with Codex instead: go to Settings > MCP servers > Add server, choose Streamable HTTP, and enter https://mcp.apify.com. See OpenAI's custom MCP server guide.

Cursor

Add Apify to Cursor, or let the Apify CLI write the configuration, including your API token:

apify mcp install cursor

The same command works for claude-code, vscode, codex, kiro, and antigravity.

VS Code and GitHub Copilot

Use the one-click install link from the configurator, run apify mcp install vscode, or add https://mcp.apify.com as an HTTP server in your MCP configuration:

{
  "servers": {
    "apify": {
      "type": "http",
      "url": "https://mcp.apify.com"
    }
  }
}

Claude

Add Apify to Claude: the link opens the custom connector dialog with the name and URL filled in. Sign in with Apify when prompted.

To set it up by hand, open Settings > Connectors, select Add custom connector, name it Apify, and enter https://mcp.apify.com as the remote MCP server URL. The same connector works on Claude.ai and in Claude Desktop. See the Claude guide.

Any other MCP client (JSON config)

Most clients that support remote servers and OAuth accept a configuration like this:

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

Local stdio (npx)

Requires Node.js 22 or later.

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

Create an API token in Apify Console and copy it right after creating it. It is shown only once.

If you've run apify login, the server can also read the token saved by the Apify CLI. Run npx @apify/actors-mcp-server --help for all options.

The server is also listed in the Docker MCP catalog, and each release ships an MCP bundle file (apify-mcp-server.mcpb) for one-click installation in clients that support it.

Remote (hosted) or local MCP server

The hosted remote MCP server with OAuth is the recommended option. Use the local server when you want to run the MCP process on your own machine; Actors still run and store their results on the Apify platform in both modes. If your client supports only stdio, you can also bridge it to the hosted server with mcp-remote: npx mcp-remote https://mcp.apify.com.

Hosted (https://mcp.apify.com)Local (npx @apify/actors-mcp-server)
TransportStreamable HTTPstdio
AuthenticationOAuth or Bearer tokenAPIFY_TOKEN environment variable or Apify CLI login
Output schemas inferred for Actor resultsYesNo
Tool selectiontools URL parameter--tools flag or TOOLS environment variable
UpdatesAlways the latest serverThe npm version you install

How an agent uses Apify Actors

Actors are serverless programs on the Apify platform. Each one does a specific job, like scraping Google Maps, crawling a website for RAG, or collecting social media posts. The MCP server turns Actors into tools an agent can find and call without you configuring each one in advance.

A typical task follows four steps:

  1. search-actors finds candidate Actors in Apify Store for the task.
  2. fetch-actor-details returns the Actor's input schema, README, and pricing, plus its output schema on request.
  3. call-actor starts the run and waits for it to finish, 30 seconds by default and up to 45. It returns the run status and storage IDs; the scraped items stay in the run's dataset.
  4. get-dataset-items reads the results from the run's dataset, with limit and offset for pagination.

The server adds get-dataset-items, get-key-value-store-record, get-actor-run, and abort-actor-run whenever call-actor or an Actor tool is loaded, so the agent can always read results and check on long runs that outlast the wait.

You can also expose a specific Actor as its own tool, for example apify/instagram-scraper. The server builds the tool's parameters from the Actor's input schema, so the agent knows exactly what to pass. A Server Actor with an API schema, such as apify/web-fetch, apify/web-search, or apify/rag-web-browser, gets a tool that sends one HTTP request to its API instead.

Actors that run their own MCP server. Some Actors are MCP servers themselves. fetch-actor-mcp-tool-list lists their tools, and call-actor-mcp-tool calls one. When such an Actor is loaded as a tool source and has no API schema, its tools are exposed under names in the form username--actor-name--tool-name; an Actor with an API schema, such as apify/web-search, gets its server tool instead, and call-actor-mcp-tool reaches its MCP tools. Apify Store also lists MCP-related Actors from independent creators; those are separate products with their own READMEs and pricing.

๐Ÿ› ๏ธ Tools, resources, and prompts

Any Actor can be a tool, and agents discover new ones as they work. By default, the server loads the actors and docs categories, two Actor tools (Web Search and Web Fetch), and report-problem. Everything else is opt-in by category or by tool name.

Helper tools

Besides Actor tools, the server provides helper tools for the Apify platform:

  • Actors: search Apify Store, list the Actors in your account, view their details, call tools on Actors that run MCP servers, send requests to Server Actors, and delete your own Actors.
  • Documentation: search the Apify and Crawlee docs and fetch pages as context.
  • Runs and storage: list runs, inspect them, read their logs, and read datasets and key-value stores.
  • Tasks and schedules: manage saved Actor tasks and their public landing pages, and schedules that run Actors and tasks automatically.
  • Builds and versions: build Actors, read build logs, and create, read, change, copy, and delete versions from files.
  • Apify API: search the API reference, inspect an operation, and send requests to read or change data.

Available tools

Legend for the Enabled by default column:

  • โœ… In the default tool set.
  • โšก Added automatically when call-actor, an Actor tool, or get-actor-run is loaded, which is true in the default configuration.
  • โœ…ยน Served by default only when telemetry is on and the client name doesn't contain claude, anthropic, or local-agent-mode. Select it explicitly with tools=report-problem or tools=dev to serve it to any client; telemetry still has to be on.
Tool nameCategoryDescriptionEnabled by default
search-actorsactorsSearch for Actors in Apify Store.โœ…
fetch-actor-detailsactorsGet an Actor's input schema, README (summary when available, full otherwise), pricing, and a Server Actor's HTTP operations. The output schema is opt-in.โœ…
call-actoractorsRun an Actor and return its run status and storage IDs. Use fetch-actor-details first to get the input schema.โœ…
fetch-actor-mcp-tool-listactorsList the tools of an Actor that runs an MCP server, with their schemas, annotations, and metadata.โœ…
call-actor-mcp-toolactorsCall one tool on an Actor's MCP server and return its result.โœ…
send-server-actor-requestactorsSend one HTTP request to a Server Actor's API, as documented by its API schema, and return the response.โœ…
get-actor-runrunsGet details about an Actor run.โšก
get-dataset-itemsstorageRead items from a dataset, with filtering and pagination.โšก
get-key-value-store-recordstorageGet the value stored under a key in a key-value store.โšก
abort-actor-runrunsAbort a running Actor run, optionally gracefully.โšก
search-apify-docsdocsSearch the Apify and Crawlee documentation for relevant pages.โœ…
fetch-apify-docsdocsFetch the full content of a documentation page by its URL.โœ…
apify--web-searchActor (see Choose which tools load)Search the web and return one page of results: titles, URLs, and snippets.โœ…
apify--web-fetchActor (see Choose which tools load)Fetch a URL and return its content as Markdown, text, HTML, or other formats.โœ…
report-problemdevReport a problem with an Apify tool or Actor to the Apify team.โœ…ยน
apify--rag-web-browserActor (see Choose which tools load)Search the web and return the content of the top results.
get-actor-listnone (select by name: tools=get-actor-list)List the Actors you own and those shared with you, including private ones.
delete-actornone (select by name: tools=delete-actor)Delete an Actor from your account permanently. Public Actors must be unpublished first.
get-actor-run-listrunsList Actor runs, filtered by Actor and status.
get-actor-run-logrunsRead the log of an Actor run.
get-datasetstorageGet metadata about a dataset.
get-dataset-schemastorageGenerate a JSON schema from dataset items.
get-dataset-liststorageList the datasets in your account.
get-key-value-storestorageGet metadata about a key-value store.
get-key-value-store-keysstorageList the keys in a key-value store.
get-key-value-store-liststorageList the key-value stores in your account.
create-actor-tasktasksCreate a saved Actor task (a named, reusable Actor configuration).
get-actor-tasktasksGet a saved Actor task, its publication state, and its public display configuration.
update-actor-tasktasksUpdate a task's input, run options, or public display configuration.
publish-actor-tasktasksPublish a task on its public landing page.
unpublish-actor-tasktasksUnpublish a task from its public landing page.
create-scheduleschedulesCreate a schedule that runs Actors or tasks on a cron expression.
get-scheduleschedulesGet a schedule, its cron expression, state, and the actions it runs.
update-scheduleschedulesUpdate a schedule's cron expression, time zone, enabled state, or actions.
delete-scheduleschedulesDelete a schedule.
build-actorbuildsBuild an Actor version and wait a bounded time for the build to finish.
get-actor-buildbuildsGet the status of an Actor build.
get-actor-build-listbuildsList the account's builds, or one Actor's, in every status, newest first.
get-actor-build-logbuildsRead the log of an Actor build.
get-actor-versionversionsGet an Actor version's file listing with hashes, plus the content of the files you ask for.
create-actorversionsCreate a private Actor in your account from files, optionally starting a build.
update-actor-versionversionsWrite, edit, or delete files of an Actor version in one all-or-nothing write.
create-actor-versionversionsAdd a version to an Actor, from files or as a copy of another version, optionally starting a build.
delete-actor-versionversionsDelete an Actor version. Its builds and their tags stay.
apify-api-searchapiSearch the Apify API reference by keywords. Returns each operation's method, path, and docs page.
apify-api-detailsapiGet the parameters and request body schema of the Apify API operations on a path.
apify-api-readapiSend a GET request to an Apify API path, like apify api in the Apify CLI. It refuses GETs to the synchronous run endpoints, which start a paid run.
apify-api-writeapiSend a POST, PUT, PATCH, or DELETE request with a JSON body to any Apify API path, like apify api in the Apify CLI.

Sourced from the repository README.

More in Browser & Web