Mercury MCPのロゴ

Mercury MCP

コミュニティ
norika1207-lab

Cross-architecture LLM internal observation database (23 models, 13 architecture families). Exposed as MCP tools for any AI coding agent.

公開者norika1207-lab
リポジトリmercury-mcp
言語Python
フォーク
14
スター
43
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    Mercury MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには43件のスターと14件のフォークがあります。

Mercury MCP: Cross-Architecture LLM Internal Observation, as Agent Tools

DOI License: MIT

"Most AI coding agents don't know what's inside the model they're talking to. Mercury does."

Mercury MCP exposes a 23-LLM cross-architecture observation database to any agent that speaks the Model Context Protocol (Claude Code, Cursor, Cline, Goose, etc.).

Built entirely on consumer hardware (one Mac mini + one NVIDIA DGX Spark) at near-zero compute cost.


What it answers

Try these prompts with any MCP-aware agent after installing:

  • "What hidden dimensions are universally hot across LLM families?"
  • "In qwen-7B, which layer has the same functional fingerprint as falcon-7B layer 16?"
  • "Compose a layer recipe for a Chinese-writing + reasoning hybrid model."
  • "Show me OLMo2's anchor dimensions and how they overlap with the qwen anchor set."

The agent calls Mercury MCP tools; Mercury answers from precomputed observation data.


Why this matters

For mech interp researchers

23-LLM cross-architecture survey across 13 architecture families, two observation tiers per model.

Tier-A (output-layer logit hooks): cheap, fast, candidate-signal screening. May surface artifacts from shared tokenization (vocab-id mod hidden_size collisions). Useful as hypothesis-generating layer.

Tier-B (HF output_hidden_states across all layers): the actual finding layer. Per-layer residual stream fingerprints. Cross-architecture functional layer alignment qwen-7B L15 to falcon-7B L16 reaches 0.868 similarity. 54/84 model-pairs aligned at the middle layers (50-60% depth).

Earlier "dim 11 universal across families" claim from Tier-A is being re-framed as candidate signal, not validated residual stream feature. Working through this in Paper A draft.

For LLM application developers

Stop guessing which model to fine-tune. Mercury tells you structurally which layers carry which capability and which models' middle layers are functionally interchangeable.

For Frankenstein / model-merge people

Cross-architecture per-layer alignment matrix included (12 Tier-B models, 84 pairwise). Strongest single match: qwen-7B L15 to falcon-7B L16 at 0.868 similarity. mistral / yi / gemma occupy alternative residual subspace, possible non-interfering composition substrate.


Install (3 lines)

bash
git clone https://github.com/norika1207-lab/mercury-mcp
cd mercury-mcp
pip install -e .

Then add to your MCP client config:

jsonc
// ~/.claude/mcp_settings.json  (Claude Code)
{
  "mcpServers": {
    "mercury": {
      "command": "python",
      "args": ["-m", "mercury_mcp.server"]
    }
  }
}

Restart your agent. You now have 7 new tools: mercury_list_models, mercury_anchor_dims, mercury_universal_anchors, mercury_layer_fingerprint, mercury_cross_arch_equivalent, mercury_compose_recipe, mercury_about.


The 23 models in v0.1 (13 architecture families)

FamilyModelsTier-B done
qwen23B, 7B, 14B, 32B, coder-32B3B, 7B, 14B ✓
qwen2-distill (DeepSeek-R1)7B, 32B, 70B7B ✓
llama3.1-8B, 3.3-70Bpending
phi3medium-14B✓
falcon37B✓
internlm27Brunning
mistral7B-v0.3, small-3.2-24B7B ✓
olmo27B (AllenAI fully-open)✓
gemma29B✓
granite3.1-dense-8B (IBM)✓
yi1.5-9B✓
starcoder215Bpending
codestral22B (mistral coder variant)pending
command-r35B (Cohere)pending

Tier-A all 23 done. Tier-B 12 of 23 done, rest in progress.


