Token导航 LogoToken导航TokenDH.com
Canadian Building Code MCP Server logo
搜索检索stdio官方级别未说明来源级核验

Canadian Building Code MCP Server

MCP Server

AI驱动的加拿大建筑规范搜索工具,支持搜索、导航和引用24,000+加拿大建筑规范条款。

工具数

8

提示词数

0

GitHub Stars

2

资源数

0
PythonClaude搜索Claude DesktopClaudeCursorWindsurf

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

DavidCho1999

提供方

DavidCho1999

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install uv

详细介绍

加拿大建筑规范MCP

](https://pypi.org/project/building-code-mcp/) ![License: MIT](https://opensource.org/licenses/MIT) ![Smithery](https://smithery.ai/server/davidcho/ca-building-code-mcp)

人工智能搜索24000多个加拿大建筑规范部分。

使人工智能助手能够在NBC、OBC、BCBC和其他13个加拿大法规中搜索、导航和引用建筑法规。

适用于Claude Desktop和任何兼容MCP的客户端(Cursor、Windsurf等)

______________________________________________________________________

为什么存在

建筑师和工程师浪费数小时搜索数千页的建筑规范。这个MCP服务器让AI完成繁重的工作:

You: "What are the fire separation requirements for a 3-storey
     residential building in Saskatchewan?"

Claude: [Searches NBC 2025, finds relevant sections, extracts text]

        "According to NBC 2025 Section 3.2.2.55, Group C buildings
         up to 3 storeys with sprinklers require:
         - Maximum area: 1,800 m²
         - Floor assemblies: 45-min fire-resistance rating
         - Load-bearing walls: Same rating as supported assembly"

______________________________________________________________________

特性

特性描述
24000+节NBC、OBC、BCBC、ABC、QCC+11更多代码已索引
智能搜索模糊匹配、同义词、“你是说什么?”建议
令牌优化与初始方法(v1.2.0)相比减少81%
版权安全BYOD模型-仅坐标,您提供PDF
司法管辖权意识知道哪个代码适用于(ON→英国广播公司→BCBC)

______________________________________________________________________

建筑

┌─────────────────────────────────────────────────────────────┐
│            MCP Client (Claude, Cursor, etc.)                 │
└─────────────────────────┬───────────────────────────────────┘
                          │ MCP Protocol
                          ▼
┌─────────────────────────────────────────────────────────────┐
│                   Building Code MCP Server                   │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐       │
│  │ search_code  │  │ get_section  │  │ get_table    │       │
│  │ (fuzzy+TF-IDF│  │ (BYOD text)  │  │ (markdown)   │       │
│  └──────┬───────┘  └──────┬───────┘  └──────┬───────┘       │
│         │                 │                 │               │
│         ▼                 ▼                 ▼               │
│  ┌─────────────────────────────────────────────────┐        │
│  │              maps/*.json (15.9 MB)              │        │
│  │         Section IDs, pages, keywords, bbox       │        │
│  └─────────────────────────────────────────────────┘        │
│                          │                                  │
│                          ▼ (BYOD mode only)                 │
│  ┌─────────────────────────────────────────────────┐        │
│  │              User's PDF (via PyMuPDF)            │        │
│  │           Text extraction at runtime             │        │
│  └─────────────────────────────────────────────────┘        │
└─────────────────────────────────────────────────────────────┘

两种模式:

  • 仅地图 (默认):返回页码和坐标。不需要PDF。
  • 自带设备:通过以下方式连接您的PDF set_pdf_path 用于全文提取。

______________________________________________________________________

快速入门(1分钟)

选项1:uvx(推荐)

# Install uv (one-time)
pip install uv

添加到 claude_desktop_config.json:

{
  "mcpServers": {
    "building-code": {
      "command": "uvx",
      "args": ["building-code-mcp"]
    }
  }
}

选项2:pip

pip install building-code-mcp
{
  "mcpServers": {
    "building-code": {
      "command": "building-code-mcp"
    }
  }
}

______________________________________________________________________

对话示例

查找需求

You: "I'm designing a 6-storey office building in Vancouver.
     What are the fire separation requirements?"

Claude: Let me search the BC Building Code...

[Uses search_code("fire separation office", code="BCBC")]
[Uses get_section("3.2.2.57", code="BCBC")]

Based on BCBC 2024 Section 3.2.2.57, a 6-storey Group D
(business) building requires:
- Sprinkler system: Required
- Floor assemblies: 1-hour fire-resistance rating
- Maximum building area: 7,200 m²

检查特定部分

You: "What does OBC section 9.10.14.1 say about spatial separation?"

Claude: [Uses get_section("9.10.14.1", code="OBC_Vol1")]

OBC Section 9.10.14.1 - Spatial Separation Between Buildings:
"Buildings on the same property shall have spatial separation
between them based on the aggregate area of unprotected openings
in exposing building faces..."

管辖权查询

You: "Which building code applies in Calgary?"

Claude: [Uses get_applicable_code("Calgary, Alberta")]

Calgary follows the Alberta Building Code (ABC) 2023.
Primary codes: ABC, AFC (Fire), APC (Plumbing)
Also check: National codes (NBC, NFC) for reference

______________________________________________________________________

支持的代码

国家规范(4)

NBC 2025、NFC 2025、NPC 2025、NECB 2025

省代码(9)

  • 安大略:OBC 2024(第1卷和第2卷),OFC
  • 不列颠哥伦比亚:公元前2024年
  • 阿尔伯塔:ABC 2023
  • 魁北克:质量控制中心、质量控制委员会、质量保证委员会、质量控制中心(2020)

用户指南(3)

IUGP9(第9部分外壳)、UGP4(结构)、UGNECB(能源)

总计:24000多个索引部分

______________________________________________________________________

令牌效率(v1.2.0)

内置优化可减少令牌使用:

优化减少
list_codes 紧凑模式81%
disclaimer 作为资源61%
默认值 verbose=false~50%

最佳实践: 使用 limit=5-10 只请求 verbose=true 必要时。

代币效率指南 了解详情。

______________________________________________________________________

可用工具

工具目的
list_codes显示可用代码和连接状态
search_code按关键字查找部分
get_section获取章节详细信息(页面、引用、文本)
get_table以markdown格式获取表格内容
get_hierarchy导航父/子部分
verify_section检查节ID是否存在
get_applicable_code查找位置代码
set_pdf_path连接PDF进行文本提取

______________________________________________________________________

API访问

REST API:https://canada-aec-code-mcp.onrender.com

curl https://canada-aec-code-mcp.onrender.com/search/fire+separation
注:托管API在Map-Only模式下运行。使用本地MCP获取全文。

______________________________________________________________________

发展

git clone https://github.com/DavidCho1999/Canada_building_code_mcp.git
cd Canada_building_code_mcp
pip install -e ".[all]"
python src/mcp_server.py

______________________________________________________________________

许可证

MIT许可证-请参阅 许可证

______________________________________________________________________

链接

目录标签

目录标签

PythonClaude搜索建筑规范本地部署AI搜索法规引用BYOD模式智能匹配

支持客户端

Claude DesktopClaudeCursorWindsurf

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

8

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP