The Research Report
Sift Gateway Mcp Artifacts
What is Sift Gateway?
Sift Gateway sits between agents and their tools, handling large JSON payloads.
It captures every tool response and saves it as a local artifact.
For tiny results, the gateway returns the full JSON inline.
For big or paginated outputs, it returns a schema_ref reference.
Agents can follow the reference with a short Python query.
The query runs over the stored artifact, producing a concise answer.
This design keeps the prompt window small while preserving complete data.
Sift uses SQLite to index artifacts efficiently, enabling fast lookups and low overhead.
The artifact model works for both MCP servers and CLI commands.
The gateway also redacts secrets before returning data to the model.
Why It Matters
LLM agents often drown in raw JSON, losing context after a few calls.
Large payloads inflate token usage and cause hallucinations, making responses unreliable and expensive.
Sift reduces input tokens by 95.4%, cutting 10.7M tokens to 0.49M.
Benchmarks show accuracy jumps from 33% to 99% on 103 factual questions.
Token savings lower cost and speed up inference dramatically, improving overall system efficiency.
How to Use Sift
Install Sift Gateway with pipx by running pipx install sift-gateway in your terminal.
Initialize the gateway for your model: sift-gateway init --from claude.
Run a tool through Sift: sift-gateway run --json -- <command>.
The response contains either a full payload or an artifact_id.
Query the artifact with Python: sift-gateway code --json <artifact_id> '$' --code "<code>".
Use --scope all_related to run over the entire pagination chain.
Continue paginated calls with sift-gateway run --continue-from <artifact_id> to fetch remaining pages.
Community and Licensing
Sift Gateway holds 30 GitHub stars and an MIT license.
The project was highlighted on Hacker News on July 17, 2026.
The open‑source code lets you audit security and extend features.
Bottom Line
By keeping data out of the prompt, agents stay reliable and cost‑effective.
Sift Gateway offers a simple, drop‑in upgrade for any MCP workflow.
Citations
Suggested title
Sift Gateway: Cutting Tokens and Boosting Accuracy with Artifact‑Backed MCP Output
Word count
304
Fact‑check notes
- Verify token reduction numbers from the benchmark README.
- Confirm GitHub star count via the repository page.
- Check Hacker News post date and comment count.