Deliverd Screen

io.github.deliverd-devPublished by GitHub account deliverd-devv0.2.0Updated Oct 26, 2026

Find and redact personal data and secrets in text before it reaches a model. Local, no account.

VerifiedSTDIODesktop onlySecurity & MonitoringAI & ML

Overview

AI-generated overview

Local MCP server that checks text for personal data, secrets and confidential terms before it is sent to a model, returning a verdict and redacted text.

What you can do
  • Screen text for personal data, secrets and confidential terms, getting back a verdict (allow, redact, ask or deny) and the text that may be sent.
  • Receive redacted text with placeholders in place of the values it removed, never the original values themselves.
  • Run entirely on the local machine, with no account, key or network call by default.
When to use it
Useful when an assistant handles prompts, notes or documents that may contain emails, phone numbers, IBANs, card numbers, API keys or private keys, and you want a check before that text reaches a model or another tool. It is a pre-send filter, not a compliance certificate.
Requirements
Runs as a local process via npx from the npm package @deliverd/screen; Node.js is needed. No account, API key or network access by default. The optional Microsoft Purview check requires the DELIVERD_PURVIEW_TENANT_ID, DELIVERD_PURVIEW_CLIENT_ID, DELIVERD_PURVIEW_CLIENT_SECRET and DELIVERD_PURVIEW_USER_ID variables.
Before you install
It is a net, not a guarantee: structured identifiers are found well, but names are only found as well as an optional model you plug in, and redacted text about a person may still be personal data. Enabling the optional Purview check sends the text to Microsoft Graph in your own tenant and needs an Entra app with Content.Process.All. A detector that calls a hosted service has already sent the text.

Installation

In SourceWeft

  1. Open Deliverd Screen in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

Deliverd Screen

A pre-send check for every prompt. Find and redact personal data, secrets and your own confidential terms before text goes to an AI model.

  • Local. No account, no key, no network call. The text never leaves your process, unless you turn on the optional Microsoft Purview check, which sends it to your own Microsoft tenant and nowhere else.
  • Reversible. Values become placeholders such as [EMAIL_1] (the same value gets the same placeholder throughout), and restore() puts them back in the model's answer.
  • Bring your own model for names. Patterns can't find people's names, but a model can. Plug in a Hugging Face token classifier, Presidio, or any model with the same output.
  • No dependencies. MIT.
bash
npm install @deliverd/screen
ts
import { screen } from "@deliverd/screen";
const checked = await screen("Reply to [email protected] about IBAN IE29AIBK93115212345678");checked.verdict; // "redact"checked.text;    // "Reply to [EMAIL_1] about IBAN [IBAN_1]"
const answer = await model.generate(checked.text);checked.restore(answer); // the real values, back in the answer

What it finds

Email addresses, phone numbers, IBANs, payment card numbers (Luhn-checked), UK National Insurance numbers, Irish PPS numbers (check character), US Social Security numbers, IP addresses (v4 and v6), dates of birth, API keys and tokens (AWS, GitHub, Slack, Stripe, Anthropic, OpenAI, Google, JWTs and more), private keys, passwords in connection strings and .env files, words that mark special-category data such as health or religion, and your own terms.

The four answers

By default the model may receive internal data and no personal data. Pass allow: { personalData: true, classification: "confidential" } for a model you have approved for more.

VerdictWhat to do
allowSend text, which is the original.
redactSend text, which has placeholders in place of what the model may not receive.
askA person has to decide (special-category data, by default). allowed is false.
denySend nothing. Secrets are refused by default.

Names: plug in a model

ts
import { pipeline } from "@huggingface/transformers";import { tokenClassifier, presidio } from "@deliverd/screen/adapters";
const ner = await pipeline("token-classification", "Xenova/bert-base-NER");const checked = await screen(prompt, { detectors: [tokenClassifier((t) => ner(t))] });
// or a Presidio analyzer you run yourself:// docker run -p 5002:3000 mcr.microsoft.com/presidio-analyzerawait screen(prompt, { detectors: [presidio({ url: "http://localhost:5002" })] });

