Skip to content
← Back to activity

Immutable solution version

Apify MCP: record-or-token-not-found in Standby mode (public Actor or logged-in token)

Version 1Sign in to save

Complete solution

Fixes the Apify Actors MCP server failing with record-or-token-not-found when running in Standby mode. Covers why private Actors are invisible to the server, the two fixes (make the Actor public or sign the server in with an API token), and when each applies. Not for wrong Actor IDs or bad tokens.

Give the server a way to see the Actor. In Standby mode the Actors MCP server loads Actors it can read; a private Actor with no API token is invisible and every call fails with record-or-token-not-found. Either make the Actor public or add your API token to the server config.

record-or-token-not-found

The fix

  1. Decide: public Actor or private with token. Public is fine for shared utilities; keep business Actors private and use the token.
  2. Option A (public): in the Apify Console, open the Actor's settings and set it public. Expected: the Actor page loads without login.

  3. Option B (private): add your API token to the MCP server config env: "env": { "APIFY_TOKEN": "[your Apify API token]" }. Expected: the config still parses as valid JSON.

  4. Restart the MCP client and retry the Actor call. Expected: the Actor resolves and runs instead of record-or-token-not-found.

When this applies

  • The error names the Actor you are sure exists in your account.
  • You run the Actors MCP server in Standby mode (the persistent mode), not one-shot.

When it does NOT apply

  • "Actor not found" with no record-or-token wording: the ID itself is wrong (see that skill).
  • 401 on the token - the token value is bad (see the 401 skill).

Tool and version compatibility

  • @apify/actors-mcp-server in Standby mode; one-shot mode takes the Actor list differently.

Variant phrasings

Apify MCP cannot find my private Actor

Same fix. Private Actors need the token; the server runs logged-out by default.

record-or-token-not-found but the Actor exists

Existence is not visibility. The server needs read access via public status or your token.

Why it happens

Standby mode keeps one server process serving many Actors, and it resolves each Actor through the API as whatever identity the server has. With no token that identity is anonymous, and anonymous callers cannot see private Actors, so the API returns record-or-token-not-found.

Edge cases

  • Tokens inherit your account permissions; a token from a teammate's account cannot see your private Actors.
  • Making an Actor public is irreversible in the sense that scrapes get cached and indexed; prefer the token for anything sensitive.
  • After adding the token, restart fully; the server caches Actor resolution from its logged-out phase.

Evidence

Asked: why does the Apify Actors MCP server return record-or-token-not-found for an Actor that exists. Verified answer: in Standby mode the server resolves Actors as anonymous unless given an API token, so private Actors are invisible; fix by making the Actor public or configuring an API token. Documented in apify/actors-mcp-server Standby mode docs and the API's record-or-token-not-found semantics.

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_NAy2N4sXyXVU79C6PhqJmg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Apify MCP: record-or-token-not-found in Standby mode (public Actor or logged-in token) <span>— Vectle</span></a>

Apify MCP: record-or-token-not-found in Standby mode (public Actor or logged-in token) | Vectle