プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Sophon

作者:lacausecryptoバージョン 0.5.4i★ –iパソコンで動く
レジストリ名io.github.lacausecrypto/sophon

インストール

概要

作者による説明(英語の原文)

Honest token economics for MCP agents. 68% tokens saved, zero-ML Rust binary.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: その他

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "sophon": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-sophon"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add sophon -- npx -y mcp-sophon

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "sophon": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-sophon"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "sophon": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-sophon"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント lacausecrypto で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

その他のほかのサーバーとの比較i

  • このカテゴリのほかの32558件のうち0%よりスターが多い
  • このカテゴリのほかの32558件のうち8%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの32558件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Sophonは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.5.4)がレジストリに届いたのは6 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, FactLot

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Remote Desktop Commander

作者:desktop-commander

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

クラウドで動く★ 211昨日更新
インストール

FactLot

作者:9mp96ygnbk-alt

Cited CRE facts and deterministic calculators for agents: rent, CAM, debt sizing, IRR, parcel IDs.

パソコンでもクラウドでも今日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Sophon

Deterministic context compression for MCP agents. One Rust binary. Zero ML at query time. Reproducible benchmarks, real-data measurements.

Sophon is a deterministic context layer for agents speaking the Model Context Protocol. It compresses prompts, conversation memory, code digests, file deltas, and shell output — without an embedding model at query time, without a GPU, and without API keys.

Single 5.2 MB Rust binary. MCP-native. cl100k_base-accurate. Default build pulls no Python, no ML weights, no network.


What it does, in 30 seconds

ToolWhat it solves
compress_promptLong structured prompt → keep only sections relevant to the query
compress_historyGrowing conversation → summary + facts + recent window + optional retrieval
compress_outputShell stdout/stderr → 21 domain-aware filters (git, cargo, docker, kubectl, JSON, …)
read_file_delta / write_file_deltaRe-reads + edits → diffs only, never the whole file
encode_fragmentsRepeated boilerplate → single token reference
update_memoryAppend turn → JSONL persist + incremental rolling summary
navigate_codebaseRepo digest with tree-sitter / regex + PageRank, ranked by query

11 MCP tools total (full table below).


Real numbers — measured on this repo's own dev cycle

We built four independent benches that each capture a different chunk of an agent's tool traffic. All four run against this repo's actual git history + working tree on the operator's machine. Reproducible byte-for-byte by anyone with cargo build --release.

DimensionWhat it measuresSavedBench
historycompress_history over real commits94.6 %real_session_capture.py
shellcompress_output on real git/cargo/gh/ls stdout84.4 %real_session_shell.py
filereadscompress_prompt on real Rust / Python / Markdown / TOML files71.7 %real_session_filereads.py
searchcompress_output on real grep/find patterns79.5 %real_session_search.py
🎯 Weighted blend (35/30/20/15)typical agent session estimate84.7 %real_session_holistic.py

real_session_holistic.py runs all four sub-benches with --json, parses them, and produces the weighted blend. Default weights reflect this repo's observed shape; pass --weights "history=0.4,..." to model your own workload.

USD economy on Claude Opus 4.7
Saved per session
Naive input pricing ($15/MT)$2.03
With prompt caching (25-turn reads at $1.50/MT)$3.24

Pass --model sonnet or --model haiku to real_session_deep_dive.py if you're re-pricing for a cheaper tier.

Where each dimension falls short (we say it ourselves)
  • history measures only what git captures (commits + diffs) — typically ~5-10 % of a real session's *tool traffic*. The 94.6 % is the upper bound, not the typical case.
  • shell mixes commands that compress well (git diff 95 %) with commands that don't (gh repo view --json *adds* tokens, −9 %). 84.4 % is a real-world average, not a curated highlight.
  • filereads uncovered that compress_prompt on raw source files compresses by budget cap, not by query routing — same file with 3 different queries → identical output. Section detection only fires on structured input (Markdown headers, XML tags). Documented inline in the bench.
  • search depends entirely on YOUR repo's state. A repo with no TODOs gets 0 % on grep TODO.

The blended 84.7 % is napkin-math from a linear weighted average across four real measurements. Not a cherry-picked synthetic. Run the benches yourself to verify.

Other reproducible benchmarks (synthetic, on-thesis)
TestResultBench
compress_output across 18 command families90.1 % weighted aggregatecompress_output_per_command.py
25-turn synthetic Claude Code session68.1 % session tokens savedsession_token_economics.py
compress_prompt across 22 prompt shapes70.2 % mean, 36 ms mean latencyprompt_compression_extended.py
Code retrieval on "where is X?" questionsrecall@3 = 70 % (vs grep 10 %, FULL 20 %)repo_qa.py
vs LLMLingua-2 on structured prompts+8.9 pt accuracy at 35× lower latencyllmlingua_compare.py
Sophon + Anthropic prompt caching+24 % tokens / +49 % $ on top of cachingsophon_plus_prompt_caching.py
Sophon + mem0Additional savings on retrieved memoriessophon_plus_mem0.py

