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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。