# Dify API + MCP vs Langflow API + MCP

> Langflow and Dify score within a point of each other for workflow automation, 54.1 and 53.4 out of 100. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/dify-vs-langflow
- Markdown: https://www.anchorterminal.com/compare/dify-vs-langflow.md (~4,150 tokens)
- Slim: https://www.anchorterminal.com/compare/dify-vs-langflow.min.md (~1,030 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/dify-vs-langflow.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-23

Langflow API + MCP and Dify API + MCP score within a point of each other on agent readiness, 54.1 (C) and 53.4 (D). Dify API + MCP leads on schema & documentation, agent ergonomics and transparency & trust. Both do workflow automation.

- Dify API + MCP: grade D, 53.4/100, rank #1112 of 1654. Markdown https://www.anchorterminal.com/tools/dify.md · JSON https://www.anchorterminal.com/api/v1/tools/dify.json
- Langflow API + MCP: grade C, 54.1/100, rank #1091 of 1654. Markdown https://www.anchorterminal.com/tools/langflow.md · JSON https://www.anchorterminal.com/api/v1/tools/langflow.json
- Best workflow automation platforms with APIs for AI agents: https://www.anchorterminal.com/best/workflow-automation/index.md
- All 209 workflows comparisons: https://www.anchorterminal.com/compare/workflow-automation/index.md

## Which one, for what

### Dify API + MCP (D)

Good 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:
- Schema & documentation, 90 against 78
- Agent ergonomics, 81 against 52
- Transparency & trust, 62 against 56

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

### Langflow API + MCP (C)

Good for: A team that self-hosts and wants to build LangChain-style flows visually and expose them to agents as MCP tools.

Ahead on:
- Reliability, 75 against 40
- Payments & pricing, 90 against 45

Also in its favour:
- Open source

Watch for: 38 advisories from December 2025 to October 2026, 14 Critical, and CVE-2026-33017 and CVE-2025-34291 are on CISA's exploited list


## Why the edge

### Payments & pricing: Langflow API + MCP +45

- Dify API + MCP (45): No x402, MPP or L402 (0). Cloud plan prices are public, per workspace per year, with no per-call price (15). Cloud Sandbox is free with 5,000 API calls a month and Community Edition is free to self-host with the full API (30). A person signs up in a browser or installs an instance and creates the key in the console (0). Total 45.
- Langflow API + MCP (90): Free, self-hosted software under MIT with nothing to buy for the API or MCP server (30 + 30 + 30). No machine payment protocol (0). IBM Elite Support is a paid support subscription, not access. Total 90.

### Reliability: Langflow API + MCP +35

- 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.
- Langflow API + MCP (75): Graded as software the operator runs, since the docs describe no first-party hosted service. Installs from the official `langflow` package on PyPI or a Docker image, with Python 3.10 to 3.14 stated (20). Public CI on main with unit, integration, migration and cross-platform tests, and CodeQL, passing status not read (15 of 25). About 1,340 open issues and pull requests per GitHub's search API, reply times not read (10 of 25). Release notes list breaking changes per minor version and releases follow semver patch lines (15). 1.0.0 on 24 June 2024 (15). Total 20+15+10+15+15 = 75.

### Agent ergonomics: Dify API + MCP +29

- Dify API + MCP (81): The MCP server exposes one tool per app, the app itself (25). Lists take `limit` and cursors, logs filter by status and time, responses can be blocking or streamed (16). One error envelope with stable codes and a retry guide (20). No readOnlyHint or destructiveHint on the MCP tool, idempotency keys only on agent knowledge base endpoints, a stop endpoint for running tasks (8). Every call needs a `user` value. Official Node.js (`dify-client` 3.1.0) and PHP clients in the repository, plus the `difyctl` CLI (12). Total 25+16+20+8+12 = 81.
- Langflow API + MCP (52): MCP tools are the project's flows, and the owner switches each on or off, so the list is as long as the project (20). Flow and log lists take page and size, monitor endpoints filter by flow and session (12). Errors are FastAPI detail messages with no documented codes (8). No readOnlyHint, destructiveHint or idempotency keys (0). Few required fields on a run, a TypeScript client and the Python `lfx` package (12). Total 20+12+8+0+12 = 52.

### Schema & documentation: Dify API + MCP +12

