Skip to main content
Glama

Wafer Map MCP Server

半導体ウェハー解析ツールをAIアシスタントに提供する MCP (Model Context Protocol) サーバーです。 これらのツールは半導体テストデータの解析用に設計されており、AIエージェントが生のテストデータからウェハーマップ、Pチャート、トレンドプロット、統計解析図などの主要なエンジニアリング可視化チャートを正確に生成できるようにします。

Related MCP server: ML Research MCP

プレビュー

バイナリマップ

プロパティマップ

Pチャート

Binary Map

Property Map

P-Chart


ツール

ツール

説明

run_wafer_analysis

一括解析: サマリー + バイナリマップ + 全PINマップ + Pチャート

get_wafer_info

基本的なウェハーサマリー (歩留まり、合格/不合格数、PIN列)

plot_wafer_bin

合格/不合格のバイナリウェハーマップ (BIN=0 → ティール色、それ以外 → 黒)

plot_wafer_property

単一PIN列の連続値ヒートマップ (青 → 赤)

plot_pchart

PIN列ごとのウェハー正規確率プロット

データ形式

以下の列を持つCSVまたはZIP (CSVを1つのみ含む):

BIN, X, Y, WAFER_ID, PIN_1, PIN_2, ..., PIN_N
  • BIN = 0 → 合格、それ以外は不合格

  • X, Y → ウェハーグリッド上のダイ座標

  • PIN_* → 連続測定値

カラースケール (IQRロバストシグマ)

プロパティマップとPチャートの境界線は、微妙な変化を可視化するためにIQRベースの境界を使用します:

sigma  = (P75 - P25) / 1.35
IQR_L  = P50 - 6 × sigma
IQR_H  = P50 + 6 × sigma

クイックスタート

オプションA: Docker (推奨)

docker build -t wafer-mcp .
docker run -p 8001:8001 wafer-mcp

サーバーは http://localhost:8001/mcp で利用可能になります。

独自のデータファイルを解析するには、ボリュームをマウントします:

docker run -p 8001:8001 -v /absolute/path/to/data:/data wafer-mcp
# then pass file_path="/data/your_wafer.zip" when calling tools

オプションB: ローカルPython

要件: Python 3.10以上

pip install -r requirements.txt
python server.py

サンプルデータ

サンプルデータセットがプロジェクトの sample_data/sample_1.zip に同梱されています。

場所

パス

ローカル

./sample_data/sample_1.zip

Docker

/app/sample_data/sample_1.zip

クイック動作確認 (Docker):

# inside the container the sample lives at /app/sample_data/sample_1.zip
# call any tool with this file_path to verify everything works

Claude Desktopの設定

サーバーはストリーミング可能なHTTPトランスポートを使用するため、claude_desktop_config.json で url 形式を使用します:

{
  "mcpServers": {
    "wafer-map": {
      "url": "http://localhost:8001/mcp"
    }
  }
}

手順:

  1. MCPサーバーを起動 (ローカルまたはDocker)

  2. 上記の設定をClaude Desktopに追加

  3. Claude Desktopを再起動

  4. Claudeにウェハーデータファイルの解析を依頼 — 自動的に適切なツールが選択されます


ツールパラメータ

run_wafer_analysis

パラメータ

型

デフォルト

説明

file_path

str

必須

.csvまたは.zipファイルへのパス

pin_columns

list[str]

None

None

プロットするPIN列のサブセット; None = すべて

target_size

int

300

出力画像のピクセルサイズ

get_wafer_info

パラメータ

型

デフォルト

説明

file_path

str

必須

.csvまたは.zipファイルへのパス

plot_wafer_bin

パラメータ

型

デフォルト

説明

file_path

str

必須

.csvまたは.zipファイルへのパス

target_size

int

300

出力画像のピクセルサイズ

plot_wafer_property

パラメータ

型

デフォルト

説明

file_path

str

必須

.csvまたは.zipファイルへのパス

pin_column

str

"PIN_1"

可視化するPIN列

target_size

int

450

出力画像のピクセルサイズ

data_l

float

None

None

カラースケールの下限を上書き

data_h

float

None

None

カラースケールの上限を上書き

plot_pchart

パラメータ

型

デフォルト

説明

file_path

str

必須

.csvまたは.zipファイルへのパス

pin_column

str

"PIN_1"

プロットするPIN列

target_size

int

300

出力画像のピクセルサイズ


プロジェクト構造

.
├── server.py                    # MCP server entry point
├── requirements.txt             # Python dependencies
├── Dockerfile                   # Container definition
├── sample_data/
│   └── sample_1.zip             # Bundled sample wafer dataset
├── tools/
│   ├── workflow/
│   │   └── analyze_wafer.py     # Orchestrates full analysis
│   ├── information_read/
│   │   └── read_wafer_info.py   # Parse CSV/ZIP and compute yield
│   ├── wafer_map/
│   │   ├── wafer_bin_binary_plot.py    # Binary map renderer (PySide6)
│   │   └── wafer_item_property_plot.py # Property heatmap renderer (PySide6)
│   └── statistic_plot/
│       └── pchart_plot.py       # P-chart renderer (matplotlib)
└── pchart/
    └── PchartReportWidget.py    # Legacy Qt widget (reference only)

技術スタック

  • MCP: FastMCP — ストリーミング可能なHTTPトランスポート

  • ウェハーマップレンダリング: PySide6 オフスクリーン QPainter

  • Pチャートレンダリング: matplotlib + scipy + statsmodels


ライセンス

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables LLMs to access, analyze, and extract information from STDF-V4 semiconductor test data files, supporting metadata extraction, parametric analysis, yield calculations, and multi-site test data filtering with CSV/Excel export capabilities.
    2
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides machine learning researchers with tools for creating publication-quality scientific visualizations, statistical plots, and 2D data representations. It streamlines the research workflow by enabling AI assistants to generate complex figures from CSV, JSON, or direct data inputs.
    8
    9
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to perform statistical process control calculations using validated, deterministic tools such as control charts, capability analysis, and tolerance intervals.
    3
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI agents to create data visualizations like bar charts, line charts, pie charts, scatter plots, and histograms, returning inline SVG or PNG files.
    5
    MIT