apify/apify-mcp-server
An MCP gateway for discovering, running, and reading results from Apify Actors
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Apify MCP Server is a TypeScript/Node.js adapter between MCP clients and Apify. It serves hosted clients over Streamable HTTP and local clients over stdio. The manifest lists @modelcontextprotocol/sdk and the MCP server and client packages, alongside apify-client, Express, Ajv, and Zod. In both transport modes, the connector exposes tools while Apify executes Actors and stores their results.
The default tool set combines Actor discovery and documentation with Web Search and Web Fetch. A selected standard Actor can become its own tool, with parameters built from its input schema. A Server Actor with an API schema instead gets an HTTP-backed tool that sends a single request. For Actors that run MCP servers, the connector can list and call their tools; when loaded as a tool source without an API schema, it exposes those tools under names such as username--actor-name--tool-name.
Key Capabilities & Differentiators
The main workflow is search-actors → fetch-actor-details → call-actor → get-dataset-items. The details call exposes the input schema and pricing before execution. The run call waits 30 seconds by default, up to 45 seconds, and returns status and storage IDs rather than scraped rows. If the run outlasts that wait, the agent can use get-actor-run to check progress and then read the dataset with limit and offset.
Output schemas are opt-in on the details call and describe only the declared fields of the default dataset. Above 64 KB, the server falls back to field names and types, dropping the schema if even that representation is too large. Opt-in tool groups extend the connector beyond extraction into tasks, schedules, builds, versions, and Apify API operations. Some operations change or delete platform resources, so discovery and data-reading workflows should expose only the tools they need.
Trade-offs & Limitations
Compared with a direct Apify API integration, MCP lets the agent discover tools and inspect input schemas and pricing without a custom adapter per Actor. A direct API integration is simpler for a fixed pipeline that already knows which Actor to run and how to process its output. Compared with a crawler you operate yourself, the connector reduces the need to build and maintain extraction code, but leaves execution and storage on Apify even when you run the MCP process locally.
Connecting is free; Actor usage is billed separately. Search is not a complete catalog: it returns only free and pay-per-event Actors that pass the platform's safety filters, while full-permission Actors need one-time approval before running. Client support for OAuth, dynamic tools, and MCP Apps varies. Schema adaptation also favors compatibility over fidelity: long descriptions are truncated and large enums may be reduced to examples. Check the full input specification when exact validation matters.
Hardware & Deployment Guide
For the shortest setup, connect to https://mcp.apify.com over Streamable HTTP using OAuth, or a Bearer token if the client lacks OAuth. The hosted service limits requests to 20 per second per account. For local stdio, use npx @apify/actors-mcp-server on Node.js 22 or later, with APIFY_TOKEN in the client's configuration or an Apify CLI login. Use --tools or TOOLS to restrict the local tool set, and keep tokens out of version control.
The Docker build stage uses node:24-alpine, Corepack, a frozen pnpm lockfile, and separate TypeScript and web builds. Building the container or pinning an npm version gives control over the connector release, not over where Actors run; neither makes extraction offline. Version 0.23.1 added call-actor-task. Version 0.23.2 temporarily stopped serving the docs tools, and 0.23.3 restored them with redirect checks and limits on page size and fetch time.
APIFY_TOKEN or an Apify CLI login.call-actor waits 30 seconds by default and at most 45 seconds, then returns status and storage IDs for follow-up.fields, not from prior run results; detailed schemas are capped at 64 KB.maxTotalChargeUsd applies to pay-per-event Actors and maxItems to pay-per-result Actors; timeout and memory are not spend caps.Teams whose coding or research agents need to discover and switch among Apify data-extraction tools, with explicit control over which tools are exposed and how runs are billed.
Extraction and storage must stay on your own infrastructure, the workflow must run offline, or a fixed Actor pipeline is already well served by the direct Apify API.
Quick Start & Installation
npx @apify/actors-mcp-server --tools actors,docs,apify/web-search,apify/web-fetch
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| apify-mcp-server ★ | 19.2k | +1.1k | TypeScript | MIT | An MCP gateway for discovering, running, and reading results from Apify Actors |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| context7 | 65.8k | +333 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/apify/apify-mcp-server.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about apify-mcp-server
How do I integrate the server with a client that has limited MCP support?
actors-mcp-server process. Select only the tools the workflow needs with tools in the hosted URL or --tools locally. If the client does not refresh dynamic tool lists reliably, select the required Actors up front or use the generic call-actor tool rather than depending on newly exposed tools.What hardware does the local server need?
Can we use the MIT connector commercially and run it ourselves?
When is the direct Apify API a better choice?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy