Nightshift
The Nightshift MCP server provides a write-surface to DataHub for managing on-call data incidents, learning from them, and preventing recurrences. It enables an AI agent to:
Manage Incidents: Open and resolve incidents on data assets, making issues visible in DataHub.
Learn and Remember: Write structured post-mortems (failure mode, root cause, fix, etc.) as machine-readable memory in the DataHub graph.
Recall Past Knowledge: Retrieve incident memory for a specific dataset or across its entire lineage to accelerate investigations.
Search Failure Modes: Find all datasets that have previously experienced a particular type of failure.
Prevent Recurrence: Set column-level assertions (
guard_column) to watch critical fields, and automatically extend these guards to all related datasets (immunize the graph) to prevent silent breaks.Automate Fixes: Facilitate proposing concrete fixes, such as draft dbt pull requests, based on learned insights.
Seamless Integration: All operations persist within DataHub's metadata graph via its GraphQL API, ensuring institutional memory is durable and actionable.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NightshiftResolve the revenue incident, write a postmortem, and guard the affected column."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🌙 Nightshift
The on-call data team that gets smarter every night.
Live demo · Break it yourself · JUDGING.md (60s) · How we win · Submit pack · Upstream PR datahub-skills#126 · Apache 2.0
try.* is the judge sandbox (break / wake / restore on a real graph). /app is the connected war room (your DataHub, Sentinel, history). Same agent loop; different entry. The dbt demo PR is a real draft fix the agent opened (nightshift-dbt-demo#3) - proof of “agents that do real work,” not a screenshot.

At 2:47am an upstream team renames a column and tells nobody. By 9:07am the revenue dashboard reads zero, and Finance notices before the data team does. Nightshift takes that pager: a Claude agent wired into your DataHub graph works the incident like a senior engineer, and then does the thing humans never have time to do at 4am: it writes down what it learned, inside the graph itself.
The second time a pipeline breaks the same way, Nightshift does not investigate. It remembers. An investigation becomes a lookup.

The night, in numbers
Measured on DataHub's showcase-ecommerce datapack (1,049 entities), from the
replayable shift reports in examples/shift-reports/
(wall-clock shift length + investigation tool calls counted in those reports):
Night 1 (cold) | Night 3 (memory) | |
Investigation tool calls | 14 | 5, including exactly the 2 reads memory prescribed |
Shift wall-clock | 2.2 min | 1.1 min |
Lineage re-walked | full path | none |
By night 3 the agent recognized a recurrence, reframed the incident from a SQL problem to a process problem, escalated to the model's owner, and proposed a dbt source test so CI would block the regression. See the real draft PR: nightshift-dbt-demo#1.
Related MCP server: mcp-incident-responder
Architecture
flowchart LR
P([📟 the pager]) --> A
subgraph agent [Nightshift agent (Claude)]
A[1 RECALL] --> B[2 LINEAGE]
B --> C[3 DIAGNOSE<br/>one root cause]
C --> D[4 REMEMBER]
D --> E[5 FIX PR<br/>draft]
end
subgraph dh [DataHub OSS]
M[(the graph remembers<br/>postmortems · tags · guards)]
end
A -- "recall_incident_memory" --> N
B -- "search · schemas · lineage + SQL" --> O[datahub MCP server<br/>official, reads]
D -- "incidents · assertions · memory" --> N[nightshift MCP server<br/>ours, writes]
O --> M
N --> M
E --> R([☀️ the morning report])The official mcp-server-datahub covers the read surface completely. It has
no write surface for the on-call loop: no incidents, no assertions, no
memory. The Nightshift MCP server is that missing write surface, built on the
OSS GraphQL API and metadata model, and
upstreamed as a skill PR
(plus a packaging bug report
found along the way). Full detail in docs/architecture.md.
What the agents leave behind
Open the DataHub UI after a shift and every conclusion is already there, in the surfaces your team uses today:
The incident, raised and resolved in DataHub (
open_incident/resolve_incident).The postmortem, written into the dataset's documentation (prose for the human at 9am).
A machine-readable memory, a structured property in JSON, for the next agent.
A searchable failure-mode tag for everyone, via
find_datasets_with_failure_mode.A column-presence assertion on the field that broke, visible in the Validations tab (
guard_column). Honest scope: it marks that the column exists in the catalog; value-level checks (not-null / sum > 0) stay a follow-up for dbt tests / CI.A concrete fix: a dbt change built from the columns the catalog actually holds: a real draft PR.
Nightshift itself is stateless. The memory lives in DataHub aspects, so it survives restarts and model changes, and any MCP-capable agent pointed at the same graph inherits it.
One incident, whole-graph immunization
When a shift closes, Nightshift asks the graph one more question: where else
does this exact exposure exist? immunize_graph finds every dataset carrying
the same column, across platforms, and leaves an idempotent presence guard
on each one. On the demo graph that is about 10 datasets over dbt, Looker,
PowerBI, S3 and Postgres in a single call: datasets that never broke get the
same Validations marker from an incident they never had.
The Sentinel
Nobody presses the button. The Sentinel fingerprints the schema of every
watched dataset on an interval. When a column moves (renamed, dropped, or
retyped), it names the drift and wakes the night shift itself
(trigger: sentinel). The loop closes without a human pager at all.
Authority boundaries
Agent may write (Nightshift MCP): incidents, documentation, structured memory, failure tags, column-presence EXTERNAL assertions, draft fix PR.
Still human: merge the PR, value-level tests, production deploy.
Memory lives in DataHub aspects, not in chat history. Nightshift is stateless; the graph remembers across nights and model changes.
Presence guards assert the column exists in the catalog. They are not value-level quality tests (not-null / sum > 0 stay in dbt / CI).
Claims in this README are gated by python scripts/verify_judging_evidence.py.
Quick start
Prerequisites: Docker with ~8 GB of memory, and either an authenticated
claude CLI or an ANTHROPIC_API_KEY.
make up datapack # DataHub + a realistic 1,049-entity enterprise graph
make setup # install Nightshift
make demo # silently break the pipeline, hand the agent the pagerIf datahub datapack fails on a fresh PyPI install of acryl-datahub 1.7.0
(missing resource file), that is
datahub#19028.
Workaround until the fix lands: install the CLI from the DataHub repo
(pip install -e ./metadata-ingestion from a clone) or use a build that
still ships the datapack assets, then re-run make datapack.
make demo renames an upstream column, tells nobody, and prints the morning
report when the shift ends. nightshift war-room renders the night as a
single dark page. Replayable shift reports and postmortems live in
examples/.
Built on
The DataHub MCP Server and the DataHub Agent Context Kit. Nightshift adds the write surface OSS agents were missing and gives it back upstream.
License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceA multi-agent MCP server that turns LLMs into an autonomous incident-response copilot, enabling rapid investigation, correlation, and remediation of production incidents.MIT
- Flicense-qualityCmaintenanceAn AI-native incident response server that exposes diagnostic tools (system status, error logs, ticket creation) via MCP, enabling LLM agents to autonomously assess and respond to incidents.
- Alicense-qualityCmaintenanceMCP server providing agent memory with deterministic deletion guarantees, enabling compliant event storage, context retrieval, and audit-proof data management.Apache 2.0
- Alicense-qualityDmaintenanceMCP server that captures and recalls coding session memory (failures, decisions, diffs) for AI agents, enabling cross-agent continuity and preventing repeated mistakes.110MIT
Related MCP Connectors
Autopilot MCP server for GEO analyses, reports, content, audits, memories and agents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mossab28/nightshift'
If you have feedback or need assistance with the MCP directory API, please join our Discord server