Findings (still evolving, see Paper A draft for current framing)

  1. Cross-architecture per-layer functional alignment. qwen-7B L15 to falcon-7B L16 reaches sim 0.868. 54 of 84 pairwise comparisons show sim above 0.7 at middle layers (50-60% depth). This is the strongest finding right now. Comes from Tier-B (residual stream level), so not vulnerable to tokenizer artifact critique.

  2. Distillation appears to transplant anchor structure. DeepSeek-R1:70b uses a llama base but Tier-A anchor structure aligns with qwen at 44.7x random baseline. Note this is Tier-A so caveats apply (see point 4), but the magnitude is hard to dismiss as pure vocab artifact at 44.7x.

  3. Three families show alternative residual stream geometry. mistral-7B, mistral-small, yi-1.5 all show 0/11 qwen-anchor presence in Tier-A and structurally different hot dims in Tier-B. They occupy a different subspace, possible substrate for non-interfering cross-architecture composition.

  4. Methodology caveat being worked through openly. Tier-A "dim 11 universal across families" (originally framed as residual stream feature) may be a vocab-token-id mod hidden_size collision artifact from shared tokenizer training. Tier-B on OLMo2 contradicts the Tier-A reading. Paper A is being re-framed with Tier-A as screening layer (candidate signals) and Tier-B as finding layer (validated residual stream observations). Discussion welcome.

Full data + analysis: see anchor-survival-MASTER.txt and the mercury-paper-handoff repo.


Tool reference

ToolPurpose
mercury_list_modelsList all 23 observed models
mercury_anchor_dims(model, top_k=50)This model's hot dims + qwen-anchor overlap analysis
mercury_universal_anchors(min_models=3)Cross-model universal anchor presence ranking
mercury_layer_fingerprint(model, layer)Per-layer functional fingerprint (Tier-B only)
mercury_cross_arch_equivalent(model, layer, top_k=5)Find functionally-similar layers in OTHER models
mercury_compose_recipe(capabilities)Generate composable layer recipe for given capabilities
mercury_aboutPaper status, citations, contribution info

How the data was collected

  • Observation protocol: 10 multilingual prompts per model, ~60 tokens each, greedy decoding
  • Tier-A: hooked into llama_cpp.Llama.logits_processor to capture output-layer hot dims per token
  • Tier-B: transformers.AutoModelForCausalLM.from_pretrained with output_hidden_states=True, per-layer residual stream activation magnitudes binned into 10 quantiles
  • Cell grid scheme: addressable (layer, dim, quantile_idx) mmap-able binary, ~24MB-840MB depending on model size
  • Source code: paper-handoff paper-G-composable-llm/tools/

Reproducibility: ~4 hours wall-clock per model on a Mac mini M4 Pro. No GPU required.


Cite

bibtex
@dataset{oda_mercury_2026,
  author = {Chen, Ho Yiing (norika)},
  title  = {Mercury: Cross-Architecture Hot-Dim Geometry Database for 23 LLMs},
  year   = {2026},
  doi    = {10.5281/zenodo.20352085},
  url    = {https://github.com/norika1207-lab/mercury-mcp}
}

License

MIT for code. Data CC-BY-4.0.


Author

norika (Chen Ho Yiing), Taiwan independent researcher.

Built solo, no institutional affiliation, no grant, no GPU. Just curiosity and stubborn nights.

インストール

TypingMind
{
  "mcpServers": {
    "mercury-mcp": {
      "command": "python",
      "args": [
        "-m",
        "mercury_mcp.server"
      ]
    }
  }
}

Mercury MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Mercury MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Mercury MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Mercury MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "mercury-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてMercury MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Mercury MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Mercury MCPを使ってこのタスクを手伝ってもらえますか?
Mercury MCP
はい、読みました。
Mercury MCPで調べた結果をお伝えします。

よくある質問

Mercury MCP MCPサーバーは何に使いますか?

Mercury MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでMercury MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでMercury MCPを利用できます。

TypingMindでMercury MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Mercury MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Mercury MCP MCPをTypingMindに接続するにはどうすればよいですか?

Mercury MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでMercury MCP MCPのどのようなツールを利用できますか?

Mercury MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Mercury MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Mercury MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