# Repository Briefing: apify/apify-mcp-server
> Source: https://repoforai.com/repo/apify/apify-mcp-server (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/apify/apify-mcp-server
- **Official Docs / Website**: https://mcp.apify.com
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (90/100 · Maintenance 35/35 · Adoption 15/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.23.3 (2026-12-03) — https://github.com/apify/apify-mcp-server/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, MCP, CLI, API
- **Momentum**: 19,200 ★ total (+115 24h / +1,098 7d) · 510 forks
- **Topics**: `agents`, `ai`, `mcp`, `mcp-server`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Transport: Hosted Streamable HTTP with OAuth or Bearer authentication; local stdio with `APIFY_TOKEN` or an Apify CLI login.
- Tool registration: Standard Actor tools use Actor input schemas; Server Actors with API schemas get HTTP-backed tools, and MCP Actor tools can be exposed with namespaced names.
- Run lifecycle: `call-actor` waits 30 seconds by default and at most 45 seconds, then returns status and storage IDs for follow-up.
- Output contract: Optional JSON Schema comes from the default dataset's declared `fields`, not from prior run results; detailed schemas are capped at 64 KB.
- Cost controls: `maxTotalChargeUsd` applies to pay-per-event Actors and `maxItems` to pay-per-result Actors; timeout and memory are not spend caps.
- Client compatibility: MCP Apps widgets default to capability-based activation and can be forced on or off without replacing the standard search and detail tools.
```

## Quick Start / Clone
```bash
npx @apify/actors-mcp-server --tools actors,docs,apify/web-search,apify/web-fetch
```
