Skip to main content
Glama

Wafer Map MCP 服务器

一个 MCP (Model Context Protocol) 服务器,为 AI 助手提供半导体晶圆分析工具。 这些工具专为半导体测试数据分析而设计,使 AI 代理能够根据原始测试数据正确生成关键的工程可视化图表,如晶圆图、P-图、趋势图和统计分析图。

Related MCP server: ML Research MCP

预览

二进制图

属性图

P-图

二进制图

属性图

P-图


工具

工具

描述

run_wafer_analysis

一次调用完成全面分析:摘要 + 二进制图 + 所有 PIN 图 + P-图

get_wafer_info

基本晶圆摘要(良率、通过/失败计数、PIN 列)

plot_wafer_bin

二进制通过/失败晶圆图(BIN=0 → 青色,否则 → 黑色)

plot_wafer_property

单个 PIN 列的连续值热图(蓝色 → 红色)

plot_pchart

每个晶圆的 PIN 列正态概率图

数据格式

CSV 或 ZIP(包含且仅包含一个 CSV),包含以下列:

BIN, X, Y, WAFER_ID, PIN_1, PIN_2, ..., PIN_N
  • BIN = 0 → 通过,否则失败

  • X, Y → 晶圆网格上的芯片坐标

  • PIN_* → 连续测量值

颜色标尺 (IQR 稳健 Sigma)

属性图和 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 配置

该服务器使用 Streamable 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 — Streamable 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