Skip to main content

MCP server for searching Canadian Building Codes (NBC, OBC, BCBC, etc.)

Project description

Canadian Building Code MCP Server

PyPI version License: MIT

A Model Context Protocol (MCP) server that enables Claude to search and navigate Canadian building codes.

Quick Setup (3 Steps)

1. Install the package

pip install building-code-mcp

2. Add to Claude Desktop config

Config file location:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "building-code": {
      "command": "uvx",
      "args": ["building-code-mcp"]
    }
  }
}

3. Restart Claude Desktop and start asking!


What It Does

Ask Claude questions like:

  • "Find fire separation requirements for garages in NBC"
  • "What are the stair width requirements in OBC?"
  • "Show me section 9.10.14 of the Building Code"

Claude will search 22,500+ indexed sections across 16 Canadian building codes and guides.

Supported Codes

Building Codes (13)

Code Version Sections Description
NBC 2025 2,783 National Building Code
NFC 2025 1,044 National Fire Code
NPC 2025 413 National Plumbing Code
NECB 2025 475 National Energy Code for Buildings
OBC 2024 4,108 Ontario Building Code (Vol 1 & 2)
OFC O. Reg. 213/07 1,906 Ontario Fire Code
BCBC 2024 2,584 British Columbia Building Code
ABC 2023 2,832 Alberta Building Code
QCC 2020 2,726 Quebec Construction Code
QECB 2020 384 Quebec Energy Code
QPC 2020 428 Quebec Plumbing Code
QSC 2020 1,063 Quebec Safety Code

User's Guides (3)

Guide Version Sections Description
IUGP9 2020 1,096 Illustrated Guide - Part 9 Housing
UGP4 2020 495 User's Guide - NBC Structural Commentaries
UGNECB 2020 165 User's Guide - NECB

Usage Examples

Once installed, just ask Claude naturally:

"Search for egress requirements in NBC"
"What does section 3.2.4.1 say in OBC?"
"Find fire resistance ratings for walls"
"Which building code applies in Toronto?"
"List all available building codes"

API Access

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

GET /codes              - List all codes
GET /search/{query}     - Search sections
GET /section/{id}       - Get section details

License

MIT License - See LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

building_code_mcp-1.0.2.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

building_code_mcp-1.0.2-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file building_code_mcp-1.0.2.tar.gz.

File metadata

  • Download URL: building_code_mcp-1.0.2.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for building_code_mcp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 343cb992fd3011a5fd86f0bb8d25b927f93b560f0af8db3211cbddca898c3962
MD5 b2bdd3f87ce9cb5d843a893b1318e298
BLAKE2b-256 e310fb93e651fcae21d7def7a457eacc35e12e80f11fb30e3ee23f584a8e9460

See more details on using hashes here.

File details

Details for the file building_code_mcp-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for building_code_mcp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d150360cf4ba23cbab9538bd006ccc4f1c1f0c09e59a94002a5b04ccffeee41d
MD5 888c2695096cea34f3098cfc88ee89d4
BLAKE2b-256 87f07afde6065133bdd2c9b85570dcf6fa531c327e7a262e3dbf3e6b45b66d7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page