Engineering Drawing Estimator
An MCP server for counting electrical and communication symbols in engineering PDF drawings, supporting symbol detection, candidate review, and export of markup and quantities.
README
AI Engineering Drawing Estimator v0.1.2
AI Agent MCP for Symbol Counting and Quantity Takeoff
An assisted-review MCP server and Agent Skill for counting electrical and communication symbols in engineering PDF drawings with ChatGPT Codex, Hermes, and other MCP-compatible AI agents.
This is not a fully automatic quantity takeoff system. Every candidate must be reviewed before reporting a final count.
Supported workflow
- Inspect vector, hybrid, and raster PDF pages.
- Render pages for visual review.
- Detect vector candidates for:
- Duplex Socket Outlet
- Single Socket Outlet
- Data Outlet
- Suppress candidates whose center overlaps PDF text by default.
- Create project-specific symbol templates from a clean legend ROI.
- Export candidate crops, markup, CSV, JSON, and an HTML review page.
- Confirm reviewed candidates and add manually verified points.
No project drawings, customer files, marked-up plans, test outputs, or machine-specific paths are included in this repository.
Requirements
- Windows
- Python 3.12-3.14
- PowerShell
- An MCP-compatible AI agent such as Codex or Hermes
Install
Clone or download this repository, then run:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\install.ps1
The installer:
- Creates
.venvand installs the Python dependencies. - Runs the MCP doctor check.
- Installs the Skill to
~/.codex/skills/count-engineering-drawing-symbolsby default. - Generates
codex-mcp-config.tomlwith the local MCP command.
Add the generated MCP block to ~/.codex/config.toml, then restart the agent.
When upgrading from v0.1.1, remove the old [mcp_servers.drawing-estimate-reader] block and use the generated [mcp_servers.engineering-drawing-estimator] block.
For another agent, register a stdio MCP server using:
command: .venv\Scripts\python.exe
args: mcp\server.py
Agent prompt
Use $count-engineering-drawing-symbols to inspect this PDF.
Count Duplex Socket Outlet, Single Socket Outlet, and Data Outlet by floor.
Create markup and review every candidate before reporting the quantities.
MCP tools
| Tool | Purpose |
|---|---|
inspect_drawing |
Classify PDF pages before analysis |
render_page |
Render a page for legend and plan review |
get_symbol_rules |
Return supported symbol/context rules |
build_symbol_template |
Build a project-specific vector template |
detect_symbol_candidates |
Generate a high-recall candidate shortlist |
confirm_symbol_count |
Export confirmed counts and auditable markup |
Important review rules
- Treat starter templates as search aids, not universal standards.
- Prefer the legend from the current project.
- Check every wall face, wall corner, and both sides of doors.
- Support rotated symbols at 0, 90, 180, and 270 degrees.
- Use OCR only for text context, never for detecting symbol geometry.
- A nearby
4can be a circuit number;Ccan identify CCTV. - A zero result remains provisional until the candidate set and wall/door regions are reviewed.
- Use
manual_pointsfor visually confirmed misses.
Limitations
- The bundled matcher is intended mainly for vector/hybrid PDFs.
- Raster scans require high-resolution tiling and a vision/object-detection workflow.
- Different companies and projects may use different symbol geometry.
- Final results require human or agent-assisted visual confirmation.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.