- Dify API + MCP (90): Public OpenAPI 3.0.1 file for the Service API, 113 paths and 142 operations, and the MCP tool's input schema is built from the app's input form (25). llms.txt with Markdown copies of every page (10). Each endpoint page says which app types it serves, and the guides say when to use blocking or streaming (16). 66 enums and required fields in the spec, though app `inputs` are an object whose keys depend on the app (12). 778 examples and per-endpoint error codes (15). Versioned at /v1 and tagged releases with notes on GitHub, but the spec itself carries version 1.0.0 and no dated changelog sits in the docs (12). Total 90.
- Langflow API + MCP (78): Each instance serves an OpenAPI file at /docs, and every MCP tool's input schema is built from the flow's inputs (25). llms.txt at docs.langflow.org (10). MCP descriptions are written by the flow's owner and default to the flow ID or "Tool generated from flow", and the docs explain why names matter (10). Runs take `input_value` as text and `tweaks` as a free-form object keyed by component (8). curl, Python and JavaScript examples on every endpoint page, but no documented set of error responses (10). /v1 and /v2 APIs, versioned docs and per-version release notes (15). Total 78.

### Transparency & trust: Dify API + MCP +6

- 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.
- Langflow API + MCP (56): MIT licence (30). No privacy policy or terms found from www.langflow.org, and the telemetry page documents each event's fields and says free-form error messages are dropped (15). Release notes carry a breaking-changes section per minor version and deprecated endpoints are marked, with no stated notice period (15). Telemetry on by default through Segment, every field documented, opt-out with `DO_NOT_TRACK` (18). Total 78.

## Score by category

| Category | Weight | Dify API + MCP | Langflow API + MCP | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 40 | 75 | Langflow API + MCP +35 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 90 | 78 | Dify API + MCP +12 |
| Agent ergonomics | 13% | 81 | 52 | Dify API + MCP +29 |
| Security & auth | 14% | 58 | 55 | Dify API + MCP +3 |
| Payments & pricing | 10% | 45 | 90 | Langflow API + MCP +45 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 85 | 82 | Dify API + MCP +3 |
| Transparency & trust | 7% | 62 | 56 | Dify API + MCP +6 |
| Negative events | ≤15 | -11 | -15 | |
| **Total** | | **53.4 · D** | **54.1 · C** | |

## Facts side by side

| Fact | Dify API + MCP | Langflow API + MCP |
| --- | --- | --- |
| Kind | HTTP API | HTTP API |
| Vendor | LangGenius | DataStax (IBM) |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP, Streamable HTTP | HTTP, Streamable HTTP, SSE (legacy) |
| Auth | API key | API key |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | Dify Open Source License (Apache 2.0 with conditions) | MIT |
| Tools exposed | 1 | none |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-11-18 | 2026-11-17 |
| Terms last updated | no date given | no document linked |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | not found in the text | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | not found in the text | not read yet |
| Arbitration or class-action waiver | yes | not read yet |
| Popularity | 162k stars | 157k stars |

## 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.

**Langflow API + MCP.** Flows run over a documented REST API with examples in three languages, and each project is its own MCP server with API-key authentication by default. Since December 2025, 38 advisories were published for the package, 29 Critical or High, and two were exploited in the wild. There is no first-party hosted service, so the operator patches and runs it.

## 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

### Langflow API + MCP

1. Check the instance version first. Anything before the 7 October 2026 fixes carries Critical advisories, two of them exploited
2. Send the API key in the `x-api-key` header, never in the query string, where logs and proxies can keep it
3. Before you call a flow's MCP tool, read its description. Unnamed flows appear under their UUID with a generic description
4. Use a key from a user with access to only the flows the task needs, because a key has all of that user's permissions
5. Pass `stream=false` to `/api/v1/run/<flow_id>` for one JSON result, or stream for long flows

## Questions

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

Langflow API + MCP and Dify API + MCP score within a point of each other on agent readiness, 54.1 (C) and 53.4 (D). Dify API + MCP leads on schema & documentation, agent ergonomics and transparency & trust.

### Do Dify API + MCP and Langflow API + MCP need an API key?

Both need an API key.

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

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

### Are Dify API + MCP and Langflow API + MCP open source?

No open-source release is listed for Dify API + MCP. Langflow API + MCP is open source (MIT).


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/dify-vs-langflow.json, and with the fewest tokens: https://www.anchorterminal.com/compare/dify-vs-langflow.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "dify", "b": "langflow"}`. From a terminal: `anchor compare dify langflow`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/dify.json and https://www.anchorterminal.com/api/v1/tools/langflow.json

## Other comparisons with Dify API + MCP or Langflow API + MCP

