sieve-map
You can use Sieve’s local MCP server to inspect scan health/findings, check and redact text for secrets, and run commands with Keychain-held secrets injected without exposing secret values.
Check service/database health and finding counts (
sieve_health_status).Verify scanner rules and transcript source coverage (
sieve_self_test).Check current or most recent scan status and past scan summaries (
sieve_scan_status,sieve_scan_history).List saved findings with redacted previews and scanner issues (
sieve_findings_list,sieve_issue_list).Test whether text contains secrets, returning only a boolean (
sieve_check_text).Redact secrets in text into
sieve://placeholders (sieve_redact_text).Run a command directly with vault secrets injected as environment variables; only exit code and output line counts are returned (
sieve_vault_run).
No tool returns secret values; tools operate locally and are disabled until enabled in the Sieve app.
sieve-mcp
MCP server for Sieve, a Mac app that finds API keys and
other secrets that leaked into your AI coding tools' chat history and .env files.
The server lets your coding agent check and redact secrets, list secrets that already leaked, and run commands with secrets from the macOS Keychain without ever seeing them. No tool returns a secret value. Everything runs on your Mac.
This repository holds the documentation, an agent skill, and a small stub that registries use to list the tools. The real server ships inside the Sieve app. The stub cannot scan anything.
Install
Install Sieve for Mac (free, macOS 13 or later).
Open Sieve, go to Settings → MCP Server, and turn on Enable MCP Server. It is off by default, and every tool refuses to run until you turn it on.
Add the server to your client (below). Sieve can also generate the entry for Claude Code or Codex: click Copy Configuration in the same settings section.
The server is the app itself, started with --mcp:
/Applications/Sieve.app/Contents/MacOS/Sieve --mcpRelated MCP server: VaultBridge
Add it to your client
Claude Code
claude mcp add --scope user sieve -- /Applications/Sieve.app/Contents/MacOS/Sieve --mcpClaude Desktop: add to ~/Library/Application Support/Claude/claude_desktop_config.json, then
restart Claude.
{
"mcpServers": {
"sieve": {
"command": "/Applications/Sieve.app/Contents/MacOS/Sieve",
"args": ["--mcp"]
}
}
}Cursor: add the same mcpServers entry to ~/.cursor/mcp.json.
VS Code: add to .vscode/mcp.json in your workspace, or to your user MCP configuration.
{
"servers": {
"sieve": {
"type": "stdio",
"command": "/Applications/Sieve.app/Contents/MacOS/Sieve",
"args": ["--mcp"]
}
}
}Codex: add to ~/.codex/config.toml. This matches what Sieve generates, which leaves
sieve_vault_run off.
[mcp_servers.sieve]
command = "/Applications/Sieve.app/Contents/MacOS/Sieve"
args = ["--mcp"]
disabled_tools = ["sieve_vault_run"]Tools
Tool | What it does |
| Service and database health, with finding and scan counts. |
| Checks the fingerprint key, rule count and source coverage. |
| Whether a scan is idle, running, completed or failed. |
| Past scan summaries. Optional |
| Saved findings with redacted previews. Optional |
| Problems from the last scan, such as sources Sieve could not read. |
| Whether |
| Returns |
| Runs a command with secrets from Sieve's Keychain vault as environment variables. Returns the exit code and line counts only. |
| Saved dependency-security summaries for your projects. |
| Dependency inventory and known advisory matches for one project. |
| Saved scan summaries for one project. |
The three sieve_project_* tools also need Share project snapshots with MCP turned on in
Sieve's Projects view. They read saved snapshots only. They do not scan folders, run commands or go
online.
The MCP tools only read saved data or work on the text you pass them. Scans run in the Sieve app.
Example responses
Values below are illustrative.
sieve_check_text
{ "has_secrets": true }sieve_redact_text with {"text": "export STRIPE_KEY=sk_live_…", "project_key": "myapp"}
{
"redacted": "export STRIPE_KEY=sieve://myapp/stripe-secret-key",
"hadSecrets": true,
"placeholders": [
{
"ruleId": "stripe-secret-key",
"placeholder": "sieve://myapp/stripe-secret-key",
"fingerprint": "sfp:v1:…"
}
]
}sieve_findings_list
[
{
"findingId": "…",
"ruleId": "github-pat",
"severity": "critical",
"sourceType": "transcript",
"sourcePath": "/Users/you/.claude/projects/myapp/session.jsonl",
"previewRedacted": "ghp_ab12****",
"secretFingerprint": "sfp:v1:…",
"providerExposureAssumed": true,
"rotationStatus": "rotation_due"
}
]providerExposureAssumed: true means the secret appeared in an AI chat. Treat it as sent to that
AI provider, linked to your account, and rotate it at the provider. Redacting the local copy does not
make the key safe again.
sieve_issue_list
[
{
"issueId": "…",
"code": "SCAN_TARGET_UNREADABLE",
"severity": "medium",
"component": "claude-code",
"message": "…"
}
]A scan is not complete while issues like this remain. Sieve reports unreadable sources instead of skipping them.
sieve_vault_run
{
"command": "npm run deploy",
"fingerprints": "{\"sfp:v1:…\": \"STRIPE_API_KEY\"}"
}commandis split on spaces and run directly. There is no shell, so pipes, redirects, quotes and$VARSdo not work.fingerprintsis a JSON-encoded string that maps a Sieve fingerprint to the environment variable name the command expects. The secret must already be stored in Sieve's vault.The response holds
exit_code,succeeded,timed_out,stdout_line_countandstderr_line_count. Output text is never returned, because it could contain the secret.
This tool runs commands on your Mac. Keep your client's tool approval on for it, or disable it, as the Codex example does.
Agent skill
skills/sieve-secrets/SKILL.md tells an agent when and how to use
these tools: never ask you to paste keys, redact text before it leaves the machine, use the vault for
commands that need a secret, and report leaked keys without revealing them. Copy the folder into your
agent's skills directory, for example ~/.claude/skills/ for Claude Code.
What Sieve scans
You grant access to each tool's folder in the app.
Tool | What Sieve reads |
Claude Code | JSONL transcripts in |
Claude Desktop | Local session JSON files |
Cursor | Workspace SQLite chat state |
VS Code and VS Code Insiders (Copilot Chat) | Chat JSON/JSONL and SQLite state |
Windsurf | Workspace SQLite chat state |
Codex | JSON/JSONL history in |
| Project folders you choose |
When the same secret shows up in more than one place, for example a chat and a .env file, Sieve
groups them by fingerprint.
Security and privacy
No secret values in responses. This is enforced in the server and cannot be configured.
Off by default. Every tool returns
MCP_DISABLEDuntil you turn the server on in the app.Local stdio only. No listening port. The MCP tools make no network calls.
Fingerprints, not values. Sieve stores keyed fingerprints and redacted previews. Vault secrets live in the macOS Keychain.
Optional dependency checks. In the Projects feature, Sieve can check dependencies against Google's OSV database. This runs only with your consent, and sends package names and versions only: no source files, paths or secrets.
Detection is pattern-based. Sieve finds known key formats. Custom or internal credentials may not be detected, so a clean result does not prove text is free of secrets.
Privacy policy: https://gautam-u.github.io/sieve/privacy
The stub in this repository
server.js answers initialize and tools/list with the real tool definitions in tools.json, so
MCP registries can list Sieve. Every tools/call returns an error that says how to install the real
server. It reads no files and makes no network calls.
npx github:gautam-u/sieve-mcpLinks
Mac App Store: https://apps.apple.com/app/id6767409365
Website: https://gautam-u.github.io/sieve/
License
MIT for the contents of this repository. The Sieve app is distributed separately through the Mac App Store.
Available Tools
9 toolssieve_check_textA
Checks whether text contains secrets. Returns boolean only — never echoes input or detected values.
Inputs: text (required).
sieve_findings_listA
Lists findings from the most recent scan. Previews are redacted — no plaintext secret values.
Inputs: limit.
sieve_health_statusA
Returns Sieve service health and finding counts.
Inputs: no named parameters.
sieve_issue_listA
Lists scanner health issues: unreadable sources, permission errors, parse failures.
Inputs: no named parameters.
sieve_redact_textB
Redacts secrets from text, replacing values with sieve:// placeholders. Raw values are never returned.
Inputs: text (required), project_key.
sieve_scan_historyC
Returns past scan job summaries.
Inputs: limit.
sieve_scan_statusA
Returns status of the current or most recent scan: idle, running, completed, or failed.
Inputs: no named parameters.
sieve_self_testB
Verifies scanner rules and transcript source coverage are healthy.
Inputs: no named parameters.
sieve_vault_runA
Executes a command with macOS Keychain-resolved secrets injected as env vars. Returns exit code and line counts only — stdout/stderr content is never returned.
Inputs: command (required), fingerprints.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct function: check vs redact text, list findings, health, issues, scan history/status, self-test, and vault run. No two tools have overlapping purposes, ensuring clear differentiation for an agent.
All tools share the 'sieve_' prefix and use snake_case, which is good. However, the part-of-speech order varies: some are verb_noun (check_text, redact_text), others are noun_noun (findings_list, health_status). This minor inconsistency prevents a perfect score.
With 9 tools, the server covers its core domain (secrets scanning and vault management) without bloat. Each tool addresses a specific need, and the count feels well-scoped for the functionality offered.
The tool set covers essential operations: checking, redacting, listing findings, health, issues, scan history/status, self-test, and vault execution. A minor gap is the absence of a tool to trigger a scan or manage vault entries, but the core workflows are supported.
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Checks AI-written code for leaked keys and made-up packages, on your machine. Never uploads code.
Scan prompts for injection attacks, redact PII, and audit LLM SDK usage from any MCP client
Audit your MCP servers for poisoned tools and leaked secrets, and check AI-generated code for flaws.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceLocal-first CLI and MCP server for redacting sensitive text before sharing logs, configs, and errors with AI tools.MIT
- AlicenseNot gradedqualityDmaintenanceSecret management MCP server for AI coding agents that prevents secrets from entering the LLM context window by returning metadata only and using side-channel injection. Integrates with Bitwarden and offers hooks for auto-capture and leak prevention.1MIT
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server that exposes data from native macOS apps (Mail, Notes, Calendar, Reminders, Contacts, Messages, Spotlight) to AI agents over stdio, currently in early development with no domain tools wired yet.5MIT
- AlicenseNot gradedqualityCmaintenanceLocal CLI and MCP server that redacts secrets from logs, files, and diffs before sending them to AI agents, with stable placeholders and token-budgeted truncation.MIT