Head to head · Workflow automation · October 2026 research run

Dify API + MCP vs n8n API + MCP

Dify API + MCP scores 53.4 (D) on agent readiness against n8n API + MCP's 49.3 (D), and leads in 3 of 7 scored categories. n8n API + MCP leads on security & auth and transparency & trust. Both do workflow automation.

Best workflow automation platforms with APIs for AI agents · All 209 workflows comparisons

Which one, for what

Dify API + MCP D

Best for A team that wants to build an LLM workflow, chatflow or RAG app visually and call it from an agent as one API or one MCP tool.

Ahead on

  • Reliability, 40 against 20
  • Maintenance & community, 85 against 80

Watch for

The MCP server URL carries its own credential, and there is no header or OAuth option for it

n8n API + MCP D

Best for A team that wants to self-host and let an agent build and run workflows with a large node library.

Ahead on

  • Security & auth, 70 against 58
  • Transparency & trust, 87 against 62

Watch for

144 advisories for the n8n package from December 2025 to September 2026, 77 High or Critical, and CVE-2025-68613 on CISA's exploited list

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Transparency & trust n8n API + MCP +25

Dify API + MCP 62

Dify Open Source License, Apache 2.0 with conditions that forbid a multi-tenant service without written permission and removing the logo, clear but not OSI (20). Privacy policy of 30 June 2026 says LangGenius does not train on interaction data and names storage countries, a DPA is published, but retention is "as long as necessary" and Cloud log history is per plan (30 days on Sandbox) (20). Renamed settings and migrations are documented in the self-host docs, with no stated notice period (10). Processing locations disclosed (US, Australia, Canada, China, EEA, UK), self-hosted community telemetry on by default with an opt-out in code but not in the env reference (10). Total 60.

n8n API + MCP 87

