sieve-map
Local MCP server for macOS that scans AI coding tool history (Claude Code, Cursor, Copilot, Cline, Codex, Gemini CLI) for leaked secrets. Finds API keys in chat transcripts, redacts with sieve:// placeholders, and runs commands with Keychain-injected secrets - no plaintext values ever returned.
README
sieve-mcp
MCP server for Sieve — a macOS app that scans local AI coding tool history for secrets leaked into prompts.
sieve-mcp is bundled inside the Sieve Mac app. No separate install. No network calls. All operations run on-device.
Install
- Download Sieve for Mac from the App Store.
- Open Sieve → Settings → MCP → toggle Enable MCP server on.
Configure Claude Code
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"sieve": {
"command": "/Applications/Sieve.app/Contents/MacOS/sieve-mcp"
}
}
}
Restart Claude Code and run /mcp to verify sieve appears.
Configure Claude Desktop
Add the same block to ~/Library/Application Support/Claude/claude_desktop_config.json and restart.
Tools
All tools are safe by design — no tool ever returns a plaintext secret value.
sieve_health_status
Returns service health and finding counts.
Response:
{
"status": "ok",
"findings_count": 12,
"scan_jobs": 3
}
sieve_self_test
Verifies scanner rules and transcript source coverage are healthy.
Response:
{
"fingerprintHealthy": true,
"ruleCount": "<n>",
"transcriptSourceCount": "<n>",
"healthy": true,
"issues": []
}
sieve_findings_list
Lists findings from the most recent scan.
Input: { "limit": 50 } (optional)
Response:
[
{
"findingId": "abc123",
"ruleId": "github-pat",
"severity": "critical",
"sourcePath": "~/.claude/projects/myapp/transcript.jsonl",
"sourceType": "ClaudeCode",
"secretFingerprint": "<fingerprint>",
"previewRedacted": "ghp_[REDACTED]",
"providerExposureAssumed": true,
"rotationStatus": "pending",
"redactionPlaceholder": "sieve://myapp/github-pat"
}
]
providerExposureAssumed: true — secret found in an AI tool transcript. Assume the provider (Anthropic, OpenAI, etc.) can associate the prompt with your account identity.
sieve_issue_list
Lists scanner health issues — unreadable sources, permission errors, parse failures.
Response:
[
{
"issueId": "iss1",
"code": "SCAN_TARGET_UNREADABLE",
"severity": "warning",
"component": "ClaudeDesktop",
"message": "Could not read chat DB — Full Disk Access may be required",
"suggestion": "Grant Full Disk Access in System Settings → Privacy & Security"
}
]
sieve_scan_history
Returns past scan job summaries.
Input: { "limit": 10 } (optional)
Response:
[
{
"jobId": "job1",
"startedAt": "2026-05-22T10:00:00Z",
"finishedAt": "2026-05-22T10:00:12Z",
"sourcesCount": 4,
"findingsCount": 3,
"issuesCount": 0
}
]
sieve_scan_status
Returns status of the current or most recent scan.
Response:
{ "status": "idle" }
Values: "idle" · "running" · "completed" · "failed: <reason>"
sieve_check_text
Checks whether text contains secrets. Returns boolean only — never echoes input or detected values.
Input: { "text": "<content to check>" }
Response:
{ "has_secrets": true }
Use this to gate operations before sending content to an external API.
sieve_redact_text
Redacts secrets from text, replacing values with sieve:// placeholders.
Input: { "text": "<content>", "project_key": "myapp" }
Response:
{
"redacted": "export STRIPE_KEY=sieve://myapp/stripe-secret-key",
"hadSecrets": true,
"placeholders": [
{
"ruleId": "stripe-secret-key",
"placeholder": "sieve://myapp/stripe-secret-key",
"fingerprint": "<fingerprint>"
}
]
}
Raw values are never included in the response.
sieve_vault_run
Executes a command with macOS Keychain-resolved secrets injected as env vars. Secrets never transit the MCP channel.
Input: { "command": "npm run deploy", "fingerprints": ["<fingerprint>"] }
Response:
{
"exit_code": 0,
"succeeded": true,
"timed_out": false,
"stdout_line_count": 14,
"stderr_line_count": 0
}
stdout/stderr content is never returned — only line counts.
Supported AI tool sources
| Tool | Source |
|---|---|
| Claude Code | JSONL project transcripts |
| Claude Desktop | SQLite chat database |
| Cursor | SQLite state database |
| VS Code / Copilot Chat | JSON history files |
| Windsurf | JSON history files |
| Cline | JSON session files |
| Codex CLI | JSONL/JSON session files |
| Gemini CLI | JSON history files |
.env files |
Selected project roots |
| Custom sources | User-added folders |
Sieve correlates findings across source types — if the same secret appears in both a transcript and a .env file, it is flagged as a multi-source exposure.
Security posture
- Local-only. stdio transport, no network calls, no cloud sync.
- No plaintext secrets in responses. Hard invariant in the dispatcher — not configurable.
- Fingerprint-only persistence. Findings DB stores HMAC fingerprints + redacted previews only.
- Keychain-backed vault. Secret values live in macOS Keychain with biometric access control.
- Explicit opt-in. MCP is off by default; requires toggle in Sieve Settings.
- Unreadable sources reported.
SCAN_TARGET_UNREADABLEsurfaces insieve_issue_list— no silent skipping.
Transport
stdio. The sieve-mcp binary reads JSON-RPC 2.0 from stdin and writes to stdout. MCP clients (Claude Code, Claude Desktop) manage the process lifecycle.
Platform
macOS only. Requires Sieve app installed from the Mac App Store.
Links
- Mac App Store: https://apps.apple.com/app/sieve-ai-secret-scanner/id6747506504
- Product site: https://sieve.app
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。