ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

LatentGate

โดย KathanModh259รุ่น 1.4.2i★ –iรันบนเครื่อง
ชื่อใน registryio.github.KathanModh259/latent-gate

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Read large logs, JSON and docs in a fraction of the tokens. Offline, fact-preserving optimizer.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "latent-gate": {
      "command": "uvx",
      "args": [
        "latent-gate",
        "mcp"
      ]
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add latent-gate -- uvx latent-gate mcp

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "latent-gate": {
      "command": "uvx",
      "args": [
        "latent-gate",
        "mcp"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "latent-gate": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "latent-gate",
        "mcp"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub KathanModh259 ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32589 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 57% ของอีก 32589 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 32589 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

LatentGate ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.4.2) เข้า registry 29 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Detailing Manager

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวาน
ติดตั้ง

Detailing Manager

โดย RadoslavMoshev

Connect your auto detailing studio's tasks, cars, clients and revenue to Claude or ChatGPT.

รันบนเครื่องอัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

LatentGate

*Give your AI the signal, not the noise.*

An MCP server that shrinks logs, JSON, docs and web pages before your AI reads them — offline, deterministic, in ~3ms, no API key. 66% fewer tokens across a mixed dev corpus; 90%+ on repetitive logs.

Use in Claude | Quick Start | Python API | REST API | Monitoring | Load Testing | Deployment | AI Tools | Benchmarks | Contributing


See it work

[Try it in your browser →](https://kathanmodh259.github.io/latent-gate/) The real optimizer runs on your machine via WebAssembly; nothing you paste is uploaded.

A 400-line error log, read through LatentGate (balanced, measured with tiktoken):

BEFORE  13,641 tokens

2026-10-08 09:00:00 ERROR order 10000 failed: payment gateway timeout after 2982ms (retry 1/3) ... 398 more lines in the same shape ...

AFTER 145 tokens (98.9% saved) 2026-10-08 09:00:00 INFO app started, 3 workers 2026-10-08 09:00:00 ERROR order 10000 failed: payment gateway timeout after 2982ms (retry 1/3) [… 398 similar lines: order 10001…10398, 2900…3100 ms …] 2026-10-08 09:06:39 ERROR order 10399 failed: payment gateway timeout after 3030ms (retry 1/3) 2026-10-08 09:07:00 FATAL circuit breaker open for payments-api

Install it into Claude Code in one line, then ask *"read app.log and tell me why orders fail"*:

claude mcp add --scope user latent-gate -- uvx --from "latent-gate[mcp,tokens]" latent-gate-mcp

What you can rely on: the same input always gives the same output (so provider prompt caching keeps working); output is never larger than input; code blocks, URLs and quoted strings come back byte-for-byte; level="lossless" changes nothing but whitespace, JSON formatting and exact duplicates. What you trade at the default level: runs of near-identical lines are folded to first, last and value ranges, so individual IDs inside a folded run are not kept. The full corpus, including where it loses facts, is in Cost Benchmarks and reproducible with latent-gate --optimizer-benchmark.

Works in Claude Code, Claude Desktop, Cursor, Cline, Continue and Zed, free and offline.

Don't want to install anything? The official hosted LatentGate on mcprush also runs where local servers can't, such as claude.ai on the web and mobile. It has a free tier (300 calls a month) and paid plans from $9/month.


The Problem

Every time you send an image or long prompt to GPT-4o / Claude / Gemini, you burn 1,000+ tokens on processing that could happen locally for free.

Traditional:  Image -> Cloud LLM (1,200 tokens) -> Answer

LatentGate: Image -> Local Ollama (FREE) -> Cloud LLM (200 tokens) -> Answer


Features

FeatureDescription
Local-FirstVision and text compression runs on Ollama (free, no API key needed)
Token OptimizerDeterministic, fact-preserving compression: 66% fewer tokens on a realistic dev corpus in ~1ms (benchmark)
MCP ServerWorks with Claude Desktop, Cursor, Cline, Continue, Zed
Selective DecodingFor video, only call API when scene changes (~2.85x fewer calls) with cosine similarity
Text CompressionLong prompts, conversations, RAG docs compressed locally
Speed OptimizedConnection pooling, model preloading, parallel processing
Multi-ProviderOpenAI, Anthropic, Google, Groq, DeepSeek, Together, Azure, AWS Bedrock, Ollama, or any OpenAI-compatible endpoint
REST APIFastAPI server for web application integration
Video ProcessingDirect video file input with automatic frame extraction
Cost TrackingPersistent cost tracking with SQLite analytics and exportable reports
Async SupportNon-blocking async methods for FastAPI, aiohttp, etc.
Streaming ResponsesStream responses from remote LLMs
Config PersistenceYAML/TOML config files with environment variable overrides
Structured LoggingJSON-formatted logging with rotation and correlation IDs
Docker SupportDockerfile and docker-compose for easy deployment
Plugin SystemCustom processors for domain-specific compression
Multi-LanguageSupport for 30+ languages with automatic detection

Use it in Claude

LatentGate plugs into Claude as an MCP server. Its optimizer tools work offline, with no Ollama and no API key — Claude reads big logs, JSON dumps and docs through it and spends a fraction of the context. A 400-line error log goes from 14,400 to ~100 tokens.

Requires uv (uvx fetches LatentGate from PyPI on first run). The first run downloads dependencies, which can exceed Claude's 30-second MCP startup limit on a slow connection; run this once beforehand (later starts take ~2s):

uvx --from "latent-gate[mcp,tokens]" latent-gate --optimizer-benchmark

Claude Code — plugin (MCP server + a skill that tells Claude when to use it):

/plugin marketplace add KathanModh259/latent-gate

/plugin install latent-gate@latent-gate

Claude Code — MCP server only:

claude mcp add latent-gate -- uvx --from "latent-gate[mcp,tokens]" latent-gate-mcp

Any agent — from the Agensi marketplace: LatentGate Context Saver is the official skill for Claude Code, Cursor, Codex CLI and 20+ other agents. It sets LatentGate up if it's missing, works with the local and hosted editions, and tells your agent when to use it.

Claude Desktop — add to claude_desktop_config.json and restart:

{

"mcpServers": { "latent-gate": { "command": "uvx", "args": ["--from", "latent-gate[mcp,tokens]", "latent-gate-mcp"] } } }

Then just ask: *"Read logs/app.log with latent-gate and tell me why orders fail."*

ToolNeeds OllamaWhat it does
read_file_optimizednoRead a text file and return its optimized form (use for files you read, not files you edit)
optimize_textnoOptimize text you already have, optionally toward a question / max_tokens budget
count_tokensnoCount tokens (tiktoken o200k_base)
compress_imageyesDescribe an image locally as a ~150-token scene payload
compress_text / compress_conversation / compress_documentsyesOptimizer + fact-checked local-LLM compression
get_statsyesSession statistics

Quick Start

Install
# Core install

pip install latent-gate

With MCP server (for Claude Desktop, Cursor, Cline, etc.)

pip install latent-gate[mcp]

With API server (for web applications)

pip install latent-gate[api]

With video processing

pip install latent-gate[video]

With embedding-based similarity (more accurate selective decoding)

pip install latent-gate[embeddings]

With LangChain integration

pip install latent-gate[langchain]

With AWS Bedrock support

pip install latent-gate[bedrock]

Exact token counts via tiktoken (otherwise a calibrated ~6%-error estimate)

pip install latent-gate[tokens]

With all features

pip install latent-gate[all]

Pull Ollama Models
ollama pull llava:7b      # Vision model (required for image queries)

ollama pull llama3:8b # Text model (required for text compression & prediction)

One-Command Quickstart
chmod +x scripts/quickstart.sh

./scripts/quickstart.sh

This starts everything: Ollama → pulls models → API server → website. See scripts/quickstart.sh for options like --no-pull, --no-website, --port 9000.

CLI Usage
# Image query

latent-gate photo.jpg "What is in this image?" --provider ollama -v

Text compression

latent-gate --text "Your long prompt here..." --provider ollama -v

Text from file

latent-gate --text-file prompt.txt --provider openai -v

Image + Text combined

latent-gate photo.jpg "Analyze" --text "Extra context..." -v

Full JSON output

latent-gate photo.jpg "Describe" --json -v

Compress only, deterministically (no LLM call, ~1ms, reproducible)

cat prompt.txt | latent-gate --text-file - --compress-only --deterministic --level balanced

Reproduce the token-savings benchmark (no Ollama needed)

latent-gate --optimizer-benchmark

Production benchmark

latent-gate --benchmark --benchmark-output reports/benchmark.json

Start API server (requires: pip install latent-gate[api])

latent-gate-api

Production Hardening

For API deployments, restrict direct image-path reads to trusted directories:

set LATENTGATE_ALLOWED_IMAGE_ROOTS=C:\safe-images;D:\datasets

latent-gate-api

Benchmark before releases so speed and savings are measured, not guessed:

latent-gate --benchmark --json

Python API

Image Query
from latent_gate import LatentGatePipeline, PipelineConfig

config = PipelineConfig( vision_model="llava:7b", predictor_model="llama3:8b", remote_provider="openai", remote_model="gpt-4o-mini", )

with LatentGatePipeline(config) as pipeline: result = pipeline.query("photo.jpg", "What is in this image?")

print(result["answer"]) print(f"Tokens sent: ~{result['tokens_estimated']}") print(f"Timing: {result['timing']}")

Text Compression
# Long prompt compression

result = pipeline.query_text("Your 500-word prompt here...", mode="auto")

Conversation history compression

messages = [ {"role": "user", "content": "Help me with Kubernetes setup"}, {"role": "assistant", "content": "Sure! What's your target configuration?"}, {"role": "user", "content": "3 nodes, t3.large, us-east-1 with autoscaling"}, ] result = pipeline.query_conversation(messages, "Now give me the setup commands")

RAG document compression

documents = ["doc1 text...", "doc2 text...", "doc3 text..."] result = pipeline.query_documents(documents, "How do I implement JWT refresh?")

Universal (auto-detect input type)

result = pipeline.query_universal(text="Explain this code...", image="screenshot.png")

Batch Processing
# Sequential with selective decoding (skips redundant API calls)

results = pipeline.query_batch(image_paths, "Describe each scene

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx