Skip to main content
Glama

judge-mcp

CI

English: README.en.md

LLM-as-Judge テキスト品質評価を MCP サーバーとして提供。

原文・修正文のペアを多軸加重ルーブリックで採点し、人間ラベル付きゴールデンセットで採点モデルを試験し(「学習ではなく試験」)、2つの採点器の一致率を交差検証します。すべて MCP ツールとして公開されているため、Claude Desktop・Claude Code などあらゆる MCP クライアントで対話形式の評価を実行できます。

作った理由

校正・リライティング・要約には単一の正解がないため、LLM 採点器を採用するチームが増えています。しかし、検証されていない採点器は単なる一意見にすぎません。このサーバーは、実サービスログ分析プロジェクトで検証した方法論をツールとして一般化したものです。

  1. 多軸加重ルーブリック — 意味保持・自然さ・改善度・過剰修正の抑制。不透明な単一スコアではなく、軸ごとに評価します。

  2. ゴールデンセット試験 — 採点器の候補を人間ラベル(適切な修正/見逃し/過剰修正)で試験します。学習には決して使用しないため、ゴールデンセットは試験問題として維持され、ルーブリックが変更されるたびに回帰試験として再利用されます。

  3. 二重採点の交差検証 — 同じ問題を2つの採点器で採点して一致率を測定し、結論が採点器の選択に対して頑健であるかを実証します。

  4. 決定的プリフィルタ — 無変更ペアは LLM なしでコードが採点します。低コストで、常に同じ回答です。

Related MCP server: mcp-eval-harness

ツール

ツール

機能

judge_score_text

原文・修正文のペアを採点 → 軸別スコア・加重総合・good/fair/poor 判定・根拠

judge_run_golden_set

ゴールデンセットで採点器を試験 → 全体・バケット別精度の成績表

judge_compare_models

2モデルの二重採点 → ±1点一致率・低品質判定一致率・平均差

judge_list_rubrics

ルーブリック一覧と軸・重みの照会

韓国語校正の合成ゴールデンセット24問(3バケット)が内蔵されており、golden_path で独自のゴールデンセット(JSONL: idoriginalrevisedlabel)を使用できます。

インストール・設定

OpenAI 互換バックエンドであればすべて動作します — OpenAI、ローカル vLLM、Ollama、LM Studio。

pip install -e .

export JUDGE_API_BASE="https://api.openai.com/v1"   # vLLM이면 http://localhost:8000/v1
export JUDGE_API_KEY="sk-..."                        # 로컬 서버는 아무 값
export JUDGE_MODEL="gpt-4o-mini"                     # 또는 Qwen/Qwen2.5-7B-Instruct-AWQ

Claude Desktop 設定例は examples/ にあります。設定後は次のように質問できます。

  • 「この校正を採点して:原文『오늘 회의 몇시에 시작하나요』、修正『몇 시에 시작하나요?』」

  • 「gpt-4o-mini でゴールデンセットを実行して成績表を見せて」

  • 「gpt-4o-mini とローカル Qwen が採点器として互いに一致するか比較して」

実測結果

内蔵ゴールデンセット24問を Claude Sonnetclaude-cli バックエンド)で試験した結果:

バケット

精度

適切な修正(good_fix)

8/8

見逃し(missed)

7/8

過剰修正(overcorrected)

5/8

全体

83.3%

直接再現:python scripts/run_golden.py --backend claude-cli(OpenAI 互換 API は --backend api)。

ケーススタディ:ゴールデンセットが設計欠陥を発見

最初の実行は 62.5% — 見逃しバケットが 0/8 でした。原因は採点器ではなく判定設計にありました。見逃した修正は意味を保持し過剰修正もないため、重みの大きい2軸(0.40+0.35)が満点になり、改善軸が1点でも総合が8〜9点になります。総合スコアで見逃しを検出することは数学的に不可能でした。

修正:見逃しバケットの判定を総合スコアではなく改善(improvement)軸 ≤ 4 に変更。再試験の結果 62.5% → 83.3%、見逃し 0/8 → 7/8。ゴールデンセット回帰ループが存在する理由はまさにこれです — 静かに潜んでいた評価設計の欠陥を実測で明らかにし、修正し、回帰テストで固定しました。(残るギャップ:過剰修正バケットでは LLM 採点の実行間変動が観察されました — Few-shot アンカー強化の候補であり、同じ回帰ループで改善を検証できます。)

設計ノート

  • 採点器の検証が核心です。 採点器モデルはデフォルト状態では傾向が正反対であり、試験なしで選ぶのは推測にすぎません。精度は方向で判定します — 適切に修正されたものは高く(≥7)、見逃し・過剰修正は低く(≤5)。グレーゾーン(5〜7)は意図的に誤答として扱います。

  • 再現性優先。 temperature 0、JSON 強制出力+コードフェンス・雑談耐性パーシング、スコア範囲クランプ、そしてモデルが不要なケース(無変更)はコードパスで処理。

  • 実行可能なエラー。 接続・スキーマ失敗はスタックトレースではなく「何を修正すればよいか」を含むメッセージで返します。

テスト

pip install -e ".[dev]"
pytest   # 21건, 네트워크 불필요 (모의 LLM)

ライセンス

MIT

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Human-evaluation infrastructure for AI quality. 25,000+ blind human reviews by 200+ verified reviewers across 58 AI models — query the data via five MCP tools (get_model_scores, compare_models, get_flags, check_content, get_latest).
    2
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Evaluates RAG outputs on faithfulness, answer relevancy, and context precision using an LLM-as-a-Judge backend. Exposes tools for running evaluations, scoring individual samples, and checking thresholds, enabling CI gating and on-demand assessment via MCP.
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    An MCP server that audits LLM-as-judge evaluations, detecting judge drift across runs, measuring bias through controlled probes, and comparing judge agreement with human raters.
    6
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.

  • Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.

  • Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/egoring/judge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server