# Canadian Building Code

Access and search comprehensive Canadian building regulations for construction and compliance reference. Navigate complex code hierarchies to find specific requirements for fire safety, structural in…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add davidcho/ca-building-code-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list davidcho/ca-building-code-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get davidcho/ca-building-code-mcp list_codes

# Call a tool
npx -y @smithery/cli@latest tool call davidcho/ca-building-code-mcp list_codes '{}'
```

## Direct MCP Connection

Endpoint: `https://ca-building-code-mcp--davidcho.run.tools`

## Tools (10)

- `list_codes` — List all available Canadian building codes with section counts
- `search_code` — Search for building code sections by keywords (e.g., 'fire separation', 'stair width')
- `get_section` — Get details of a specific section by ID
- `get_hierarchy` — Get parent, children, and sibling sections for navigation
- `verify_section` — Verify that a section ID exists and get a formal citation
- `get_applicable_code` — Determine which building codes apply to a specific Canadian location
- `get_table` — Get a specific table from the building code
- `set_pdf_path` — [LOCAL ONLY] Connect your PDF for text extraction. NOT available in hosted API.
- `get_page` — [LOCAL ONLY] Get full text of a specific page. Requires PDF connected.
- `get_pages` — [LOCAL ONLY] Get text from a range of pages (max 5). Requires PDF connected.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get davidcho/ca-building-code-mcp <tool-name>
```
