apify-mcp-server
AGENTS.md9.6k starsChanged 4 months agoMITView on GitHub
TypeScript, ES modules. Runs in two modes: stdio (local CLI clients, stdio.ts) and HTTP Streamable (dev_server.ts). Before implementing: work from an issue that is assigned or explicitly agreed. An open issue is not an invitation — many are stale or unrefined, and the fix isn't settled. If nobody asked for this change, open an issue instead of a PR (docs fixes excepted). Disclose AI use in the PR; never add a model as co-author. See CONTRIBUTING.md. This applies to ALL…
Trending
More talk lately.about the whole repository
Who's talking about apify/apify-mcp-server
- cursor/mcp-servers“[Server Request]: Apify MCP server”GitHub · Oct 13, 2025 · 17 reactions
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 apify / apify-mcp-server ⭐ 3,498 (+151) 🗒 TypeScript The Apify MCP …”Bluesky · Aug 13, 2026 · 5 likes
- modelcontextprotocol/typescript-sdk“Client sees "Task <id> failed" instead of the real error/result on failed tasks”GitHub · Apr 17, 2026 · 1 reactions
- apify/apify-docs“fix: Always clear cache when on MCP page to help with redirect issue”GitHub · Aug 15, 2025 · 1 reactions
- sudosubin/agents.nix“agent-skills.github.apify.apify-mcp-server: 0.17.2 → 0.17.3”GitHub · Oct 6, 2026
The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 26
Talked about on GitHub and Bluesky (26 times).
On GitHub · 25
- Oct 13, 2025[Server Request]: Apify MCP server — cursor/mcp-servers17 reactions · 1 comment
- Apr 17, 2026Client sees "Task <id> failed" instead of the real error/result on failed tasks — modelcontextprotocol/typescript-sdk1 reaction · 1 comment
- Aug 15, 2025fix: Always clear cache when on MCP page to help with redirect issue — apify/apify-docs1 reaction · 12 comments
- Oct 6, 2026agent-skills.github.apify.apify-mcp-server: 0.17.2 → 0.17.3 — sudosubin/agents.nix0 reactions
- Oct 5, 2026agent-skills.github.apify.apify-mcp-server: 0.17.1 → 0.17.2 — sudosubin/agents.nix0 reactions
20 more on GitHub
- Oct 5, 2026deps(deps): bump the patch-minor group with 2 updates — INAPP-Mobile/apify-mcp-server-railway0 reactions · 1 comment
- Oct 3, 2026agent-skills.github.apify.apify-mcp-server: 0.16.0 → 0.17.1 — sudosubin/agents.nix0 reactions
- Oct 3, 2026TOOL-REGISTER - Every tool that an agent or the interface could use is judged once, and the discarded ones keep their reason — gabriel-neutron/GAB0 reactions · 2 comments
- Sep 28, 2026deps(deps): bump the patch-minor group across 1 directory with 2 updates — INAPP-Mobile/apify-mcp-server-railway0 reactions · 1 comment
- Sep 25, 2026agent-skills.github.apify.apify-mcp-server: init at 0.16.0 — sudosubin/agents.nix0 reactions
- Sep 23, 2026Bump @apify/actors-mcp-server from 0.13.0 to 0.16.0 — yogsoth-ai/de-anthropocentric-research-engine0 reactions · 2 comments
- Sep 16, 2026chore(deps): bump @apify/actors-mcp-server from 0.13.0 to 0.15.7 — yogsoth-ai/de-anthropocentric-research-engine0 reactions · 1 comment
- Sep 7, 2026deps(deps): bump @apify/actors-mcp-server from 0.14.3 to 0.15.4 in the patch-minor group — INAPP-Mobile/apify-mcp-server-railway0 reactions · 2 comments
- Aug 21, 2026deps(deps): bump @apify/actors-mcp-server from 0.13.0 to 0.14.3 in the patch-minor group — INAPP-Mobile/apify-mcp-server-railway0 reactions · 1 comment
- Jul 23, 2026Update 147 repository links that have moved 🤖🤖🤖 — punkpeye/awesome-mcp-servers0 reactions · 1 comment
- Jul 11, 2026Add MCP tool-call events and an agent report-issue tool — assistant-ui/assistant-ui0 reactions · 7 comments
- Jul 6, 2026[Integration request]: Apify MCP — corsairdev/corsair0 reactions
- Jun 6, 2026content(mcp): add Apify MCP Server — JSONbored/awesome-claude0 reactions · 3 comments
- Jun 3, 2026chore: added mcp origin header value — apify/apify-shared-js0 reactions · 1 comment
- May 31, 2026Broken links detected (2026-06-14) — awesome-ai-tools/curated-mcp-servers0 reactions
- May 29, 2026mcp-library.json update — zencoderai/zenagents-library0 reactions
- Apr 16, 2026Revise async task polling and reporting — apify/mcpc0 reactions · 1 comment
- Mar 4, 2026Update MCP documentation once we rename `@apify/actors-mcp-server to `@apify/mcp-server` — apify/apify-docs0 reactions
- Nov 10, 2025Documentation updates regarding to MCP tools without auth — apify/apify-docs0 reactions
- Oct 23, 2025[MCP Catalog] New MCP server candidate: apify/apify-mcp-server — obot-platform/mcp-catalog0 reactions
On Bluesky · 1
- Aug 13, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 apify / apify-mcp-server ⭐ 3,498 (+151) 🗒 TypeScript The Apify MCP server enables your AI agents to… — @github-trending-js.bsky.social5 likes and reposts · 1 reply
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- src/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- bug-triageSkill
- creating-mcp-agent-evalsSkill
- digSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Test first for bug fixes: Write a failing test that reproduces the bug, confirm it fails, then fix.
- Distinctive: line 18
Refactoring is a separate PR: If a feature needs refactoring, land the refactor first, then the feature.
- Distinctive: line 19
Fix by adjusting, not adding: Prefer a 1-line fix over a 10-line fix.
- Distinctive: line 20
Self-review your diff: Before declaring done, review: Is this the minimal fix?
- Very specific: line 26
Use git mv (not mv + rm) when renaming files so git records a rename rather than delete+create.
- Very specific: line 30
After every code change, run pnpm run type-check, pnpm run lint, pnpm run test:unit, pnpm run format and pnpm run check:agents.
- Very specific: line 35
Do NOT use
pnpm run buildfor type-checking: Use pnpm run type-check — it is faster and skips JavaScript output generation. - Very specific: line 42
After pnpm run build, run mcpc (no args) to check sessions: if @stdio (default) / @stdio-full (non-default tools) is listed, mcpc @stdio …
- Distinctive: line 51
Follow existing test patterns (names, structure) — check neighboring files.
- Distinctive: line 64
Never: import private Apify libraries or internal DB schemas into the public repo — external users can't install them
- Distinctive: line 66
When designing a new feature, ask: can this land in one repo?
- Distinctive: line 77
Validate tool inputs with Zod: No ad-hoc shape checks.
- Very specific: line 79
Apps vs default mode: only *-widget tools differ between modes.
- Distinctive: line 81
Always follow the latest MCP spec and MCP Apps spec.
- Very specific: line 95
If your diff changes a fact, command, or constant stated in an AGENTS.md (or a doc it links as the owner) within the directory you touched …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Apify MCP server
TypeScript, ES modules. Runs in two modes: stdio (local CLI clients, stdio.ts) and HTTP Streamable (dev_server.ts).
Before implementing: work from an issue that is assigned or explicitly agreed. An open issue is not an invitation — many are stale or unrefined, and the fix isn't settled. If nobody asked for this change, open an issue instead of a PR (docs fixes excepted). Disclose AI use in the PR; never add a model as co-author. See CONTRIBUTING.md.
Communication style — MANDATORY
This applies to ALL written output: code comments, commit messages, PR descriptions, issue specs
- Plain language, no fluff. Say what you mean in the fewest words. No filler phrases, no motivational preambles, no "this will improve the developer experience."
Scope discipline
- Minimal. Implement only what's explicitly requested. No speculative features, no hypothetical future-proofing — solve the current problem, not imagined ones.
- One thing per change. Bug fix fixes only the bug — no cleanup, no renames, no drive-by refactors. Mention unrelated issues; don't fix them.
- Test first for bug fixes. Write a failing test that reproduces the bug, confirm it fails, then fix.
- Refactoring is a separate PR. If a feature needs refactoring, land the refactor first, then the feature. Never mix.
- Fix by adjusting, not adding. Prefer a 1-line fix over a 10-line fix. Prefer adjusting existing code over adding new branches. Search for existing helpers and patterns that already handle similar cases. Ask: "Am I adding code, or fixing the code that's already there?"
- Self-review your diff. Before declaring done, review: Is this the minimal fix? Am I reusing existing patterns? Did I leave any debug artifacts?
Git: branch names, commits, PR titles
Conventional Commits for all three. Branch: type/short-desc (e.g. fix/connection-timeout). Commit/PR title: type: Description (e.g. fix: Handle connection errors). Types: feat, fix, chore, refactor, docs, test. Append ! for breaking changes. PR title ≤70 chars.
Use git mv (not mv + rm) when renaming files so git records a rename rather than delete+create.
Verification (mandatory)
After every code change, run pnpm run type-check, pnpm run lint, pnpm run test:unit, pnpm run format and pnpm run check:agents.
Zero tolerance for errors — fix before proceeding, don't defer.
Agent constraints
- Do NOT use
pnpm run buildfor type-checking. Usepnpm run type-check— it is faster and skips JavaScript output generation. Only usepnpm run buildwhen compiled output is explicitly needed (e.g., before mcpc probing). - Do NOT run integration tests as an agent. They require a valid
APIFY_TOKENand are slow.
Testing the MCP server end-to-end
When the user says "test with mcpc", use mcpc — do not invent a substitute (no curl, no ad-hoc Node/Python scripts, no unit tests in place of an e2e probe). Use the apify CLI (apify datasets, apify key-value-stores, apify actors, …) for ground-truth data — never curl the Apify API.
After pnpm run build, run mcpc (no args) to check sessions: if @stdio (default) / @stdio-full (non-default tools) is listed, mcpc @stdio restart; otherwise mcpc connect .mcp.json:stdio @stdio (non-default tools: mcpc connect .mcp.json:stdio-full @stdio-full). Use the mcpc-tester subagent for systematic spec/edge-case coverage; call mcpc directly for quick checks.
Testing
- Unit tests:
pnpm run test:unit. - Integration tests:
pnpm run test:integration(needs build +APIFY_TOKEN, humans only). - Conformance tests:
pnpm run test:conformance(needsAPIFY_TOKEN) builds and runs both protocol eras locally._integration_tests.yamlcalls_conformance_tests.yamlfor the same2026-07-28and2025-11-25coverage in CI. Both eras always run; the command exits with the first non-zero code. Scenarios excluded from each era's gate are listed with reasons inscripts/conformance_expected_failures_2026_07_28.yamlandscripts/conformance_expected_failures_2025_11_25.yaml. - Package manager: this repo uses pnpm 11+.
devEngines.packageManageris pinned withonFail: "error", so npm / yarn refuse to run inside the checkout — usepnpm installonly. tests/integration/suite.tswires thestdio,2025-11-25(streamable HTTP) and2026-07-28(stateless HTTP) transport dimensions into one shared suite. Add new integration cases to the matching capability array intests/test_kit/cases/*.cases.ts(registration, tools, actors, apps, tasks, storage, payments) — each is a plainCase[]({ name, isDeploymentTest, run, ... }), registered viaregisterCases(name, cases, ctx). Mark a caseisDeploymentTest: trueonly if it's worth running againstapify-mcp-server-internal's live staging and production deploys — the flag doesn't just share the case, it makes internal execute it for real on every release (see DEVELOPMENT.md). Shared assertion helpers live intests/test_kit/helpers.ts. Cases that share expensive setup (e.g. one seeded Actor run, seestorage.cases.ts'snormalModeRunFixture) do so viactx.getFixture(fixture), memoized once per transport dimension — not a vitestbeforeAll, so any subset of cases can share it while staying flatCaseobjects.- Follow existing test patterns (names, structure) — check neighboring files.
- Test naming:
describe('fnName()'), plain-verbit()names (noshouldprefix). Group with nesteddescribe()per method when a factory/class exposes several.
External dependencies
IMPORTANT: This package (@apify/actors-mcp-server) is used in the private apify-mcp-server-internal repository for the hosted server.
Changes here may affect that server.
Breaking changes must be coordinated; check whether updates are needed in apify-mcp-server-internal before submitting a PR.
Public/internal repo separation
- Public repo = core MCP server logic, interfaces, types (with generic/plain data types only)
- Internal repo = backend/DB/proprietary logic (Redis, MongoDB, IAM auth, multi-node)
- Never import private Apify libraries or internal DB schemas into the public repo — external users can't install them
- Expose methods on
ActorsMcpServer, not raw data exports via./internals— minimize the coupling surface - When designing a new feature, ask: can this land in one repo? Prefer exposing a method or interface over exporting internals that the other repo re-implements
Public/internal integration tests ownership
- MCP and package-logic tests go in
tests/integration/suite.tshere. Hosted-only behavior (auth, rate limiter, Caddy, multi-node) lives inapify-mcp-server-internal, not here. - Flag PRs that touch what the hosted server consumes —
internals.jsexports,_meta,structuredContent,clientInfo-based logic,?ui=/?payment=parsing, notification timing. Internal's contract suite likely needs a matching test. - Never delete a test here thinking internal covers it. This repo is the source; internal only smoke-tests that our output survives its middleware. Full rules: DEVELOPMENT.md → Test organization across repos.
Code conventions
- Follow CONTRIBUTING.md for all naming and coding standards. It is the single source of truth for naming rules (function verbs, boolean prefixes, type suffixes, enumerations, file names, etc.), string formatting, parameters, error handling, and anti-patterns. Read it before writing code.
- Validate tool inputs with Zod. No ad-hoc shape checks.
- Reference tool names via the
HELPER_TOOLSas constobject, not hardcoded strings (exception: integration tests). - Apps vs default mode: only
*-widgettools differ between modes. All non-widget tools (call-actor,get-actor-run, direct actor tools,search-actors,fetch-actor-details) share a single implementation across modes. - Per-directory detail lives in the child
AGENTS.mdfiles (see Child docs below). - Always follow the latest MCP spec and MCP Apps spec.
Child docs — read the one for the directory you're editing
- src/AGENTS.md — source map: entry points + the
mcp/tools/payments/resources/webchild docs.
Further reading
- DEVELOPMENT.md — project structure, setup, build system, hot-reload workflow, two-phase tool loading, manual MCP testing.
- CONTRIBUTING.md — naming and coding standards (single source of truth).
- res/ — ephemeral working notes only (in-flight checklists, dated experiment records). Not a reference: durable facts live in
AGENTS.md, decision rationale in the docstring of the code that owns it.
Keep AGENTS.md current
If your diff changes a fact, command, or constant stated in an AGENTS.md (or a doc it links as the owner) within the directory you touched or its parents, update that doc in the same PR. pnpm run check:agents validates the link tree.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

