1. Conduid
  2. AI
  3. Distill
MCP server · AI

Distill

Context intelligence layer for LLM agents: persistent memory with write-time dedup, sensitivity tagging, conflict detection, and hierarchical decay. ~12ms. No LLM calls. MIT.

77Good

Scored 22 hours ago · breakdown

About Distill

Distill is an MCP server published by Siddhant-K-code in the AI category: context intelligence layer for LLM agents: persistent memory with write-time dedup, sensitivity tagging, conflict detection, and hierarchical decay. ~12ms. No LLM calls. MIT. Conduid read 13 tools from its source: analyze_redundancy, create_session, deduplicate_chunks, delete_session, forget_memory, memory_expire and 7 more. No package is published for it, so it installs from a source checkout.

The repository has 198 stars and 21 forks, is licensed MIT, and its last commit was on 21 Nov 2026. The latest release is v0.9.1 (9 May 2026): OpenAPI 3.1 Spec & Interactive Docs (#91, closes #23) Distill now ships with a complete OpenAPI 3.1 specification and serves interactive Swagger UI at /docs. It follows v0.9.0 (9 May 2026), and the 5 most recent releases go back to v0.6.0 (2 May 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include cli, html-to-markdown, markdown, readability and web-scraping.

Install

From source
git clone https://github.com/Siddhant-K-code/distill

Tools (13)

analyze_redundancyAnalyze chunks for semantic redundancy without removing any. Use this to understand how much overlap exists in your context before deciding whether to deduplicate. Returns cluster information and redundancy percentage.
ParameterTypeDescription
chunks *arrayArray of chunk objects with 'text' and 'embedding' fields
thresholdnumberClustering threshold (default: 0.15)
create_sessionCreate a new context window session with a token budget. Use this at the start of a task to track context incrementally.
ParameterTypeDescription
max_tokensnumberToken budget for the session (default: 128000)
session_idstringSession ID (auto-generated if empty)
deduplicate_chunksRemove redundant information from RAG chunks before sending to LLM. WHEN TO USE: Call this tool whenever you have multiple text chunks from retrieval, search results, or context assembly. 30-40% of RAG context is typically redundant. BENEFITS: - Reduces token usage by removing duplicate information - Improves response quality by providing diverse perspectives - Prevents LLM confusion from repetitive content INPUT: Array of chunks with text and embeddings (from your RAG pipeline) OUTPUT: Deduplicated chunks with diversity optimization
ParameterTypeDescription
chunks *arrayArray of chunk objects. Each chunk must have 'text' (string) and 'embedding' (array of floats). Optional: 'id' (string), 'score' (float), 'metadata' (object).
lambdanumberMMR lambda - 1.0 for pure relevance, 0.0 for pure diversity (default: 0.5)
target_knumberTarget number of chunks to return (default: 8)
thresholdnumberClustering threshold - lower means more aggressive deduplication (default: 0.15). Use 0.1 for code, 0.2 for prose.
delete_sessionDelete a session and all its entries.
ParameterTypeDescription
session_id *stringSession ID
forget_memoryRemove memories matching the given criteria. Use this to clean up outdated or incorrect memories.
ParameterTypeDescription
idsarrayMemory IDs to remove
tagsarrayRemove all memories with these tags
memory_expireMark memory entries as expired. Expired entries are excluded from recall by default but remain in the store.
ParameterTypeDescription
ids *arrayMemory entry IDs to expire
memory_statsGet statistics about the persistent memory store.
memory_supersedeMark a memory as superseded by a newer entry. The old entry is expired and a forward pointer to the replacement is stored.
ParameterTypeDescription
new_idstringID of the replacement memory
old_id *stringID of the memory being superseded
push_sessionPush context entries to a session. Entries are deduplicated and the token budget is enforced via compression and eviction.
ParameterTypeDescription
content *stringEntry content
importancenumberEntry importance 0-1 (default: 0.5, higher = harder to evict)
rolestringEntry role: user, assistant, tool, system (default: tool)
session_id *stringSession ID
sourcestringEntry source (e.g. file_read, search)
recall_memoryRecall relevant memories from persistent storage. Retrieves memories ranked by semantic relevance and recency. Use this to access context from previous sessions.
ParameterTypeDescription
max_resultsnumberMaximum number of memories to return (default: 10)
max_tokensnumberMaximum token budget for returned memories (0 = unlimited)
query *stringQuery text to search memories
tagsarrayFilter by tags
retrieve_deduplicatedQuery vector database with automatic deduplication. Fetches 3-5x more results than needed, clusters semantically similar chunks, selects the best representative from each cluster, and applies MMR for diversity. USE THIS instead of raw vector DB queries when you need diverse, non-redundant context.
ParameterTypeDescription
lambdanumberMMR lambda for relevance vs diversity (default: 0.5)
namespacestringVector DB namespace to search
over_fetch_knumberNumber of chunks to fetch before deduplication (default: 50)
query *stringThe search query text
target_knumberTarget number of chunks to return (default: 8)
thresholdnumberClustering threshold (default: 0.15)
session_contextRead the current context window for a session. Returns entries in push order with compression levels and token counts.
ParameterTypeDescription
max_tokensnumberMax tokens to return (0 = all)
rolestringFilter by role
session_id *stringSession ID
store_memoryStore context into persistent memory with automatic deduplication. Use this to save important context that should persist across sessions. Duplicate information is automatically detected and merged.
ParameterTypeDescription
session_idstringSession ID to associate with this memory
sourcestringSource of the memory (e.g., code_review, docs, conversation)
tagsarrayTags for categorizing the memory
text *stringText content to store

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 6.4K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by go.sum.
  • ✓No dynamic code executionScanned 217 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdio and Streamable HTTPcmd/mcp.go:265, cmd/mcp.go:286
Starts other programs
15 callsinternal/studylocal/adapter.go:200, internal/studylocal/authorization.go:457, internal/studylocal/preflight.go:55
Outbound network calls
8 callsinternal/jevpilot/client.go:34, internal/jevpilot/client.go:83, pkg/embedding/cohere/client.go:78
Writes or deletes files
92 callscmd/config.go:66, cmd/pipeline.go:114, internal/artifact/publish.go:81
Lockfile
go.sum

Pattern matches on the source text of 217 files: places to read, not proof of what the code does at run time.

Releases

v0.9.1v0.9.1 · 9 May 2026What's New OpenAPI 3.1 Spec & Interactive Docs (#91, closes #23) Distill now ships with a complete OpenAPI 3.1 specification and serves interactive Swagger UI at `/docs`. Endpoints documented: Dedupe (`/v1/dedupe`, `/v1/dedupe/stream`)…
v0.9.0v0.9.0 · 9 May 2026What's New This release adds five major memory features that make Distill agents more reliable, secure, and context-aware. Multi-Provider Embedding Support (#83, closes #25) Distill now supports Ollama and Cohere as embedding providers…
v0.8.0v0.8.0 · 2 May 2026Changelog 9c55236425991a0239d356d85c711596c0e12681 fix(ci): fix golangci-lint v2 config schema 8d766fb0c61dc6ce18006d5c2d499ffee8f98016 fix(ci): migrate to golangci-lint v2, fix lint violations e72e2b42d54a8e4e210327b0e9e3e8c098d9764b…
v0.7.0v0.7.0 · 2 May 2026Changelog 9514130f0d1b0c557be34d02ff777ffc9248f6e0 build(deps): bump go.opentelemetry.io/otel 1.40→1.41 and otel/sdk 1.40→1.43 (#46) 2e1cc24339bcde1749fb01f7d6f3e8f37f3a2c5d build: include shell completion scripts in GoReleaser archives…
v0.6.0v0.6.0 · 2 May 2026Changelog 2e16c7da0a34e31b39a898c5b13aea745b2604af build: add Makefile for common development tasks (#66) b671cd62f628a9cafa03e2700de2c2877fd4b6e4 feat(cache): TTL-aware cache tracker for batch workloads (#61)…

README

The repository's README runs to about 6.4K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Distill

How do I install Distill?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Distill safe to use with an AI agent?

Its trust score is 77 out of 100 (good). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 217 source files found that it serves MCP over stdio and Streamable HTTP, starts other programs (15 calls), makes outbound network calls (8 calls) and writes or deletes files (92 calls). Its dependencies are pinned by go.sum. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Distill still maintained?

Yes — the last commit was 10 days ago. The repository has 198 stars and 21 forks and 5 open issues.

What tools does Distill provide?

Conduid read 13 tools from the source: analyze_redundancy, create_session, deduplicate_chunks, delete_session, forget_memory, memory_expire, memory_stats, memory_supersede and 5 more. 12 of them publish their parameters, listed under Tools above.

What license is Distill released under?

The repository declares the MIT license. That applies to the latest release, v0.9.1, as well.