{
  "data": {
    "a": {
      "slug": "haystack",
      "name": "Haystack",
      "vendor": "deepset",
      "vendorUrl": "https://haystack.deepset.ai/",
      "company": "deepset.ai",
      "kind": "framework",
      "category": "frameworks",
      "summary": "Haystack is deepset's open-source Python framework for building agents and retrieval pipelines, with an Agent component, MCP tool loading, human approval hooks, pipeline breakpoints and integrations for model providers and vector stores.",
      "url": "https://www.anchorterminal.com/tools/haystack",
      "markdownUrl": "https://www.anchorterminal.com/tools/haystack.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/haystack.min.md",
      "cardUrl": "https://www.anchorterminal.com/tools/haystack.card.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/haystack.json",
      "dns": "haystack.grade.anchorterminal.com",
      "repo": "https://github.com/deepset-ai/haystack",
      "license": "Apache-2.0",
      "transports": [],
      "packages": [
        {
          "registry": "pypi",
          "name": "haystack-ai"
        },
        {
          "registry": "pypi",
          "name": "mcp-haystack"
        },
        {
          "registry": "pypi",
          "name": "hayhooks"
        }
      ],
      "auth": "none",
      "authNotes": "A library with no credentials of its own. The Agent takes a chat generator the developer chooses, and each model or store integration reads its own key, such as an OpenAI key for OpenAIChatGenerator.",
      "pricing": "free",
      "pricingNotes": "Free and open source under Apache-2.0, with nothing to buy for the framework. You pay for model calls. deepset sells enterprise support and the Haystack Enterprise Platform separately, with a free trial and no public prices.",
      "priceSummary": "Free · OSS",
      "where": "library",
      "x402": {
        "level": "no",
        "evidence": "No x402, MPP or L402 in the Haystack docs or the repository (checked 2026-11-23).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 27082,
        "npmWeekly": null,
        "pypiWeekly": null,
        "asOf": "2026-11-23"
      },
      "docsUrl": "https://docs.haystack.deepset.ai/docs/intro",
      "llmsTxt": "https://docs.haystack.deepset.ai/llms.txt",
      "capabilities": [
        "agent.framework",
        "agent.multi-agent",
        "agent.durable",
        "agent.mcp-client"
      ],
      "tags": [
        "framework",
        "python",
        "open-source",
        "llms-txt",
        "mcp",
        "rag",
        "telemetry-on",
        "human-approval"
      ],
      "lastRelease": "2026-11-10",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 77.8,
        "grade": "BB",
        "agentReady": true,
        "rank": 72,
        "ranked": true,
        "rankOf": 1654,
        "categoryRank": 9,
        "methodology": "1.0",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 75,
          "maintenance": 95,
          "payments": 90,
          "reliability": 81,
          "schema": 88,
          "security": 63,
          "transparency": 74
        },
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-23"
        },
        "negative": -2,
        "negativeNotes": [
          "2026-11-10. Release 3.5.0 fixed remote code execution paths in safe-mode pipeline loading (custom Jinja filters on OutputAdapter and ConditionalRouter reaching the deserialiser's own allowlist functions) and a path boundary gap in FileSystemToolResultStore, documented in the release notes. OSV lists no advisory for them. Fixed and documented, so 2 points. https://github.com/deepset-ai/haystack/tree/v3.5.0/releasenotes/notes"
        ],
        "verdict": "An Apache-2.0 Python framework with an Agent component, per-tool approval hooks, MCP tools, failure snapshots, a written deprecation policy and releases every few weeks. It sends anonymous usage telemetry to deepset's PostHog by default, including agent model and tool names, until HAYSTACK_TELEMETRY_ENABLED is set to False.",
        "bestFor": "Python teams building retrieval-heavy agents or pipelines who want explicit components, approval hooks and resumable runs.",
        "strengths": [
          "ConfirmationHook asks a person to confirm, change or reject a tool call, with a policy set per tool",
          "Pipelines save a snapshot of the last valid state when a run fails, and breakpoints pause and resume runs",
          "A written breaking change policy keeps deprecated functionality working for one minor release with a FutureWarning",
          "Six releases from 3.1.1 to 3.5.0 between 3 September and 10 November 2026, plus nightly builds",
          "Full documentation in one llms.txt, with versioned docs for 3.2 to 3.6"
        ],
        "weaknesses": [
          "Anonymous telemetry to PostHog EU is on by default and includes the Agent's model and tool names",
          "Version numbers do not follow semantic versioning, and minor releases remove deprecated functionality",
          "SECURITY.md puts input validation, SSRF prevention and untrusted pipeline files outside Haystack's scope",
          "Remote code execution paths in pipeline deserialisation were fixed in 3.5.0 through release notes, with no published advisory found",
          "MCP tools need the separate mcp-haystack package"
        ],
        "agentNotes": [
          "Set HAYSTACK_TELEMETRY_ENABLED=False before importing haystack if usage events must not leave the machine",
          "Add a ConfirmationHook before tools that send, pay or delete",
          "Pass tool_names to MCPToolset so only the needed tools from an MCP server load",
          "Load pipeline YAML and resume snapshots only from trusted sources, since deserialisation can run code",
          "Pin haystack-ai to a minor version and read the release notes before upgrading"
        ],
        "metrics": {
          "kind": "local",
          "measured": false
        },
        "reviewCount": 0,
        "avgRating": 0,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "BB",
            "methodology": "1.0",
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 77.8
          }
        ],
        "editorialScores": {
          "ergonomics": 75,
          "maintenance": 95,
          "payments": 90,
          "reliability": 81,
          "schema": 88,
          "security": 63,
          "transparency": 90
        },
        "provenanceScore": 58,
        "checked": {
          "categories": {
            "ergonomics": "2026-11-23",
            "maintenance": "2026-11-23",
            "payments": "2026-11-23",
            "reliability": "2026-11-23",
            "schema": "2026-11-23",
            "security": "2026-11-23",
            "transparency": "2026-11-23"
          },
          "last": "2026-11-23",
          "oldest": "2026-11-23",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "install": "pip install haystack-ai   # MCP tools: pip install mcp-haystack"
      },
      "letme": {
        "capability": "https://letme.dev/agent.framework",
        "tool": "https://letme.dev/haystack"
      },
      "area": "frameworks",
      "provenance": {
        "legalEntity": "deepset GmbH",
        "domain": "deepset.ai",
        "domainRegistered": "",
        "endpointOnVendorDomain": null,
        "terms": "https://www.deepset.ai/terms-and-conditions",
        "privacy": "https://www.deepset.ai/privacy-policy",
        "statusPage": "",
        "changelog": "https://github.com/deepset-ai/haystack/releases",
        "securityTxt": "unknown",
        "checked": "2026-11-23",
        "notes": [
          "deepset GmbH, Zinnowitzerstr. 1, 10115 Berlin, registered at Amtsgericht Berlin-Charlottenburg as HRB 197429 B, with managing directors Milos Rusic and Malte Pietsch, per the imprint.",
          "The framework is Apache-2.0. The privacy policy, updated 23 October 2026, covers deepset's website, contact and Enterprise Platform accounts and does not mention framework telemetry; the telemetry page in the docs describes it.",
          "robots.txt on haystack.deepset.ai and docs.haystack.deepset.ai answered 404, so those hosts publish no rules. www.deepset.ai publishes rules that allowed the pages read.",
          "trust.deepset.ai rendered no text to our reader, so its certifications weren't read. security.txt wasn't checked."
        ],
        "score": 58
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/haystack.json"
    },
    "answer": "Mastra and Haystack score within a point of each other on agent readiness, 78 (A) and 77.8 (BB).",
    "b": {
      "slug": "mastra",
      "name": "Mastra",
      "vendor": "Kepler Software, Inc.",
      "vendorUrl": "https://mastra.ai",
      "company": "mastra.ai",
      "kind": "framework",
      "category": "frameworks",
      "summary": "Open-source TypeScript framework from Mastra for building agents and workflows, with memory, RAG, evals, tracing, an MCP client and server, and a local Studio. An optional hosted platform runs deployments and observability.",
      "url": "https://www.anchorterminal.com/tools/mastra",
      "markdownUrl": "https://www.anchorterminal.com/tools/mastra.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/mastra.min.md",
      "cardUrl": "https://www.anchorterminal.com/tools/mastra.card.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/mastra.json",
      "dns": "mastra.grade.anchorterminal.com",
      "repo": "https://github.com/mastra-ai/mastra",
      "license": "Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing",
      "transports": [],
      "packages": [
        {
          "registry": "npm",
          "name": "@mastra/core"
        },
        {
          "registry": "npm",
          "name": "@mastra/mcp"
        },
        {
          "registry": "npm",
          "name": "mastra"
        }
      ],
      "auth": "api-key",
      "authNotes": "The framework has no account of its own. The model router takes `provider/model` strings and each provider's own key. The hosted Mastra platform needs an account.",
      "pricing": "free",
      "pricingNotes": "Free and open source. You pay for model calls. The hosted platform has a $0 Starter plan with 100K observability events and 24 CPU hours, then $10 per 100K events and $0.35 a CPU hour, and Teams at $250 a month (https://mastra.ai/pricing, checked 2026-11-06).",
      "priceSummary": "Free · OSS",
      "where": "library",
      "x402": {
        "level": "no",
        "evidence": "No x402, MPP or L402 in the Mastra docs, the repository or the pricing page (checked 2026-10-06).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 29383,
        "npmWeekly": 3116983,
        "pypiWeekly": null,
        "asOf": "2026-11-06"
      },
      "docsUrl": "https://mastra.ai/docs",
      "llmsTxt": "https://mastra.ai/llms.txt",
      "capabilities": [
        "agent.framework",
        "agent.durable",
        "agent.mcp-client",
        "agent.multi-agent"
      ],
      "tags": [
        "framework",
        "typescript",
        "open-source",
        "llms-txt",
        "mcp",
        "telemetry-default-on"
      ],
      "lastRelease": "2026-11-04",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 78,
        "grade": "A",
        "agentReady": true,
        "rank": 66,
        "ranked": true,
        "rankOf": 1654,
        "categoryRank": 8,
        "methodology": "1.0",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 92,
          "maintenance": 96,
          "payments": 90,
          "reliability": 87,
          "schema": 98,
          "security": 67,
          "transparency": 72
        },
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-06"
        },
        "negative": -8,
        "negativeNotes": [
          "2026-06-17. Malicious versions of Mastra's npm packages were published, among them @mastra/core 1.42.1 at 01:15 UTC, and GitHub malware advisories that day (GHSA-pp62-grrw-hvfp and others) say any machine that installed one should be treated as fully compromised. All 21 Mastra packages we checked on OSV carry one. Mastra published clean versions the same day and the changelogs name an \"easy-day-js\" supply-chain incident, but we found no advisory or post-mortem from Mastra. Fixed and under four months old, so 8 points. https://osv.dev/vulnerability/MAL-2026-6011"
        ],
        "verdict": "A TypeScript framework with agents, workflows with suspend and resume, memory, an MCP client and server, per-server tool approval and built-in guardrail processors including a prompt-injection detector. On 17 June 2026 malicious versions of its npm packages were published, and the CLI, server and Studio send usage analytics by default, with token counts every 15 minutes.",
        "bestFor": "TypeScript teams that want agents, workflows, memory, evals and a local Studio in one framework.",
        "strengths": [
          "MCP client with requireToolApproval per server or per tool, allowedHosts and a curated environment for stdio servers",
          "Guardrail processors for prompt injection, PII, moderation and cost limits, run on input and output",
          "Workflows with snapshots, suspend and resume, and durable agents on Inngest or an evented engine",
          "Apache 2.0 core, 1.0 since 20 January 2026, with 27 releases of @mastra/core in 90 days to 6 November",
          "llms.txt with a when-to-use section and condensed instructions for coding agents"
        ],
        "weaknesses": [
          "Malicious versions of Mastra npm packages, including @mastra/core 1.42.1, were published on 17 June 2026",
          "CLI, server and Studio send usage analytics by default, including token counts every 15 minutes, off with MASTRA_TELEMETRY_DISABLED=1",
          "No SECURITY.md, no security.txt and no bug bounty found",
          "Code under ee/ is source-available under the Mastra Enterprise License, not Apache 2.0",
          "TypeScript only, Node 22.13 or newer"
        ],
        "agentNotes": [
          "Set MASTRA_TELEMETRY_DISABLED=1 in every environment that runs the CLI, the server or Studio",
          "Pin exact versions with a lockfile, and make sure no 17 June 2026 release such as @mastra/core 1.42.1 is installed",
          "Set requireToolApproval on MCP servers that write, and allowedHosts when server URLs come from configuration",
          "Add PromptInjectionDetector as an input processor when tools return web or user content",
          "Use supervisor agents through generate() or stream(). `.network()` is deprecated"
        ],
        "metrics": {
          "kind": "library",
          "measured": false
        },
        "reviewCount": 0,
        "avgRating": 0,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "A",
            "methodology": "1.0",
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 78
          }
        ],
        "editorialScores": {
          "ergonomics": 92,
          "maintenance": 96,
          "payments": 90,
          "reliability": 87,
          "schema": 98,
          "security": 67,
          "transparency": 72
        },
        "provenanceScore": 71,
        "checked": {
          "categories": {
            "ergonomics": "2026-11-06",
            "maintenance": "2026-11-06",
            "payments": "2026-11-06",
            "reliability": "2026-11-06",
            "schema": "2026-11-06",
            "security": "2026-11-06",
            "transparency": "2026-11-06"
          },
          "last": "2026-11-06",
          "lastMoved": "2026-11-13",
          "oldest": "2026-11-06",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "install": "npm create mastra@latest   # or: npm i @mastra/core @mastra/mcp"
      },
      "letme": {
        "capability": "https://letme.dev/agent.framework",
        "tool": "https://letme.dev/mastra"
      },
      "area": "frameworks",
      "provenance": {
        "legalEntity": "Kepler Software, Inc.",
        "domain": "mastra.ai",
        "domainRegistered": "2024-10-01",
        "endpointOnVendorDomain": null,
        "terms": "https://mastra.ai/terms-of-service",
        "privacy": "https://mastra.ai/privacy-policy",
        "statusPage": "https://statuspage.incident.io/mastra-platform",
        "changelog": "https://github.com/mastra-ai/mastra/blob/main/packages/core/CHANGELOG.md",
        "securityTxt": "none",
        "checked": "2026-11-06",
        "notes": [
          "The privacy policy names Kepler Software Inc as operator of mastra.ai and shows a last-published date of 25 April 2025.",
          "The licence file is copyright Kepler Software, Inc.",
          "mastra.ai/.well-known/security.txt returns 404 (rechecked 6 November 2026), and the repository has no SECURITY.md.",
          "RDAP gives mastra.ai a registration date of 2024-10-01.",
          "The status page covers the hosted platform, not the framework."
        ],
        "score": 71
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/mastra.json",
      "live": {
        "slug": "mastra",
        "vendorStatus": {
          "page": "https://statuspage.incident.io/mastra-platform",
          "indicator": "none",
          "summary": "All Systems Operational",
          "checkedAt": "2026-11-23T16:21:28.744813917Z"
        },
        "versions": [
          {
            "registry": "github",
            "name": "mastra-ai/mastra",
            "version": "@mastra/core@1.84.0",
            "released": "2026-11-18",
            "seenAt": "2026-11-23T00:26:56.306296805Z"
          },
          {
            "registry": "npm",
            "name": "@mastra/core",
            "version": "1.85.0",
            "seenAt": "2026-11-23T00:26:45.4293118Z"
          },
          {
            "registry": "npm",
            "name": "@mastra/mcp",
            "version": "2.10.0",
            "seenAt": "2026-11-23T00:26:48.797680358Z"
          },
          {
            "registry": "npm",
            "name": "mastra",
            "version": "1.40.1",
            "seenAt": "2026-11-23T00:26:52.430985497Z"
          }
        ],
        "githubStars": 29745,
        "npmWeekly": 4100719,
        "securityTxt": {
          "url": "https://mastra.ai/.well-known/security.txt",
          "state": "none",
          "checkedAt": "2026-11-22T16:41:26.074069167Z"
        },
        "llmsTxt": {
          "url": "https://mastra.ai/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-11-22T16:31:08.126756428Z"
        },
        "domain": {
          "domain": "mastra.ai",
          "registered": "2024-10-01",
          "source": "https://rdap.identitydigital.services/rdap/domain/mastra.ai",
          "checkedAt": "2026-11-22T16:10:26.229505202Z"
        },
        "pages": [
          {
            "url": "https://raw.githubusercontent.com/mastra-ai/mastra/main/packages/core/CHANGELOG.md",
            "kind": "changelog",
            "status": 200,
            "checkedAt": "2026-11-23T00:40:25.168702111Z",
            "changedAt": "2026-11-23T00:40:25.168702111Z",
            "fingerprint": "f63343c8c9a9"
          },
          {
            "url": "https://mastra.ai/pricing",
            "kind": "pricing",
            "status": 200,
            "checkedAt": "2026-11-23T00:32:12.259100682Z",
            "changedAt": "2026-11-20T23:10:21.106378567Z",
            "fingerprint": "f1f723ef1425"
          },
          {
            "url": "https://mastra.ai/privacy-policy",
            "kind": "privacy",
            "status": 200,
            "checkedAt": "2026-11-23T00:32:14.80313465Z",
            "changedAt": "2026-11-19T22:29:09.177003746Z",
            "fingerprint": "a5090695280e"
          },
          {
            "url": "https://mastra.ai/terms-of-service",
            "kind": "terms",
            "status": 200,
            "checkedAt": "2026-11-23T00:32:16.660841538Z",
            "changedAt": "2026-11-19T22:29:11.222905885Z",
            "fingerprint": "e679576cedc6"
          }
        ],
        "github": {
          "repo": "mastra-ai/mastra",
          "checkedAt": "2026-11-23T13:46:46.670541373Z",
          "stars": 29760,
          "archived": false,
          "issuesEnabled": true,
          "pushedAt": "2026-11-23T13:45:57Z",
          "openIssues": 511,
          "openPRs": 411,
          "issuesOpened90d": 2129,
          "issuesClosed90d": 1834,
          "prsMerged90d": 4908,
          "ci": {
            "branch": "main",
            "runs": 50,
            "success": 33,
            "failure": 0,
            "other": 17,
            "latest": "skipped",
            "latestAt": "2026-11-23T13:43:21Z"
          },
          "advisories": [
            {
              "ghsa": "GHSA-8982-g8xm-3x5h",
              "severity": "high",
              "published": "2026-10-12T15:25:50Z"
            },
            {
              "ghsa": "GHSA-xh92-rqrq-227v",
              "cve": "CVE-2025-61685",
              "severity": "medium",
              "published": "2025-09-24T15:48:47Z"
            }
          ],
          "replies": {
            "sampled": 4,
            "unanswered": 4
          }
        },
        "updatedAt": "2026-11-23T16:21:28.744813917Z"
      }
    },
    "edges": [
      {
        "by": 17,
        "category": "ergonomics",
        "leads": "mastra",
        "name": "Agent ergonomics",
        "reasons": {
          "a": "Framework reading. MCPToolset loads an MCP server's tools with a tool_names filter, and SearchableToolset shows the model only matching tools, but MCP needs the separate mcp-haystack package (20). max_agent_steps, a step budget hook, streaming and ToolResultOffloadCompactor bound a run and its context (17). Tool failures go back to the model by default, or raise when raise_on_tool_invocation_failure is set (14). Failed pipelines raise with a snapshot of the last valid state and runs resume from it or from a breakpoint, with no built-in durable store (14). The Agent needs a chat generator passed in, so there is no silent default provider, and the framework is Python only (10). 20+17+14+14+10 = 75.",
          "b": "An MCP client in about ten lines with listTools() for static or listToolsets() for per-request tools, and ToolSearchProcessor for loading tools on demand (25). Step limits, memory windows and processors such as a token limiter control what reaches the model (20). MastraError with ids and categories, and processors can abort with a reason the caller can read (17). Workflow step retries, snapshots and durable agents for resuming (20). create-mastra scaffolds a project and the model router takes a plain string, but it's TypeScript only (10)."
        },
        "scores": {
          "a": 75,
          "b": 92
        }
      },
      {
        "by": 10,
        "category": "schema",
        "leads": "mastra",
        "name": "Schema \u0026 documentation",
        "reasons": {
          "a": "Framework reading. A typed Python API (py.typed) with a generated API reference (22). llms.txt holds the full documentation, 493 pages in one file (10). The agent pages say what each hook and component is for, with a table of which hook guards which risk (16). Tools are typed from function signatures and components (13). Tutorials, a cookbook and code on every page; error types such as PipelineRuntimeError and tool invocation errors are shown in the guides without a catalogue (12). Versioned docs and release notes per release (15). 22+10+16+13+12+15 = 88.",
          "b": "Typed TypeScript API with a reference section (25). llms.txt with a when-to-use list and condensed instructions for coding agents (10). The docs say when to use durable agents, and point multi-agent users from `.network()` to supervisor agents (20). Tools take Zod schemas (15). Examples on every page, and MastraError with ids and categories documented, though errors are spread across pages (13). Per-package changelogs and migration guides (15)."
        },
        "scores": {
          "a": 88,
          "b": 98
        }
      },
      {
        "by": 6,
        "category": "reliability",
        "leads": "mastra",
        "name": "Reliability",
        "reasons": {
          "a": "Local-package reading. Official PyPI package haystack-ai with Python 3.11 or newer stated (20). A public tests workflow runs unit tests on Ubuntu, Windows and macOS for pushes to main and pull requests, plus e2e, CodeQL and Scorecard workflows; whether main passes wasn't read, as the Actions API refused us (15). 106 open issues and 68 open pull requests on 23 November 2026. The 50 newest issues were opened from 11 to 23 November, and 24 had a comment and 19 were closed (20). Release notes for every release and a migration guide for 3.0, but the policy says versions don't follow semantic versioning and minors remove deprecated functionality (11). 3.x with a Production/Stable classifier (15). 20+15+20+11+15 = 81.",
          "b": "Official npm packages, Node 22.13 or newer (20). Public CI workflows for unit, store, workspace and e2e tests; on 6 November the newest runs on main (Version Packages, Trigger Cloud Integration Tests) succeeded, while the test workflows themselves run on pull requests (22). 436 open issues and 795 open issues and pull requests on 6 November from GitHub's API, with 2,077 issues opened in the 90 days to 3 November; all 50 newest had a comment and 24 were closed, with issue-triage automation (18). A changesets CHANGELOG per package, a CI gate that needs approval for any major bump and migration guides, but no written versioning policy found, and `.network()` is deprecated without a removal date (12). 1.82.0 (15). 20+22+18+12+15 = 87, up from 74 on 6 October, when GitHub couldn't be read."
        },
        "scores": {
          "a": 81,
          "b": 87
        }
      }
    ],
    "facts": [
      {
        "a": "Agent framework",
        "b": "Agent framework",
        "name": "Kind"
      },
      {
        "a": "deepset",
        "b": "Kepler Software, Inc.",
        "name": "Vendor"
      },
      {
        "a": "no (local only)",
        "b": "no (local only)",
        "name": "Hosted endpoint"
      },
      {
        "a": "",
        "b": "",
        "name": "Transports"
      },
      {
        "a": "None",
        "b": "API key",
        "name": "Auth"
      },
      {
        "a": "Free",
        "b": "Free",
        "name": "Pricing"
      },
      {
        "a": "no",
        "b": "no",
        "name": "x402"
      },
      {
        "a": "Apache-2.0",
        "b": "Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing",
        "name": "Licence"
      },
      {
        "a": "no",
        "b": "no",
        "name": "Read-only variant documented"
      },
      {
        "a": "yes",
        "b": "yes",
        "name": "llms.txt"
      },
      {
        "a": "2026-11-10",
        "b": "2026-11-04",
        "name": "Last release"
      },
      {
        "a": "2025-07-24",
        "b": "2026-10-26",
        "name": "Terms last updated"
      },
      {
        "a": "2026-10-23",
        "b": "no date given",
        "name": "Privacy policy last updated"
      },
      {
        "a": "not found in the text",
        "b": "yes",
        "name": "Customer content may train models"
      },
      {
        "a": "not found in the text",
        "b": "yes",
        "name": "Terms restrict automated access"
      },
      {
        "a": "yes",
        "b": "not found in the text",
        "name": "Terms restrict benchmarking"
      },
      {
        "a": "not found in the text",
        "b": "yes",
        "name": "Terms or service can change without notice"
      },
      {
        "a": "yes",
        "b": "yes",
        "name": "Arbitration or class-action waiver"
      },
      {
        "a": "27k stars",
        "b": "29k stars, 3.1M npm/wk",
        "name": "Popularity"
      }
    ],
    "faq": [
      {
        "answer": "Mastra and Haystack score within a point of each other on agent readiness, 78 (A) and 77.8 (BB).",
        "question": "Which is better for AI agents, Haystack or Mastra?"
      },
      {
        "answer": "Yes. Haystack is open source (Apache-2.0). Mastra is open source (Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing).",
        "question": "Are Haystack and Mastra open source?"
      }
    ],
    "goodFor": [
      {
        "aheadOn": null,
        "also": [
          "No key needed to call it"
        ],
        "goodFor": "Python teams building retrieval-heavy agents or pipelines who want explicit components, approval hooks and resumable runs.",
        "slug": "haystack",
        "watchFor": "Anonymous telemetry to PostHog EU is on by default and includes the Agent's model and tool names"
      },
      {
        "aheadOn": [
          "Reliability, 87 against 81",
          "Schema \u0026 documentation, 98 against 88",
          "Agent ergonomics, 92 against 75"
        ],
        "also": null,
        "goodFor": "TypeScript teams that want agents, workflows, memory, evals and a local Studio in one framework.",
        "slug": "mastra",
        "watchFor": "Malicious versions of Mastra npm packages, including @mastra/core 1.42.1, were published on 17 June 2026"
      }
    ],
    "history": {
      "haystack": null,
      "mastra": [
        {
          "causes": [
            "method"
          ],
          "date": "2026-11-13",
          "delta": 3.8,
          "from": 74.2,
          "fromGrade": "BB",
          "to": 78,
          "toGrade": "A"
        }
      ]
    },
    "job": {
      "capability": "agent.framework",
      "name": "Agent frameworks"
    },
    "others": [
      {
        "json": "https://www.anchorterminal.com/compare/agentos-vs-haystack.json",
        "title": "AgentOS vs Haystack",
        "url": "https://www.anchorterminal.com/compare/agentos-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/agentos-vs-mastra.json",
        "title": "AgentOS vs Mastra",
        "url": "https://www.anchorterminal.com/compare/agentos-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/agno-vs-haystack.json",
        "title": "Agno vs Haystack",
        "url": "https://www.anchorterminal.com/compare/agno-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/agno-vs-mastra.json",
        "title": "Agno vs Mastra",
        "url": "https://www.anchorterminal.com/compare/agno-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/boxlang-ai-vs-haystack.json",
        "title": "BoxLang AI vs Haystack",
        "url": "https://www.anchorterminal.com/compare/boxlang-ai-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/boxlang-ai-vs-mastra.json",
        "title": "BoxLang AI vs Mastra",
        "url": "https://www.anchorterminal.com/compare/boxlang-ai-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-haystack.json",
        "title": "Claude Agent SDK vs Haystack",
        "url": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-mastra.json",
        "title": "Claude Agent SDK vs Mastra",
        "url": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/crewai-vs-haystack.json",
        "title": "CrewAI vs Haystack",
        "url": "https://www.anchorterminal.com/compare/crewai-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/crewai-vs-mastra.json",
        "title": "CrewAI vs Mastra",
        "url": "https://www.anchorterminal.com/compare/crewai-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack.json",
        "title": "Cursor Agent SDK vs Haystack",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-mastra.json",
        "title": "Cursor Agent SDK vs Mastra",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/docker-agent-vs-haystack.json",
        "title": "Docker Agent vs Haystack",
        "url": "https://www.anchorterminal.com/compare/docker-agent-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/docker-agent-vs-mastra.json",
        "title": "Docker Agent vs Mastra",
        "url": "https://www.anchorterminal.com/compare/docker-agent-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-haystack.json",
        "title": "DSPy vs Haystack",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-mastra.json",
        "title": "DSPy vs Mastra",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/genkit-vs-haystack.json",
        "title": "Genkit vs Haystack",
        "url": "https://www.anchorterminal.com/compare/genkit-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/genkit-vs-mastra.json",
        "title": "Genkit vs Mastra",
        "url": "https://www.anchorterminal.com/compare/genkit-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/google-adk-vs-haystack.json",
        "title": "Agent Development Kit (ADK) vs Haystack",
        "url": "https://www.anchorterminal.com/compare/google-adk-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/google-adk-vs-mastra.json",
        "title": "Agent Development Kit (ADK) vs Mastra",
        "url": "https://www.anchorterminal.com/compare/google-adk-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/guilds-run-vs-haystack.json",
        "title": "guilds.run vs Haystack",
        "url": "https://www.anchorterminal.com/compare/guilds-run-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/guilds-run-vs-mastra.json",
        "title": "guilds.run vs Mastra",
        "url": "https://www.anchorterminal.com/compare/guilds-run-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-langgraph.json",
        "title": "Haystack vs LangGraph",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-langgraph"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-llamaindex.json",
        "title": "Haystack vs LlamaIndex Framework",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-llamaindex"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-microsoft-agent-framework.json",
        "title": "Haystack vs Microsoft Agent Framework",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-microsoft-agent-framework"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-openai-agents-sdk.json",
        "title": "Haystack vs OpenAI Agents SDK",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-openai-agents-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai.json",
        "title": "Haystack vs Pydantic AI",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-smolagents.json",
        "title": "Haystack vs smolagents",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-strands-agents.json",
        "title": "Haystack vs Strands Agents",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-strands-agents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-terse-durable-actors.json",
        "title": "Haystack vs Terse Durable Actors",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-terse-durable-actors"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-tradingagents.json",
        "title": "Haystack vs TradingAgents",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-tradingagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-vercel-ai-sdk.json",
        "title": "Haystack vs AI SDK",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-vercel-ai-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/langgraph-vs-mastra.json",
        "title": "LangGraph vs Mastra",
        "url": "https://www.anchorterminal.com/compare/langgraph-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/llamaindex-vs-mastra.json",
        "title": "LlamaIndex Framework vs Mastra",
        "url": "https://www.anchorterminal.com/compare/llamaindex-vs-mastra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-microsoft-agent-framework.json",
        "title": "Mastra vs Microsoft Agent Framework",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-microsoft-agent-framework"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-openai-agents-sdk.json",
        "title": "Mastra vs OpenAI Agents SDK",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-openai-agents-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai.json",
        "title": "Mastra vs Pydantic AI",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-smolagents.json",
        "title": "Mastra vs smolagents",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-strands-agents.json",
        "title": "Mastra vs Strands Agents",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-strands-agents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-terse-durable-actors.json",
        "title": "Mastra vs Terse Durable Actors",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-terse-durable-actors"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-tradingagents.json",
        "title": "Mastra vs TradingAgents",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-tradingagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-vercel-ai-sdk.json",
        "title": "Mastra vs AI SDK",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-vercel-ai-sdk"
      }
    ],
    "panel": null,
    "scores": [
      {
        "by": 6,
        "edge": "mastra",
        "haystack": 81,
        "key": "reliability",
        "mastra": 87,
        "name": "Reliability",
        "weight": 16
      },
      {
        "key": "performance",
        "name": "Performance",
        "pending": true,
        "weight": 10
      },
      {
        "by": 10,
        "edge": "mastra",
        "haystack": 88,
        "key": "schema",
        "mastra": 98,
        "name": "Schema \u0026 documentation",
        "weight": 13
      },
      {
        "by": 17,
        "edge": "mastra",
        "haystack": 75,
        "key": "ergonomics",
        "mastra": 92,
        "name": "Agent ergonomics",
        "weight": 13
      },
      {
        "by": 4,
        "edge": "mastra",
        "haystack": 63,
        "key": "security",
        "mastra": 67,
        "name": "Security \u0026 auth",
        "weight": 14
      },
      {
        "by": 0,
        "edge": "",
        "haystack": 90,
        "key": "payments",
        "mastra": 90,
        "name": "Payments \u0026 pricing",
        "weight": 10
      },
      {
        "key": "tasks",
        "name": "Task success",
        "pending": true,
        "weight": 10
      },
      {
        "by": 1,
        "edge": "mastra",
        "haystack": 95,
        "key": "maintenance",
        "mastra": 96,
        "name": "Maintenance \u0026 community",
        "weight": 7
      },
      {
        "by": 2,
        "edge": "haystack",
        "haystack": 74,
        "key": "transparency",
        "mastra": 72,
        "name": "Transparency \u0026 trust",
        "weight": 7
      }
    ],
    "summary": "Mastra and Haystack score within a point of each other on agent readiness, 78 (A) and 77.8 (BB). Both do agent frameworks.",
    "tasks": null,
    "tutorials": [],
    "verdicts": {
      "haystack": "An Apache-2.0 Python framework with an Agent component, per-tool approval hooks, MCP tools, failure snapshots, a written deprecation policy and releases every few weeks. It sends anonymous usage telemetry to deepset's PostHog by default, including agent model and tool names, until HAYSTACK_TELEMETRY_ENABLED is set to False.",
      "mastra": "A TypeScript framework with agents, workflows with suspend and resume, memory, an MCP client and server, per-server tool approval and built-in guardrail processors including a prompt-injection detector. On 17 June 2026 malicious versions of its npm packages were published, and the CLI, server and Studio send usage analytics by default, with token counts every 15 minutes."
    }
  },
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/compare/haystack-vs-mastra",
    "json": "https://www.anchorterminal.com/compare/haystack-vs-mastra.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/compare/haystack-vs-mastra.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/compare/haystack-vs-mastra.min.md"
  },
  "markdown": "Mastra and Haystack score within a point of each other on agent readiness, 78 (A) and 77.8 (BB). Both do agent frameworks.\n\n- Haystack: grade BB, 77.8/100, rank #72 of 1654. Markdown https://www.anchorterminal.com/tools/haystack.md · JSON https://www.anchorterminal.com/api/v1/tools/haystack.json\n- Mastra: grade A, 78/100, rank #66 of 1654. Markdown https://www.anchorterminal.com/tools/mastra.md · JSON https://www.anchorterminal.com/api/v1/tools/mastra.json\n- Best agent frameworks and SDKs: https://www.anchorterminal.com/best/frameworks/index.md\n- All 253 frameworks comparisons: https://www.anchorterminal.com/compare/frameworks/index.md\n\n## Which one, for what\n\n### Haystack (BB)\n\nGood for: Python teams building retrieval-heavy agents or pipelines who want explicit components, approval hooks and resumable runs.\n\nAlso in its favour:\n- No key needed to call it\n\nWatch for: Anonymous telemetry to PostHog EU is on by default and includes the Agent's model and tool names\n\n### Mastra (A)\n\nGood for: TypeScript teams that want agents, workflows, memory, evals and a local Studio in one framework.\n\nAhead on:\n- Reliability, 87 against 81\n- Schema \u0026 documentation, 98 against 88\n- Agent ergonomics, 92 against 75\n\nWatch for: Malicious versions of Mastra npm packages, including @mastra/core 1.42.1, were published on 17 June 2026\n\n\n## Why the edge\n\n### Agent ergonomics: Mastra +17\n\n- Haystack (75): Framework reading. MCPToolset loads an MCP server's tools with a tool_names filter, and SearchableToolset shows the model only matching tools, but MCP needs the separate mcp-haystack package (20). max_agent_steps, a step budget hook, streaming and ToolResultOffloadCompactor bound a run and its context (17). Tool failures go back to the model by default, or raise when raise_on_tool_invocation_failure is set (14). Failed pipelines raise with a snapshot of the last valid state and runs resume from it or from a breakpoint, with no built-in durable store (14). The Agent needs a chat generator passed in, so there is no silent default provider, and the framework is Python only (10). 20+17+14+14+10 = 75.\n- Mastra (92): An MCP client in about ten lines with listTools() for static or listToolsets() for per-request tools, and ToolSearchProcessor for loading tools on demand (25). Step limits, memory windows and processors such as a token limiter control what reaches the model (20). MastraError with ids and categories, and processors can abort with a reason the caller can read (17). Workflow step retries, snapshots and durable agents for resuming (20). create-mastra scaffolds a project and the model router takes a plain string, but it's TypeScript only (10).\n\n### Schema \u0026 documentation: Mastra +10\n\n- Haystack (88): Framework reading. A typed Python API (py.typed) with a generated API reference (22). llms.txt holds the full documentation, 493 pages in one file (10). The agent pages say what each hook and component is for, with a table of which hook guards which risk (16). Tools are typed from function signatures and components (13). Tutorials, a cookbook and code on every page; error types such as PipelineRuntimeError and tool invocation errors are shown in the guides without a catalogue (12). Versioned docs and release notes per release (15). 22+10+16+13+12+15 = 88.\n- Mastra (98): Typed TypeScript API with a reference section (25). llms.txt with a when-to-use list and condensed instructions for coding agents (10). The docs say when to use durable agents, and point multi-agent users from `.network()` to supervisor agents (20). Tools take Zod schemas (15). Examples on every page, and MastraError with ids and categories documented, though errors are spread across pages (13). Per-package changelogs and migration guides (15).\n\n### Reliability: Mastra +6\n\n- Haystack (81): Local-package reading. Official PyPI package haystack-ai with Python 3.11 or newer stated (20). A public tests workflow runs unit tests on Ubuntu, Windows and macOS for pushes to main and pull requests, plus e2e, CodeQL and Scorecard workflows; whether main passes wasn't read, as the Actions API refused us (15). 106 open issues and 68 open pull requests on 23 November 2026. The 50 newest issues were opened from 11 to 23 November, and 24 had a comment and 19 were closed (20). Release notes for every release and a migration guide for 3.0, but the policy says versions don't follow semantic versioning and minors remove deprecated functionality (11). 3.x with a Production/Stable classifier (15). 20+15+20+11+15 = 81.\n- Mastra (87): Official npm packages, Node 22.13 or newer (20). Public CI workflows for unit, store, workspace and e2e tests; on 6 November the newest runs on main (Version Packages, Trigger Cloud Integration Tests) succeeded, while the test workflows themselves run on pull requests (22). 436 open issues and 795 open issues and pull requests on 6 November from GitHub's API, with 2,077 issues opened in the 90 days to 3 November; all 50 newest had a comment and 24 were closed, with issue-triage automation (18). A changesets CHANGELOG per package, a CI gate that needs approval for any major bump and migration guides, but no written versioning policy found, and `.network()` is deprecated without a removal date (12). 1.82.0 (15). 20+22+18+12+15 = 87, up from 74 on 6 October, when GitHub couldn't be read.\n\n## Score by category\n\n| Category | Weight | Haystack | Mastra | Edge |\n| --- | --- | --- | --- | --- |\n| Reliability | 16% | 81 | 87 | Mastra +6 |\n| Performance | 10%, pending | pending | pending | not scored in this run |\n| Schema \u0026 documentation | 13% | 88 | 98 | Mastra +10 |\n| Agent ergonomics | 13% | 75 | 92 | Mastra +17 |\n| Security \u0026 auth | 14% | 63 | 67 | Mastra +4 |\n| Payments \u0026 pricing | 10% | 90 | 90 | even |\n| Task success | 10%, pending | pending | pending | not scored in this run |\n| Maintenance \u0026 community | 7% | 95 | 96 | Mastra +1 |\n| Transparency \u0026 trust | 7% | 74 | 72 | Haystack +2 |\n| Negative events | ≤15 | -2 | -8 | |\n| **Total** | | **77.8 · BB** | **78 · A** | |\n\n## Facts side by side\n\n| Fact | Haystack | Mastra |\n| --- | --- | --- |\n| Kind | Agent framework | Agent framework |\n| Vendor | deepset | Kepler Software, Inc. |\n| Hosted endpoint | no (local only) | no (local only) |\n| Transports |  |  |\n| Auth | None | API key |\n| Pricing | Free | Free |\n| x402 | no | no |\n| Licence | Apache-2.0 | Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing |\n| Read-only variant documented | no | no |\n| llms.txt | yes | yes |\n| Last release | 2026-11-10 | 2026-11-04 |\n| Terms last updated | 2025-07-24 | 2026-10-26 |\n| Privacy policy last updated | 2026-10-23 | no date given |\n| Customer content may train models | not found in the text | yes |\n| Terms restrict automated access | not found in the text | yes |\n| Terms restrict benchmarking | yes | not found in the text |\n| Terms or service can change without notice | not found in the text | yes |\n| Arbitration or class-action waiver | yes | yes |\n| Popularity | 27k stars | 29k stars, 3.1M npm/wk |\n\n## How the scores have moved\n\n### Haystack\n\nNo score change since it was listed.\n\n### Mastra\n\n- +3.8 on 13 November 2026 (BB to A): checklist\n\n## Verdicts\n\n**Haystack.** An Apache-2.0 Python framework with an Agent component, per-tool approval hooks, MCP tools, failure snapshots, a written deprecation policy and releases every few weeks. It sends anonymous usage telemetry to deepset's PostHog by default, including agent model and tool names, until HAYSTACK_TELEMETRY_ENABLED is set to False.\n\n**Mastra.** A TypeScript framework with agents, workflows with suspend and resume, memory, an MCP client and server, per-server tool approval and built-in guardrail processors including a prompt-injection detector. On 17 June 2026 malicious versions of its npm packages were published, and the CLI, server and Studio send usage analytics by default, with token counts every 15 minutes.\n\n## Before you call either\n\n### Haystack\n\n1. Set HAYSTACK_TELEMETRY_ENABLED=False before importing haystack if usage events must not leave the machine\n2. Add a ConfirmationHook before tools that send, pay or delete\n3. Pass tool_names to MCPToolset so only the needed tools from an MCP server load\n4. Load pipeline YAML and resume snapshots only from trusted sources, since deserialisation can run code\n5. Pin haystack-ai to a minor version and read the release notes before upgrading\n\n### Mastra\n\n1. Set MASTRA_TELEMETRY_DISABLED=1 in every environment that runs the CLI, the server or Studio\n2. Pin exact versions with a lockfile, and make sure no 17 June 2026 release such as @mastra/core 1.42.1 is installed\n3. Set requireToolApproval on MCP servers that write, and allowedHosts when server URLs come from configuration\n4. Add PromptInjectionDetector as an input processor when tools return web or user content\n5. Use supervisor agents through generate() or stream(). `.network()` is deprecated\n\n## Questions\n\n### Which is better for AI agents, Haystack or Mastra?\n\nMastra and Haystack score within a point of each other on agent readiness, 78 (A) and 77.8 (BB).\n\n### Are Haystack and Mastra open source?\n\nYes. Haystack is open source (Apache-2.0). Mastra is open source (Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing).\n\n\n## For agents\n\n- This comparison as JSON: https://www.anchorterminal.com/compare/haystack-vs-mastra.json, and with the fewest tokens: https://www.anchorterminal.com/compare/haystack-vs-mastra.min.md\n- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {\"a\": \"haystack\", \"b\": \"mastra\"}`. From a terminal: `anchor compare haystack mastra`\n- Each listing in full: https://www.anchorterminal.com/api/v1/tools/haystack.json and https://www.anchorterminal.com/api/v1/tools/mastra.json\n\n## Other comparisons with Haystack or Mastra\n\n- [AgentOS vs Haystack](https://www.anchorterminal.com/compare/agentos-vs-haystack.md)\n- [AgentOS vs Mastra](https://www.anchorterminal.com/compare/agentos-vs-mastra.md)\n- [Agno vs Haystack](https://www.anchorterminal.com/compare/agno-vs-haystack.md)\n- [Agno vs Mastra](https://www.anchorterminal.com/compare/agno-vs-mastra.md)\n- [BoxLang AI vs Haystack](https://www.anchorterminal.com/compare/boxlang-ai-vs-haystack.md)\n- [BoxLang AI vs Mastra](https://www.anchorterminal.com/compare/boxlang-ai-vs-mastra.md)\n- [Claude Agent SDK vs Haystack](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-haystack.md)\n- [Claude Agent SDK vs Mastra](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-mastra.md)\n- [CrewAI vs Haystack](https://www.anchorterminal.com/compare/crewai-vs-haystack.md)\n- [CrewAI vs Mastra](https://www.anchorterminal.com/compare/crewai-vs-mastra.md)\n- [Cursor Agent SDK vs Haystack](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack.md)\n- [Cursor Agent SDK vs Mastra](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-mastra.md)\n- [Docker Agent vs Haystack](https://www.anchorterminal.com/compare/docker-agent-vs-haystack.md)\n- [Docker Agent vs Mastra](https://www.anchorterminal.com/compare/docker-agent-vs-mastra.md)\n- [DSPy vs Haystack](https://www.anchorterminal.com/compare/dspy-vs-haystack.md)\n- [DSPy vs Mastra](https://www.anchorterminal.com/compare/dspy-vs-mastra.md)\n- [Genkit vs Haystack](https://www.anchorterminal.com/compare/genkit-vs-haystack.md)\n- [Genkit vs Mastra](https://www.anchorterminal.com/compare/genkit-vs-mastra.md)\n- [Agent Development Kit (ADK) vs Haystack](https://www.anchorterminal.com/compare/google-adk-vs-haystack.md)\n- [Agent Development Kit (ADK) vs Mastra](https://www.anchorterminal.com/compare/google-adk-vs-mastra.md)\n- [guilds.run vs Haystack](https://www.anchorterminal.com/compare/guilds-run-vs-haystack.md)\n- [guilds.run vs Mastra](https://www.anchorterminal.com/compare/guilds-run-vs-mastra.md)\n- [Haystack vs LangGraph](https://www.anchorterminal.com/compare/haystack-vs-langgraph.md)\n- [Haystack vs LlamaIndex Framework](https://www.anchorterminal.com/compare/haystack-vs-llamaindex.md)\n- [Haystack vs Microsoft Agent Framework](https://www.anchorterminal.com/compare/haystack-vs-microsoft-agent-framework.md)\n- [Haystack vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/haystack-vs-openai-agents-sdk.md)\n- [Haystack vs Pydantic AI](https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai.md)\n- [Haystack vs smolagents](https://www.anchorterminal.com/compare/haystack-vs-smolagents.md)\n- [Haystack vs Strands Agents](https://www.anchorterminal.com/compare/haystack-vs-strands-agents.md)\n- [Haystack vs Terse Durable Actors](https://www.anchorterminal.com/compare/haystack-vs-terse-durable-actors.md)\n- [Haystack vs TradingAgents](https://www.anchorterminal.com/compare/haystack-vs-tradingagents.md)\n- [Haystack vs AI SDK](https://www.anchorterminal.com/compare/haystack-vs-vercel-ai-sdk.md)\n- [LangGraph vs Mastra](https://www.anchorterminal.com/compare/langgraph-vs-mastra.md)\n- [LlamaIndex Framework vs Mastra](https://www.anchorterminal.com/compare/llamaindex-vs-mastra.md)\n- [Mastra vs Microsoft Agent Framework](https://www.anchorterminal.com/compare/mastra-vs-microsoft-agent-framework.md)\n- [Mastra vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/mastra-vs-openai-agents-sdk.md)\n- [Mastra vs Pydantic AI](https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai.md)\n- [Mastra vs smolagents](https://www.anchorterminal.com/compare/mastra-vs-smolagents.md)\n- [Mastra vs Strands Agents](https://www.anchorterminal.com/compare/mastra-vs-strands-agents.md)\n- [Mastra vs Terse Durable Actors](https://www.anchorterminal.com/compare/mastra-vs-terse-durable-actors.md)\n- [Mastra vs TradingAgents](https://www.anchorterminal.com/compare/mastra-vs-tradingagents.md)\n- [Mastra vs AI SDK](https://www.anchorterminal.com/compare/mastra-vs-vercel-ai-sdk.md)\n",
  "meta": {
    "attribution": "Anchor Terminal (https://www.anchorterminal.com)",
    "attributionRequired": true,
    "credit": "CC BY 4.0, credit Anchor Terminal and link the page or API address you took it from (https://www.anchorterminal.com/terms/#data)",
    "docs": "https://www.anchorterminal.com/docs/",
    "generatedAt": "2026-11-23",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "1.0",
    "openapi": "https://www.anchorterminal.com/openapi.json",
    "preview": false,
    "run": "2026-10-01",
    "runLabel": "October 2026 research run",
    "terms": "https://www.anchorterminal.com/terms/#data"
  },
  "page": {
    "breadcrumbs": [
      {
        "name": "Home",
        "url": "https://www.anchorterminal.com/"
      },
      {
        "name": "Compare",
        "url": "https://www.anchorterminal.com/compare/"
      },
      {
        "name": "Haystack vs Mastra",
        "url": ""
      }
    ],
    "description": "Mastra and Haystack score within a point of each other for agent frameworks, 78 and 77.8 out of 100. Prices, MCP, x402, uptime and agent notes side by side.",
    "facts": [
      "Haystack BB 77.8",
      "Mastra A 78",
      "scores"
    ],
    "h1": "Haystack vs Mastra",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/compare/haystack-vs-mastra",
    "published": "2026-10-01",
    "section": "tools",
    "title": "Haystack vs Mastra for AI agents in 2026: scores and prices",
    "toc": null,
    "updated": "2026-11-23",
    "url": "https://www.anchorterminal.com/compare/haystack-vs-mastra"
  },
  "tokens": {
    "markdown": 3650,
    "slim": 730
  },
  "version": 1
}
