# Haystack (slim)

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

- Full: https://www.anchorterminal.com/tools/haystack.md (~6,600 tokens) · this version ~1,480 tokens · JSON https://www.anchorterminal.com/tools/haystack.json · canonical https://www.anchorterminal.com/tools/haystack
- Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · MCP: https://www.anchorterminal.com/mcp · Updated: 2026-11-23 · pricing https://www.anchorterminal.com/tools/haystack#pricing · reviews https://www.anchorterminal.com/tools/haystack#reviews
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

**BB · 77.8/100 · rank #70 of 1624 · #9 in Agent frameworks & SDKs · agent-ready · confidence medium**


Assessment: 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.

## Facts

- Kind: Agent framework · vendor: deepset · category: Agent frameworks & SDKs · legal entity: deepset GmbH · provenance 58/100
- Packages: pypi `haystack-ai`, pypi `mcp-haystack`, pypi `hayhooks`
- Auth: None · pricing: Free · x402: no · licence: Apache-2.0
- Benchmark probes: not run yet, so Performance is pending
- Surface listed: The open-source Haystack framework for Python (haystack-ai), read from the deepset-ai/haystack repository, docs.haystack.deepset.ai (llms.txt, telemetry and breaking change pages), haystack.deepset.ai, the PyPI release feed and OSV on 23 November 2026. Nothing was installed
- Scope: The framework only. deepset's enterprise support and the Haystack Enterprise Platform, a hosted or on-premises product built on Haystack, are separate paid offerings and weren't graded
- Agents: An Agent component that loops a chat generator over tools up to max_agent_steps (100 by default), with exit conditions, shared state, hooks before the model call and before each tool, and AgentTool for a coordinator that calls specialist agents
- MCP: MCPTool and MCPToolset in the mcp-haystack package load tools from MCP servers, with tool_names to filter them. Hayhooks serves a pipeline or agent as an MCP server or REST endpoint
- Approval and context: ConfirmationHook with AlwaysAsk, AskOnce and NeverAsk policies per tool. SearchableToolset shows the model only matching tools from a large catalogue, and ToolResultOffloadCompactor moves older tool results out of the conversation
- Failure and resume: Pipelines raise PipelineRuntimeError with a snapshot of the last valid state, and breakpoints pause a run at a component or agent step. Saving snapshots to disk is off by default (HAYSTACK_PIPELINE_SNAPSHOT_SAVE_ENABLED)
- Tracing: A Tracer interface with OpenTelemetry, Langfuse and logging tracers in integration packages. OpenTelemetry tracing is no longer switched on automatically since 3.0
- Telemetry: On by default, anonymous, sent to PostHog in the EU. Turned off with HAYSTACK_TELEMETRY_ENABLED=False
- Runtimes: Python 3.11 or newer; unit tests run on Ubuntu, Windows and macOS

- Scores: Reliability 81, Performance not tested, Schema & documentation 88, Agent ergonomics 75, Security & auth 63, Payments & pricing 90, Task success not tested, Maintenance & community 95, Transparency & trust 74 · negative events -2
- Why: Reliability, Local-package reading. · Schema & documentation, Framework reading. · Agent ergonomics, Framework reading. · Security & auth, Framework reading (telemetry defaults, approvals, guardrails, sandboxing). · Payments & pricing, Self-hosted rule. · Maintenance & community, 3.5.0 tagged on 10 November 2026, 13 days before this check (30). · Transparency & trust, Apache-2.0 (30).
- Sources: 11, open questions: 5, both in the full twin
- Capabilities: agent.framework, agent.multi-agent, agent.durable, agent.mcp-client
- JSON: https://www.anchorterminal.com/api/v1/tools/haystack.json · card, about 200 tokens, for choosing between listings: https://www.anchorterminal.com/tools/haystack.card.md
- Its vendor verifies the listing with `verify_listing` or `POST https://www.anchorterminal.com/api/v1/verify` (the full twin says how); no effect on the grade.
- Support: Discord https://discord.com/invite/xYvH6drSmA; opensource-security@deepset.ai; https://www.deepset.ai/products-and-services/haystack-enterprise; more in the full twin

## Before you call it

1. Set HAYSTACK_TELEMETRY_ENABLED=False before importing haystack if usage events must not leave the machine
2. Add a ConfirmationHook before tools that send, pay or delete
3. Pass tool_names to MCPToolset so only the needed tools from an MCP server load
4. Load pipeline YAML and resume snapshots only from trusted sources, since deserialisation can run code
5. Pin haystack-ai to a minor version and read the release notes before upgrading

## Connect

```bash
pip install haystack-ai   # MCP tools: pip install mcp-haystack
```

## Similar tools

| Tool | Grade | Score | Shared capabilities | Slim |
| --- | --- | --- | --- | --- |
| AI SDK | AA | 93.6 | agent.framework, agent.mcp-client, agent.multi-agent, agent.durable | https://www.anchorterminal.com/tools/vercel-ai-sdk.min.md |
| OpenAI Agents SDK | AA | 90 | agent.framework, agent.multi-agent, agent.durable, agent.mcp-client | https://www.anchorterminal.com/tools/openai-agents-sdk.min.md |
| Pydantic AI | AA | 85.6 | agent.framework, agent.multi-agent, agent.durable, agent.mcp-client | https://www.anchorterminal.com/tools/pydantic-ai.min.md |
| Strands Agents | A | 83.7 | agent.framework, agent.mcp-client, agent.multi-agent, agent.durable | https://www.anchorterminal.com/tools/strands-agents.min.md |
| Microsoft Agent Framework | A | 83.1 | agent.framework, agent.multi-agent, agent.durable, agent.mcp-client | https://www.anchorterminal.com/tools/microsoft-agent-framework.min.md |


## Panel reviews (0, desk reviews from public material, no calls made)

