Python agent framework
Haystack
Python orchestration framework for production LLM applications built from explicit, modular pipelines and agents.
Quick decision
What it is
Haystack is an open-source AI orchestration framework for production LLM applications in Python. Pipelines and agent workflows stay modular, with explicit control over retrieval, routing, memory, and generation at each step.
The project centers on context engineering: scalable RAG systems, multimodal applications, semantic search, question answering, and autonomous agents in a transparent architecture. The README highlights production-built agents, native async support, and modular components for retrieval, indexing, tool calling, memory, and evaluation.
Haystack is model and vendor agnostic, with integrations for providers such as OpenAI, Mistral, Anthropic, Cohere, Hugging Face, Google, Azure OpenAI, and AWS Bedrock. Hayhooks serves Haystack pipelines and agents as REST APIs or MCP servers.
What it does
- Modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation
- RAG, multimodal applications, semantic search, and question answering use cases
- Built-in components for retrieval, indexing, tool calling, memory, and evaluation, plus custom components
- Pipelines that run synchronously or asynchronously with streaming, and agents with concurrent tool calls
- Integrations across model providers and infrastructure components, without locking to one vendor
What it does not do
- Hosted models sit outside the framework. Haystack orchestrates models and components you configure
- MCP serving runs through Hayhooks and integrations, not a single-purpose server builder
- The core project is Python. There is no TypeScript framework here
Setup
Install Haystack and run an MCP toolset agent
Install from PyPI, then connect an MCP server through MCPToolset, per the Haystack MCP docs.
pip install haystack-ai mcp-haystack
from haystack_integrations.tools.mcp import MCPToolset, StdioServerInfo
toolset = MCPToolset(server_info=StdioServerInfo(command="uvx", args=["mcp-server-time"]))Environment variables (names only; use your own values)
OPENAI_API_KEY
Source: https://docs.haystack.deepset.ai/docs/mcptoolset. Examples use placeholders only.
MCP support: MCPToolset dynamically discovers and loads tools from any MCP-compliant server over Streamable HTTP, SSE (deprecated), or StdIO. Hayhooks can also expose pipelines and agents as MCP servers.
Health and maintenance
26,877
Checked 2026-10-29
3,359
Checked 2026-10-29
Stars, forks, Apache-2.0 license, and release count read from the GitHub repository page fetched 2026-10-15. PyPI showed haystack-ai 3.4.1 in the 2026-10-29 check.
Verified compatible tools
Via tavily-haystack (TavilyWebSearch). Official Haystack integrations page says the Tavily integration provides TavilyWebSearch, searches the web using the Tavily API, returns Haystack Document objects, needs a Tavily API key, and installs with pip install tavily-haystack. The Haystack WebSearch docs also list TavilyWebSearch. Evidence. Setup detail
Via brave-search-haystack (BraveWebSearch). Official Haystack integrations page describes Brave Search with Haystack, provides BraveWebSearch, says it searches using the Brave Search API, needs a Brave Search API key, and installs with pip install brave-search-haystack. Haystack WebSearch docs list BraveWebSearch. Evidence. Setup detail
Via FirecrawlWebSearch. Haystack WebSearch documentation lists FirecrawlWebSearch as a search engine using the Firecrawl API, alongside TavilyWebSearch and BraveWebSearch. Evidence. Setup detail
Grouped view: tools for Haystack.
Sources and freshness
- GitHub repository: https://github.com/deepset-ai/haystack
- MCPToolset documentation: https://docs.haystack.deepset.ai/docs/mcptoolset
- WebSearch documentation: https://docs.haystack.deepset.ai/docs/websearch
- PyPI haystack-ai: https://pypi.org/pypi/haystack-ai/json
Checked 2026-10-29. Source-verified means the claims above trace to the listed sources; it does not mean AgentsUse ran the framework. Send corrections through the contact page. Back to the framework index.