A detector is a function from the text to { kind, start, end } spans, so any model works, including Perplexity's PII-Tracer and GLiNER. Check a model's licence before you ship it. Run it where the text already is: a detector that sends the text to a hosted service has already sent it.

Vercel AI SDK

ts
import { generateText, wrapLanguageModel } from "ai";import { screenMiddleware } from "@deliverd/screen/ai-sdk";
const model = wrapLanguageModel({ model: openai("gpt-5"), middleware: screenMiddleware() });const { text } = await generateText({ model, prompt });

The middleware screens the whole conversation at once, so one value keeps one placeholder across messages. It restores the answer, including a streamed one where a placeholder arrives split across chunks. On a deny or an ask it throws ScreenBlockedError and the model is never called. It works with AI SDK 7 by default; pass specificationVersion: "v3" for AI SDK 6.

CLI, pre-commit and CI

bash
cat prompt.txt | npx @deliverd/screen --redact   # the redacted textnpx @deliverd/screen --json notes.txt            # kinds and offsets, never valuesnpx @deliverd/screen --fail evals/*.jsonl        # exit 1 if anything is foundnpx @deliverd/screen --terms clients.txt doc.md  # your own words, one per line

In GitHub Actions, uses: deliverd-dev/deliverd-screen@v0 with paths: runs the same check; for pre-commit, the hook id is deliverd-screen. Both are in deliverd-dev/deliverd-screen.

MCP

bash
claude mcp add deliverd-screen -- npx -y @deliverd/screen mcp

This gives an agent in Claude Code, Cursor or Codex one tool, screen_text. It returns the verdict and the redacted text, and never the values it replaced, so they don't enter the agent's context through the tool.

Microsoft Purview

If your organisation writes its data loss prevention rules in Microsoft Purview, the same rules can apply here, for any model and any tool. Pass a Purview check and the stricter answer wins: a Purview block denies, and a warn is an ask.

ts
import { entraAppToken, purviewCheck, screen } from "@deliverd/screen";
const purview = purviewCheck({  token: entraAppToken({ tenantId, clientId, clientSecret }),  userId: entraObjectIdOfThePerson,  app: { name: "Claims assistant", entraAppId: clientId },});const checked = await screen(prompt, { purview });

This is the one thing in the package that uses the network, and only when you pass it: the text goes to Microsoft Graph (processContent), in your own tenant, and nowhere else. The Entra app needs Content.Process.All, and the DLP rule must be created with New-DlpComplianceRule (Purview does not apply a portal-only rule to an Entra-registered app).

For the MCP server, set DELIVERD_PURVIEW_TENANT_ID, DELIVERD_PURVIEW_CLIENT_ID, DELIVERD_PURVIEW_CLIENT_SECRET and DELIVERD_PURVIEW_USER_ID (and optionally DELIVERD_PURVIEW_ON_UNAVAILABLE: allow, ask or deny).

A net, not a certificate

Structured identifiers are found well. Names are found only as well as the model you plug in. Redacted text about a person is still personal data under GDPR. Use this to send fewer identifiers, never as proof that a prompt was clean.

When a person has to decide

A library can only tell you to stop. Deliverd's Data Gate makes the call. deliverd.screen() in @deliverd/sdk runs these same detectors on your machine and sends Deliverd only the counts ("two email addresses, one IBAN"). The verdict comes back from your organisation's policy and from what its AI register approves each model to receive. On an ask it puts the question to the right person in Slack, Teams or on their phone, and every check is recorded. It takes the same detectors.

Licence

MIT. The detectors are shared with Deliverd's SDKs and held to one set of test vectors, packages/conformance/screening.json.

Source: packages/screen/README.md at commit e017aaf

Tools

1

screen_text

Check text for personal data, secrets and confidential terms before sending it to a model, a tool or anyone else, and get back what may be sent. Runs locally; nothing leaves this machine. Use the returned text in place of the original. A net, not a guarantee: names are not reliably found.

ParameterstextrequiredtermspersonalDataclassification

Version history

1
  1. v0.2.0LatestOct 26, 2026

Score

90% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts
  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts