
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A local Model Context Protocol server that distills logs, documents, and chat histories into high-density context using LLMLingua-2 to maximize reasoning and reduce noise.
Semantic-Sift is cataloged as an MCP server attributed to luismichio. A local Model Context Protocol server that distills logs, documents, and chat histories into high-density context using LLMLingua-2 to maximize reasoning and reduce noise. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Semantic-Sift are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It acts as a local filter that distills noisy inputs, typically reducing outgoing token volume by 30-70%.
With the multi-modal extra, it can ingest PDF, DOCX, and XLSX files and convert them into structured Markdown.
README.md · 4070cea4b404 · 采集于 2026-11-13 13:42:36 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
The Reasoning-First Middleware for High-Fidelity Agentic Workflows.
"It saves tokens while preserving context - maximizing reasoning, minimizing hallucination."
Semantic-Sift is a local Model Context Protocol (MCP) server that acts as an intelligent "Sanitation Tier" between your raw data and your AI’s context window.
While modern LLMs have massive context windows, their reasoning accuracy often degrades as noise increases. Semantic-Sift solves this by distilling technical logs, long-form documents, and chat histories into high-density context using LLMLingua-2. It treats your context window as a precious resource—optimizing for Signal-to-Noise Ratio (SNR) so your models spend more time reasoning and less time navigating boilerplate.
Semantic-Sift is grounded in the Studio of Two philosophy: the belief that the future of engineering is a high-fidelity partnership between a human architect and a sovereign AI sidecar. By managing the friction of raw data ingestion, Sift allows this "Studio" to focus on building systems, not just applying patches. It acts as a cognitive filter that ensures both you and your agent are collaborating on the cleanest, most relevant representation of the technical truth.
# 1. Install
pip install "semantic-sift[neural]"
# 2. Onboard your project (writes IDE hooks and opencode.json)
semantic-sift-onboard # or: ask your AI "Run sift_onboard()"
# 3. Add to your MCP config (example: Cursor / Claude Desktop)
# { "mcpServers": { "semantic-sift": { "command": "semantic-sift" } } }
# 4. Warm up the model (optional — avoids first-call latency)
# Ask your AI: "Run sift_warmup()"
Full setup guide (venv layout, IDE config matrix, Sovereign Pattern): doc/INTEGRATION_ENCYCLOPEDIA.md
Semantic-Sift is a strategic layer designed to manage attention across four key professional personas:
[multi-modal] optional extra) to convert complex .pdf, .docx, and .xlsx into structured, distilled Markdown, allowing for the rapid synthesis of massive technical repositories without losing critical semantic anchors.Semantic-Sift provides a dual-layer of value. While the economic benefits depend on your billing plan, the operational benefits apply to every professional workflow.
Target: Users on Per-Token API plans (GPT-4o, Claude 3.5).
Target: EVERYONE (including "Unlimited" or Per-Request subscription users).
All technical details, architectural logic, and integration guides are strictly maintained in the doc/ directory to prevent data loss through summarization.
sift_read_file, sift_logs, sift_chat, sift_rank).[multi-modal] optional extra to natively ingest .pdf, .docx, and .xlsx. It converts corporate "noise" into structured Markdown, allowing your agent to synthesize multiple 14MB documents in a single turn.Semantic-Sift ships in two performance tiers. Choose based on your use case:
Python MCP Server (pip install semantic-sift) | Rust CLI Sidecar (sift-core) | |
|---|---|---|
| Heuristic log sifting | ✅ ~500ms | ✅ <1ms (native) |
| Neural semantic sift | ✅ ~500ms (PyTorch) | ✅ ~150ms (ONNX) |
| Python dependency | Required | None |
| Rust toolchain | Not required | Not required (pre-built) |
| Delivered via | PyPI wheel (includes pre-built sift-core) | Bundled in wheel; use fetch_sift_core.py for dev installs |
PyPI wheel (pip install semantic-sift): The pre-compiled sift-core binary is bundled — no Rust toolchain required.
Editable/dev install (pip install -e .): The Rust compile step is skipped. Run once to fetch the pre-built binary:
python scripts/fetch_sift_core.py
Optional [native] marker: For dependency management tools that need an explicit handle, pip install semantic-sift[native] is available as a no-op extra (the binary is always included in the wheel).
Option A: Quick Install (PyPI)
ℹ️ What you get: The PyPI wheel includes the pre-compiled
sift-coreRust binary — no Rust toolchain required. The[neural]extra adds PyTorch (~1.5 GB) for large-payload fallback using LLMLingua-2;[multi-modal]adds MarkItDown for PDF/DOCX/XLSX ingestion. Expect several minutes for the first install due to PyTorch download size.
uv venv
# Windows: .\.venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
uv pip install semantic-sift[neural,multi-modal]
Option B: Sovereign Pattern (Recommended)
Clone the repository to gain access to the native Rust sidecar source code and benchmarks:
⚠️ Rust Compiler Required: The Sovereign Pattern builds
sift-corefrom source. You must have the Rust compiler installed (rustup.rs) before running the install command below. If you do not want to install Rust, use Option A (PyPI) instead.
git clone https://github.com/luismichio/semantic-sift.git
cd semantic-sift
# Use Python 3.12 for torch/CUDA compatibility
python3.12 -m venv venv312
# Windows:
.\venv312\Scripts\activate
# macOS/Linux:
# source venv312/bin/activate
uv pip install -e .[neural,multi-modal]
Windows Tip (
uvenvironment discovery): Ifuvfails to find your environment (error: "No virtual environment found"), explicitly point to your interpreter:uv pip install -e . --python venv312\Scripts\python.exe
Note: If you are using Context-Pipe's Sovereign Dual-Repo Pattern,
semantic-siftis cross-installed intocontext-pipe/venvinstead (viauv pip install -e ../semantic-sift). Thevenv312above is only needed for the standalone ML runtime or runningserver.pydirectly.
Choosing the right Python path for your MCP configuration is critical for stability:
| Setup Type | Path Example | Pros | Cons |
|---|---|---|---|
| Dedicated Venv (Win) | .../semantic-sift/venv312/Scripts/python.exe | Isolated dependencies, no torch version conflicts. | Slightly more disk space. |
| Dedicated Venv (Mac/Linux) | .../semantic-sift/venv312/bin/python | Same isolation benefit on Unix. | Same. |
| Global Python | C:/Users/User/AppData/Local/.../python.exe | Shared libraries, fast setup. | High risk of version conflicts (e.g., transformers mismatches). |
Recommendation: Always use the Dedicated Venv path in your mcp_config.json to ensure the sifting kernel is isolated and reliable.
Note on Orchestration: Semantic-Sift is an "Intelligence Kernel." For complex multi-tool workflows, we strongly recommend installing Context-Pipe, the universal switchboard that natively routes data to Semantic-Sift without blocking your IDE.
For development tools (mypy, pytest):
uv pip install -e .[dev]
Rust binary for editable installs:
pip install -e .skips the Rust compile step, sosift-corewon't be on your PATH. Instead of compiling from source, download the pre-built binary for your platform from the matching GitHub release in one command:python scripts/fetch_sift_core.pyThis places
sift-core[.exe]directly into your active environment'sScripts/bindirectory. Re-run it whenever you bump the version.
CRITICAL: For exact configuration paths for Cursor, Gemini, OpenCode, VS Code, and Claude, reference the Master Configuration Matrix.
Once connected, ask your AI Assistant:
"Run
sift_onboard()to configure this project."
Semantic-Sift operates invisibly, but you can always audit its performance and token savings without burning LLM tokens to do so.
semantic-sift-stats to print a global dashboard of your token savings, latency, and cache hits.semantic-sift-onboard to manually initialize Sift in any project (supports --env and --dry-run).sift_dashboard prompt in their UI (often via a slash command or button) to instantly inject your telemetry stats into the chat.sift_onboard() tool automatically injects native /sift-stats and /sift-onboard custom slash commands into your IDE configuration.For high-performance, local-first applications (like Meechi), Semantic-Sift provides a native Rust binary (sift-core). This sidecar is optimized for portability and speed, with zero Python dependencies.
semantic-sift-cli)To provide the best of both worlds, installing the Python package also exposes the semantic-sift-cli command. This acts as an Intelligent Router:
sift-core (ONNX).| Feature | Python MCP Server | Rust Sift-Core (Sidecar) |
|---|---|---|
| Heuristic Log Sifting | ✅ | ✅ (Native) |
| Semantic Compression | ✅ (PyTorch) | ✅ (ONNX) |
| Multi-Modal Ingestion | ✅ (via [multi-modal]) | ❌ (Text Only) |
| Supported Formats | .pdf, .xlsx, .docx, .html, .txt | .txt, .log, .out (Text) |
| Startup Latency | 3-5 seconds | ~10ms |
| Binary Size | ~1.5GB (with models) | ~15MB |
Note: For native apps like Meechi, we recommend a Tiered Ingestion strategy: use the app's frontend (e.g.,
pdf.js) to extract text, then pipe it to the Rust sidecar for high-speed semantic sifting.
Usage:
# Sift a log file instantly
cat app.log | sift-core logs
# Perform neural semantic compression
cat document.txt | sift-core semantic --model ./models/llmlingua2 --rate 0.4
If you are an AI Agent (e.g., Gemini CLI, Cursor, Claude Code) reading this repository, follow this protocol:
sift_onboard() to register background hooks. Use sift_onboard(dry_run=True) to preview all planned actions without writing any files.sift_analyze_file(path) to determine the noise ratio.sift_logs or sift_chat before inclusion in reasoning. For documents, use sift_doc(text, rate=0.4) — adjust rate (0.1–0.9) to trade compression depth against fidelity.sift_rank to identify the most semantically relevant chunks for the user's prompt.sift_extraction(content, show_diff=True) to see exactly what was removed and verify faithfulness.Semantic-Sift is built on a Zero-Vulnerability Baseline:
Privacy and telemetry controls:
SIFT_TELEMETRY_OPTED_IN=true to enable telemetry (opt-in; disabled by default).SIFT_TELEMETRY_DISABLED=true (legacy kill-switch) to disable telemetry entirely.SIFT_TELEMETRY_TTL_DAYS=90 (default) to control how many days of session history are retained in .pipe_telemetry.json before old entries are pruned.SIFT_TELEMETRY_URL=https://your-endpoint to route metadata pulses to your own endpoint.SIFT_PULSE_RATE_LIMIT_S=10 (default) to control async telemetry pulse frequency.Security controls:
SIFT_ALLOW_GLOBAL_READS=true to permit sift_read_file / sift_analyze_file outside the workspace root (path traversal guard is on by default).Performance controls:
SIFT_HOOK_TIMEOUT_MS=3000 to cap hook semantic latency before heuristic fallback.SIFT_MODEL_READY_WAIT_MS=1200 to control semantic model warm-up wait time before returning heuristic-mode output.SIFT_COMPACTION_FIDELITY_THRESHOLD=0.3 (default) to control the vocabulary-overlap threshold below which a low-fidelity compaction warning is emitted.SIFT_RANK_TOP_N=3 (default) to set the server-wide default number of results returned by sift_rank when top_n is not passed explicitly.Hook logging controls:
SIFT_LOG_FILE to override the hook log path (default: .gemini/sift_debug.log).SIFT_LOG_LEVEL (DEBUG, INFO, WARNING, ERROR) to control hook log verbosity.See SECURITY.md for our full security policy.
Telemetry schema and endpoint details are documented in doc/TELEMETRY_SPEC.md.
Semantic-Sift is a flagship member of the Studio of Two infrastructure. It is designed to work in high-fidelity harmony with:
Semantic-Sift is licensed under the Apache License 2.0. See LICENSE.md for details.
Semantic-Sift is Open Source, but Closed to Contributions.
To maintain the strict architectural vision of the "Studio of Two" and keep maintenance overhead at absolute zero, this repository does not accept external pull requests. We encourage you to use, embed, and fork the code under the permissive Apache 2.0 license, but please do not submit PRs for new features or bug fixes. See CONTRIBUTING.md for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Semantic-Sift from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/semantic-sift)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.