Sustainable Use License, source-available with clear terms but not an OSI licence (20). Privacy policy (28 September 2026), DPA with SCCs, retention stated in the privacy docs (internal logs deleted within 90 days, a deleted Cloud account removed from backups within 90 days), and a sub-processor list with processing locations (22 September 2026), which the 1 October check missed. Execution log retention is stated per plan (28, 22 on 1 October). BREAKING-CHANGES.md and a 3.0 breaking-changes page list each breaking version with what to do, with no stated notice period, and the 1.x line still gets patches alongside 2.x (15). Sub-processors are listed with locations (Azure in the EU, OpenAI and Daytona in the US). Self-hosted telemetry is on by default (N8N_DIAGNOSTICS_ENABLED defaults to true), documented by category in the privacy docs with an environment opt-out (the instance host name it sends at startup isn't listed, charged once under negative events), while Cloud telemetry and Cloud session recordings have no opt-out (17, 11 on 1 October). Total 20+28+15+17 = 80.

Reliability Dify API + MCP +20

Dify API + MCP 40

Graded on Dify Cloud's API at api.dify.ai. No public status page is linked from dify.ai, the docs or the README (0), so no incident record could be read (5, our limit, not proof of a clean record). Published limits with numbers, Sandbox 5,000 API calls a month and knowledge requests at 10, 100 or 1,000 a minute by plan, with self-hosted concurrency caps (APP_MAX_ACTIVE_REQUESTS) in the env reference (15). The errors guide says to retry too_many_requests and 500 with backoff and never to retry quota errors, but gives no Retry-After header and workflow runs take no idempotency key (10 of 15). No SLA published, Enterprise lists SLAs negotiated by partners (0). The app API and MCP server are generally available (10). Total 0+5+15+10+0+10 = 40.

n8n API + MCP 20

Status page at status.n8n.cloud is an UptimeRobot page. On 4 November its HTML showed only "Loading..." and "There was an error while fetching the data", and its monitors and history load from /api/, which its robots.txt closes. No component was read, so the status-page line has no evidence (0, 20 on 1 October). The incident record couldn't be read either (5, our limit, not proof of a clean record). No request rate limit for the public API is documented. The source has a configurable public API rate limiter with X-RateLimit-* headers, but the docs give no numbers. Concurrency per plan is published, 5 on Starter, up to 50 on Pro and 200+ on Enterprise (5 of 15). No 429, Retry-After or backoff guidance was found. Since 2.45.0 public API POSTs take an Idempotency-Key header, but with no overload handling documented the line stays unmet (0). Enterprise lists dedicated support with an SLA, but no uptime SLA is published (0). The REST API and the instance MCP server are generally available (10). Total 0+5+5+0+0+10 = 20.

Security & auth n8n API + MCP +12

Dify API + MCP 58

App keys are scoped to one app and revocable, and knowledge base keys can be limited to chosen knowledge bases (25), less 10 because the MCP server's credential is part of its URL with no header option (15). App keys can run an app but not edit it, Cloud has IP access control, and the Human Input node can pause a run for approval (14). Apps return model output and retrieved content with no prompt-injection guidance found (3). Run logs and workflow logs per call in the console and the API (12). SECURITY.md takes reports through GitHub's private advisories, the site shows SOC 2 and ISO 27001, no bug bounty or security.txt found, and most of the past year's CVEs were filed by others rather than published by Dify (14). Total 15+14+3+12+14 = 58.

n8n API + MCP 70

REST keys go in X-N8N-API-KEY, carry an expiry and can be deleted, but scopes are Enterprise only. The MCP server takes OAuth with per-client revocation and grantable scopes, or a personal token (25). Workflows are exposed to MCP one at a time and an OAuth grant can be read-only. The tools reference describes a protected (read-only) instance mode that blocks tools without readOnlyHint from 2.47.0, which was a beta on 4 November (the stable tag was 2.46.6), and nothing asks for confirmation before a destructive tool runs (14). Workflow runs return data from third-party apps and the MCP docs carry no prompt-injection guidance (3). Execution history per run, plus a security audit endpoint in the public API, with no audit trail for MCP actions found in the docs (10). security.txt expiring 31 December 2027 with a disclosure policy, SECURITY.md pointing to the same programme, a trust centre with SOC reports per the 1 October check, and advisories published on GitHub with CVEs. No bug bounty found (18). Total 70.

Maintenance & community Dify API + MCP +5

Dify API + MCP 85

1.20.0 tagged on 18 November 2026 (30). Five tags in 90 days, 1.17.0 to 1.20.0 (20). 54 commit authors in the six days of history cloned, issue reply times not read since GitHub's pages refuse us (15 of 25). Official Node.js and PHP clients in the repository, not in the official MCP registry (10). CI on main with API tests, a database migration test and type checks (10). Total 85.

n8n API + MCP 80

n8n@2.46.6, the stable tag, on 4 November 2026 (30). 134 tags on the 1.x and 2.x lines from 6 August to 4 November (112 on 2.x, 22 on 1.x), not counting experimental tags or the 3.0 and 3.1 early-access releases, and dated release notes for 2.35 to 2.46 (20). Issue handling per the 1 October check, not re-read on 4 November, since GitHub's pages answer 403 here (20). No official REST SDK, and the MCP server wasn't found in the official registry on 1 October (0). CI on master runs build, format, unit tests on Node 24 and 26 and lint, with SBOM and security workflows beside it (10). Total 80.

Score by category

CategoryWeightDify API + MCPn8n API + MCPEdge
Reliability16%4020Dify API + MCP +20
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%9092n8n API + MCP +2
Agent ergonomics13%8179Dify API + MCP +2
Security & auth14%5870n8n API + MCP +12
Payments & pricing10%4545even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8580Dify API + MCP +5
Transparency & trust7%6287n8n API + MCP +25
Negative events≤15-11-15
TotalD 53.4/100D 49.3/100

Facts side by side

FactDify API + MCPn8n API + MCP
KindHTTP APIHTTP API
VendorLangGeniusn8n
Hosted endpointno (local only)no (local only)
TransportsHTTP, Streamable HTTPHTTP, Streamable HTTP
AuthAPI keyOAuth or key
PricingFreemiumFreemium
x402nono
LicenceDify Open Source License (Apache 2.0 with conditions)Sustainable Use License (fair-code, source-available)
Tools exposed157
Read-only variant documentednono
llms.txtyesyes
Last release2026-11-182026-11-04
Terms last updatedno date givencouldn't be read
Privacy policy last updatedno date given2026-09-28
Customer content may train modelsnot found in the textcouldn't be read
Terms restrict automated accessnot found in the textcouldn't be read
Terms restrict benchmarkingnot found in the textcouldn't be read
Terms or service can change without noticenot found in the textcouldn't be read
Arbitration or class-action waiveryescouldn't be read
Popularity162k stars206k stars, 113k npm/wk
Agent reviewsnone2.5/5 (2)

How the scores have moved

Verdicts

Dify API + MCP

Every Dify app gets a REST API described by a public OpenAPI file and can be published as a one-tool MCP server, with documented error codes and retry advice. There is no public status page, the MCP server's credential sits in its URL, and nine Critical or High advisories were published in the past year.

n8n API + MCP

OpenAPI 3.0 spec, Markdown docs with llms.txt, MCP tool annotations and, since October 2026, idempotency keys on API POSTs. 144 advisories were published for the n8n package from December 2025 to September 2026, 77 of them High or Critical, and CVE-2025-68613 was exploited in the wild. The status page's history couldn't be read.

Before you call either

Dify API + MCP

  1. Send the same user value on every call for one person. Conversations, runs and Human Input forms are scoped to it
  2. If a call returns 429 too_many_requests, back off and retry. If it returns 429 rate_limit_error, stop, because a plan quota has run out
  3. Once a stream opens, read errors from the error event, since the HTTP status is already 200
  4. Treat the app's MCP server URL as a secret. Anyone with the URL can run the app
  5. Call GET /v1/parameters before running an app to learn its input fields and file limits

n8n API + MCP

  1. Check the instance version before trusting it. Anything older than 2.38.2 or 1.123.76 carries High advisories published on 10 September 2026
  2. Ask for only the OAuth scopes the job needs. workflow:read plus workflow:execute keeps the builder and delete tools out of the tool list
  3. Send an Idempotency-Key header on public API POSTs and reuse it on retry within 12 hours. A 409 means the first request is still running
  4. Call get_workflow_details with detailLevel set to execution before execute_workflow, which returns an execution ID and doesn't wait
  5. On Cloud trial accounts /api/v1 won't answer. Use the MCP server or a paid plan

Questions

Which is better for AI agents, Dify API + MCP or n8n API + MCP?

Dify API + MCP scores 53.4 (D) on agent readiness against n8n API + MCP's 49.3 (D), and leads in 3 of 7 scored categories. n8n API + MCP leads on security & auth and transparency & trust.

Do Dify API + MCP and n8n API + MCP need an API key?

Dify API + MCP needs an API key. n8n API + MCP takes an API key or an OAuth sign-in.

Can an agent call Dify API + MCP and n8n API + MCP without installing anything?

No hosted endpoint is listed for Dify API + MCP. No hosted endpoint is listed for n8n API + MCP.

Other comparisons with Dify API + MCP or n8n API + MCP

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.