HayhooksSAFE
Easily deploy Haystack pipelines as REST APIs and MCP Tools.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Serve [Haystack](https://haystack.deepset.ai/) Pipelines and Agents as production APIs:REST, OpenAI-compatible chat, MCP, A2A, and durable executions that survive restarts.
[](https://pypi.org/project/hayhooks) [](https://pypi.org/project/hayhooks) [](https://github.com/deepset-ai/hayhooks/actions/workflows/docker.yml) [](https://github.com/deepset-ai/hayhooks/actions/workflows/tests.yml)
**Documentation** · Quick start · Durable execution · Examples
Write a small Python wrapper around your Pipeline or Agent, and Hayhooks turns it into typed endpoints, streaming chat backends, and agent-to-agent tools. When the work outlives a request, a restart, or a deploy, run it as a durable execution: checkpointed in Redis, resumable on any replica, and able to wait for a human.
📦 REST APIs from Python Every wrapper or YAML pipeline becomes typed, validated endpoints with OpenAPI docs, file uploads, and custom routes.
♻️ Durable executions Checkpoints, retries, human approval, cancellation, and restart recovery for long-running Pipelines and Agents. Learn more
💬 OpenAI-compatible chat Streaming /chat/completions and /responses backends for Open WebUI, or an embedded Chainlit UI with
96ecad8532a5OBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add dashboard --env APP_API_KEY=${APP_API_KEY} --env DURABLE_REDIS_KEY_PREFIX=${DURABLE_REDIS_KEY_PREFIX} --env OPENAI_API_KEY=${OPENAI_API_KEY} -- npx -y [email protected]{
"mcpServers": {
"dashboard": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"APP_API_KEY": "${APP_API_KEY}",
"DURABLE_REDIS_KEY_PREFIX": "${DURABLE_REDIS_KEY_PREFIX}",
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
}
}
}
}Exposed tools (7)
7 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_weather | read | |
read_file | read | Read a text file from disk given its absolute or relative path. |
read_uploaded_file | read | Retrieve the contents of a file previously uploaded via the /v1/files endpoint, given its file_id. |
server_get_weather | read | Get current weather for a city via Open-Meteo. Returns temperature, humidity, wind speed and condition. |
suggest_activities | read | |
weather_tool | read | Provides weather information for a given location. |
work | read | Complete one step |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (4 observation(s))
- Network
- declared (6 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (19)
tests/test_files/files/async_chat_with_website/chat_with_website.yml
tests/test_files/files/async_chat_with_website_streaming/chat_with_website.yml
tests/test_files/files/chat_with_website_mcp/chat_with_website.yml
tests/test_files/files/chat_with_website_streaming/chat_with_website.yml
tests/test_files/files/no_wrapper/chat_with_website.yml
restored = pickle.loads(pickle.dumps(request))
root = __import__(module_name)
"nested/../../important.txt",
verify=False,
@base-ui/react, @fontsource/inter, @tailwindcss/vite, class-variance-authority, clsx, lucide-react, react, react-dom
hayhooks, mcp, mcp-haystack, httpx
hayhooks, haystack-ai
hayhooks, elasticsearch-haystack, sentence-transformers-haystack, huggingface-api-haystack, pypdf, markdown-it-py, mdit_plain
docs/assets/chat-completion.gif
docs/assets/hayhooks-cursor-dev-deploy-overwrite.gif
docs/assets/open-webui-deploy-pipeline-from-chat.gif
docs/assets/open-webui-hayhooks-on-pipeline-end.gif
examples/pipeline_wrappers/multi_llm_streaming/multi_stream.gif
To access caller credentials or other HTTP headers, declare the optional typed
Gates applied: no_behavioural_pass.
96ecad8532a5full audit observations/trust-audit/mcp-server/deepset-ai__hayhooks.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 96ecad8532a5 | SAFE | B | 89 | first audit |
Questions
What is the Hayhooks MCP server?
Easily deploy Haystack pipelines as REST APIs and MCP Tools.
What tools does Hayhooks expose?
7 in total: 7 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Hayhooks safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Hayhooks need?
It reads APP_API_KEY, DURABLE_REDIS_KEY_PREFIX and OPENAI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Hayhooks run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as dashboard at 0.0.0.
How current is this page?
The grade is for one exact copy of the source (96ecad8532a5), read on 2026-10-07. The repository is watched and re-audited when it changes.