# Quality Control Plan Generator

This MCP server turns technical-drawing PDFs into inspection plans, marked-up drawings, and Excel or PDF reports. Use it for first-article and production checks.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: imnoo-team
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/imnoo-team/quality-control-plan-mcp
- Updated: 2026-09-18
- HTML: https://affpapa.org/en/nevibecode/mcp/quality-control-plan-generator

## What it does

The server sends a vector or scanned drawing PDF to `analyze_drawing`, which returns detected dimensions, tolerances, fits, threads, GD&T features, and surface finishes. Each result includes its type, value, page, position, confidence, and printed balloon number. Input files can be up to 30 MB.

\`build_quality_plan` then assigns acceptance limits, balloon numbering, inspection classes, and a measuring instrument for each selected feature. Use `export_quality_plan_excel` for the measurement report or `export_inspection_pdf` for a ballooned drawing and inspection package; the source PDF stays unchanged. Only drawing analysis is sent to Imnoo’s service, while plan creation and exports run locally. Node.js ≥ 18 is required, so an older runtime will block installation.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `QCP_APP_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env QCP_APP_URL=<QCP_APP_URL> --transport stdio quality-control-plan-generator -- npx -y quality-control-plan-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add quality-control-plan-generator --env QCP_APP_URL=<QCP_APP_URL> -- npx -y quality-control-plan-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "quality-control-plan-generator": {
            "command": "npx",
            "args": [
                "-y",
                "quality-control-plan-mcp"
            ],
            "env": {
                "QCP_APP_URL": "<QCP_APP_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "quality-control-plan-generator": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "quality-control-plan-mcp"
            ],
            "env": {
                "QCP_APP_URL": "<QCP_APP_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e QCP_APP_URL=<QCP_APP_URL> quality-control-plan-generator npx -y quality-control-plan-mcp
```
Replace <…> with your own values

## When to use it
- extract tolerances from a drawing PDF
- build a first-article inspection plan
- mark drawing features with balloon numbers
- derive acceptance ranges from nominal values and tolerances
- export measurement reports to Excel and PDF

## Example prompts
- Create a Q1 inspection plan from `flange.pdf` and export the Excel and PDF reports.
- Read the drawing PDF, retain its printed balloon numbers, and assign a measuring instrument to each feature.
- Renumber the selected features with the `D001` style and produce a ballooned drawing.

## Similar
- [document-processing](https://affpapa.org/en/nevibecode/skills/document-processing.md) — skill · 1300 installs
- [flatmark](https://affpapa.org/en/nevibecode/mcp/flatmark.md) — MCP server
- [document-skills](https://affpapa.org/en/nevibecode/plugins/document-skills.md) — plugin · ★ 184278
- [office-mcp](https://affpapa.org/en/nevibecode/skills/office-mcp.md) — skill · 6900 installs
- [portfolio-monitoring](https://affpapa.org/en/nevibecode/skills/portfolio-monitoring.md) — skill · 1100 installs
- [dataset-quality-audit](https://affpapa.org/en/nevibecode/skills/dataset-quality-audit.md) — skill · ★ 4679

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