- [Activepieces API + MCP vs Dify API + MCP](https://www.anchorterminal.com/compare/activepieces-vs-dify.md)
- [Activepieces API + MCP vs Langflow API + MCP](https://www.anchorterminal.com/compare/activepieces-vs-langflow.md)
- [Microsoft Copilot Studio MCP vs Dify API + MCP](https://www.anchorterminal.com/compare/copilot-studio-mcp-vs-dify.md)
- [Microsoft Copilot Studio MCP vs Langflow API + MCP](https://www.anchorterminal.com/compare/copilot-studio-mcp-vs-langflow.md)
- [Dify API + MCP vs Gumloop](https://www.anchorterminal.com/compare/dify-vs-gumloop.md)
- [Dify API + MCP vs Kestra](https://www.anchorterminal.com/compare/dify-vs-kestra.md)
- [Dify API + MCP vs Kognitos](https://www.anchorterminal.com/compare/dify-vs-kognitos.md)
- [Dify API + MCP vs Make API + MCP](https://www.anchorterminal.com/compare/dify-vs-make.md)
- [Dify API + MCP vs Cooper (Mandl)](https://www.anchorterminal.com/compare/dify-vs-mandl-cooper.md)
- [Dify API + MCP vs Motive Agents](https://www.anchorterminal.com/compare/dify-vs-motive-agents.md)
- [Dify API + MCP vs n8n API + MCP](https://www.anchorterminal.com/compare/dify-vs-n8n.md)
- [Dify API + MCP vs Node-RED](https://www.anchorterminal.com/compare/dify-vs-node-red.md)
- [Dify API + MCP vs Paragon ActionKit + MCP](https://www.anchorterminal.com/compare/dify-vs-paragon.md)
- [Dify API + MCP vs Pipedream API + MCP](https://www.anchorterminal.com/compare/dify-vs-pipedream.md)
- [Dify API + MCP vs Microsoft Power Automate](https://www.anchorterminal.com/compare/dify-vs-power-automate.md)
- [Dify API + MCP vs Prismatic](https://www.anchorterminal.com/compare/dify-vs-prismatic.md)
- [Dify API + MCP vs Tray.ai API + MCP](https://www.anchorterminal.com/compare/dify-vs-tray.md)
- [Dify API + MCP vs Windmill API + MCP](https://www.anchorterminal.com/compare/dify-vs-windmill.md)
- [Dify API + MCP vs Workato API + MCP](https://www.anchorterminal.com/compare/dify-vs-workato.md)
- [Gumloop vs Langflow API + MCP](https://www.anchorterminal.com/compare/gumloop-vs-langflow.md)
- [Kestra vs Langflow API + MCP](https://www.anchorterminal.com/compare/kestra-vs-langflow.md)
- [Kognitos vs Langflow API + MCP](https://www.anchorterminal.com/compare/kognitos-vs-langflow.md)
- [Langflow API + MCP vs Make API + MCP](https://www.anchorterminal.com/compare/langflow-vs-make.md)
- [Langflow API + MCP vs Cooper (Mandl)](https://www.anchorterminal.com/compare/langflow-vs-mandl-cooper.md)
- [Langflow API + MCP vs Motive Agents](https://www.anchorterminal.com/compare/langflow-vs-motive-agents.md)
- [Langflow API + MCP vs n8n API + MCP](https://www.anchorterminal.com/compare/langflow-vs-n8n.md)
- [Langflow API + MCP vs Node-RED](https://www.anchorterminal.com/compare/langflow-vs-node-red.md)
- [Langflow API + MCP vs Paragon ActionKit + MCP](https://www.anchorterminal.com/compare/langflow-vs-paragon.md)
- [Langflow API + MCP vs Pipedream API + MCP](https://www.anchorterminal.com/compare/langflow-vs-pipedream.md)
- [Langflow API + MCP vs Microsoft Power Automate](https://www.anchorterminal.com/compare/langflow-vs-power-automate.md)
- [Langflow API + MCP vs Prismatic](https://www.anchorterminal.com/compare/langflow-vs-prismatic.md)
- [Langflow API + MCP vs Tray.ai API + MCP](https://www.anchorterminal.com/compare/langflow-vs-tray.md)
- [Langflow API + MCP vs Windmill API + MCP](https://www.anchorterminal.com/compare/langflow-vs-windmill.md)
- [Langflow API + MCP vs Workato API + MCP](https://www.anchorterminal.com/compare/langflow-vs-workato.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