Why Sophon — "in front of X"

Sophon is not a memory platform, a recall system, an OCR stack, or a replacement for provider-side caching. It's a deterministic compressor that slots in front of whatever memory / cache / code-nav layer you already use, and attacks the tokens those layers can't.

In front of Anthropic / OpenAI prompt caching

Provider caching handles the static half of a request — system prompt, tool definitions, reused documents. It doesn't touch the dynamic half (growing conversation history, tool outputs). Sophon compresses exactly that half. The two stack cleanly.

+24 % tokens / +49 % $ saved on top of prompt caching on a 25-turn Claude session — because the uncached dynamic block is billed at 10× the cached rate. See sophon_plus_prompt_caching.py.

In front of mem0 / Letta / Zep / Graphiti

Memory systems retrieve the right memories. Sophon shrinks what gets sent to the LLM after retrieval. If mem0 returns 2 kB of raw memories, compress_prompt keeps only the sections the query actually references.

Honest caveat: on very short retrieved blocks (< ~200 tokens) Sophon's wrapper adds overhead and you should pass through. The bench reports this directly.

In front of Claude Code / Cursor / Cline

Primary use case. Every repeat file read becomes a read_file_delta; every shell command output goes through compress_output; every repeated boilerplate block gets a fragment_cache token. Install transparently with sophon hook install --agent claude --global.

In front of a RAG pipeline

navigate_codebase produces a PageRanked repo digest that a RAG retriever would otherwise spend expensive embedding calls to build. Tree-sitter / regex symbol extraction over 11 languages, sub-second.

When NOT to use Sophon
  • Long-form conversational recall above 80 % — Sophon caps at ~40 % on LOCOMO and we don't chase it. Run mem0 / Letta / Zep for recall, then optionally pipe their output through Sophon.
  • Multi-hop reasoning on massive documents — that's HippoRAG or GraphRAG.
  • OCR / PDF layout — out of scope. Use Docling / Marker / Unstructured upstream.
  • Very small inputs (< ~200 tokens) — Sophon's section scaffolding can cost more than it saves.

Quick start

Install via npm (recommended)
npm install -g mcp-sophon

sophon doctor # verify install + show config

The postinstall script downloads the right prebuilt binary for your platform from the GitHub Releases page. Supported: macOS arm64/x64, Linux arm64/x64, Windows x64.

Build from source
git clone https://github.com/lacausecrypto/mcp-sophon

cd mcp-sophon/sophon cargo build --release -p mcp-integration # ~5.2 MB binary

Optional features:

# 11-language tree-sitter AST extraction (~25 MB):

cargo build --release -p mcp-integration --features codebase-navigator/tree-sitter

BGE-small semantic embedder (~34 MB), activate with SOPHON_EMBEDDER=bge:

cargo build --release -p mcp-integration --features bge

All features (~42 MB):

cargo build --release -p mcp-integration --features "codebase-navigator/tree-sitter,bge"

Requires Rust 1.75+.

Wire it into an MCP client

Most clients accept this snippet (Claude Desktop, Claude Code, Cursor, Cline, Continue):

{

"mcpServers": { "sophon": { "command": "sophon", "args": ["serve"] } } }

Run sophon doctor to print the right config path for your client.

Recommended runtime setup
# Persistent memory + on-disk retriever store + BM25+Hash hybrid

export SOPHON_MEMORY_PATH=~/.sophon/memory.jsonl export SOPHON_RETRIEVER_PATH=~/.sophon/retriever export SOPHON_HYBRID=1

sophon serve

Quick CLI
sophon exec -- cargo test                       # run + compress combined output

sophon compress-prompt --prompt ./system.txt --query "rust errors" --max-tokens 500 sophon hook install --agent claude --global # transparent Claude Code integration sophon stats --period session # token savings rollup

Programmatic (one-shot JSON-RPC)
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"compress_prompt","arguments":{"prompt":"<rust>?: operator</rust><web>fetch()</web>","query":"rust errors","max_tokens":500}}}' \

| sophon serve


What the binary ships

11 MCP tools, all stdio:

ToolWhat it does
compress_promptKeep query-relevant sections of a long prompt
compress_historySummary + facts + recent + optional retrieval over the conversation
compress_outputStrip noise from command stdout/stderr (21 domain filters + JsonStructural)
navigate_codebasetree-sitter / regex digest of a repo, PageRanked by query
update_memoryAppend messages, JSONL persist, optional rolling summary
read_file_deltaVersion/hash-aware file read, unchanged → minimal payload
write_file_deltaSend edits as diffs, not full files
encode_fragments / decode_fragmentsDetect repeated boilerplate, swap with tokens
count_tokenscl100k_base-accurate token count
get_token_statsSession-level savings rollup

Binary sizes by feature set:

BuildSize
Default (regex extractors, HashEmbedder)5.2 MB
+ tree-sitter (11 languages)~25 MB
+ BGE semantic embedder~34 MB
All features~42 MB

MCP protocol: 2025-06-18. notifications/cancelled actually drops the response (since v0.5.4

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く