Canadian Building Code MCP Server
The Canadian Building Code MCP Server enables AI assistants to search, navigate, and cite over 24,000 sections across 15+ Canadian building codes (NBC, OBC, BCBC, ABC, QCC, and more) through an MCP-compatible interface.
Core Capabilities:
Search building codes - Find relevant sections using keywords with fuzzy matching, synonym support, and TF-IDF search across all codes
Retrieve section details - Access specific section content, citations, page numbers, and coordinates by section ID (e.g., 9.10.14.1)
Navigate code hierarchy - Explore parent, child, and sibling relationships between sections
Verify sections - Confirm section IDs exist and retrieve formal citations to prevent AI hallucination
Determine applicable codes - Identify which building codes apply to specific Canadian cities, provinces, or territories
List available codes - View all supported codes and their connection status
Connect personal PDFs (BYOD mode) - Set up local PDF paths for full text extraction instead of just coordinates, ensuring copyright compliance
Extract table content - Convert code tables to markdown format
Access via REST API - Use the hosted API for searches without local setup
Key Benefits:
Token-optimized responses (81% reduction compared to naive approaches)
Compatible with MCP clients like Claude Desktop and Cursor
Enables accurate answers about building requirements, compliance documentation, and code navigation across Canadian jurisdictions
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Canadian Building Code MCP ServerFind fire separation requirements for garages in the NBC"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Canadian Building Code MCP
AI-powered search for 24,000+ Canadian building code sections.
Enable AI assistants to search, navigate, and cite building regulations across NBC, OBC, BCBC, and 13 other Canadian codes.
Works with Claude Desktop and any MCP-compatible client (Cursor, Windsurf, etc.)
Why This Exists
Architects and engineers waste hours searching through thousands of pages of building codes. This MCP server lets AI do the heavy lifting:
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"Related MCP server: RAG Database MCP Server
Features
Feature | Description |
24,000+ Sections | NBC, OBC, BCBC, ABC, QCC + 11 more codes indexed |
Smart Search | Fuzzy matching, synonyms, "Did you mean?" suggestions |
Token Optimized | 81% reduction vs naive approach (v1.2.0) |
Copyright Safe | BYOD model - coordinates only, you provide the PDF |
Jurisdiction Aware | Knows which code applies where (ON→OBC, BC→BCBC) |
Architecture
┌─────────────────────────────────────────────────────────────┐
│ 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 │ │
│ └─────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘Two Modes:
Map-Only (default): Returns page numbers & coordinates. No PDF needed.
BYOD: Connect your PDF via
set_pdf_pathfor full text extraction.
Quick Start (1 minute)
Option 1: uvx (Recommended)
# Install uv (one-time)
pip install uvAdd to claude_desktop_config.json:
{
"mcpServers": {
"building-code": {
"command": "uvx",
"args": ["building-code-mcp"]
}
}
}Option 2: pip
pip install building-code-mcp{
"mcpServers": {
"building-code": {
"command": "building-code-mcp"
}
}
}Example Conversations
Finding Requirements
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²Checking Specific Sections
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..."Jurisdiction Lookup
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 referenceSupported Codes
National Codes (4)
NBC 2025, NFC 2025, NPC 2025, NECB 2025
Provincial Codes (9)
Ontario: OBC 2024 (Vol 1 & 2), OFC
British Columbia: BCBC 2024
Alberta: ABC 2023
Quebec: QCC, QECB, QPC, QSC (2020)
User's Guides (3)
IUGP9 (Part 9 Housing), UGP4 (Structural), UGNECB (Energy)
Total: 24,000+ indexed sections
Token Efficiency (v1.2.0)
Built-in optimizations reduce token usage:
Optimization | Reduction |
| 81% |
| 61% |
Default | ~50% |
Best practice: Use limit=5-10 and only request verbose=true when needed.
See Token Efficiency Guide for details.
Tools Available
Tool | Purpose |
| Show available codes and connection status |
| Find sections by keywords |
| Get section details (page, citation, text) |
| Get table content as markdown |
| Navigate parent/child sections |
| Check if section ID exists |
| Find codes for a location |
| Connect PDF for text extraction |
API Access
REST API: https://canada-aec-code-mcp.onrender.com
curl https://canada-aec-code-mcp.onrender.com/search/fire+separationNote: Hosted API runs in Map-Only mode. Use local MCP for full text.
Development
git clone https://github.com/DavidCho1999/Canada_building_code_mcp.git
cd Canada_building_code_mcp
pip install -e ".[all]"
python src/mcp_server.pyLicense
MIT License - See LICENSE
Links
Available Tools
7 toolsget_applicable_codeB
Get which building codes apply to a Canadian location (city, province, or territory)
| Name | Required | Description | Default |
|---|---|---|---|
| location | Yes | Location name (e.g., Toronto, British Columbia, Calgary) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It states what the tool does but doesn't disclose behavioral traits like whether this is a read-only operation, what format the output returns, error handling, or any rate limits. The description is functional but lacks operational context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that clearly states the tool's purpose and scope. It's appropriately sized and front-loaded with no wasted words, making it easy for an agent to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (1 parameter, no output schema, no annotations), the description is adequate but has clear gaps. It explains what the tool does but lacks details on output format, error conditions, or behavioral constraints. For a tool with no annotations or output schema, more context would be helpful.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with the parameter 'location' well-documented in the schema. The description adds minimal value beyond the schema by specifying acceptable input types ('city, province, or territory'), but doesn't provide additional syntax, format details, or examples. Baseline 3 is appropriate when schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with specific verb ('Get') and resource ('which building codes apply'), and specifies the scope ('Canadian location'). However, it doesn't explicitly differentiate from sibling tools like 'list_codes' or 'search_code', which might have overlapping functionality.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context by specifying 'Canadian location' and acceptable input types ('city, province, or territory'), but doesn't provide explicit guidance on when to use this tool versus alternatives like 'list_codes' or 'search_code'. No exclusions or prerequisites are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_hierarchyC
Get parent, children, siblings of a section
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Section ID | |
| code | Yes | Code name |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool retrieves hierarchical relationships but lacks details on permissions, rate limits, error handling, or return format. This is a significant gap for a tool with no annotation coverage, making it inadequate for safe and effective use.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence that directly states the tool's purpose without unnecessary words. It is front-loaded and efficient, making it easy for an agent to parse quickly, with no wasted information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the lack of annotations and output schema, the description is incomplete. It does not cover behavioral aspects like safety, performance, or return values, which are critical for a tool that retrieves data. The description alone is insufficient for an agent to understand the full context of use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, clearly documenting both required parameters ('id' and 'code'). The description does not add any meaning beyond the schema, such as explaining how these parameters interact or their significance in retrieving hierarchy. With high schema coverage, the baseline score of 3 is appropriate as the schema handles the parameter documentation adequately.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function with a specific verb ('Get') and resource ('parent, children, siblings of a section'), making the purpose immediately understandable. However, it does not explicitly distinguish this tool from sibling tools like 'get_section' or 'list_codes', which might also retrieve section-related data, leaving some ambiguity about its unique role.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, exclusions, or compare it to sibling tools such as 'get_section' or 'search_code', leaving the agent without context for selection in a multi-tool environment.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_sectionC
Get details of a specific section
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Section ID (e.g., 9.10.14) | |
| code | Yes | Code name (e.g., NBC) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must fully disclose behavioral traits. It only states the action ('Get details') without explaining what 'details' entail, potential side effects, error conditions, or response format. For a read operation with no annotation coverage, this is insufficient to inform the agent about how the tool behaves beyond the basic action.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, straightforward sentence that efficiently conveys the core action without unnecessary words. It is front-loaded with the main purpose. However, it could be slightly more informative without sacrificing brevity, such as hinting at the type of details retrieved.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (a read operation with 2 required parameters) and the absence of both annotations and an output schema, the description is incomplete. It does not clarify what 'details' are returned, how errors are handled, or how it differs from sibling tools. This leaves significant gaps for the agent to understand the tool's full context and usage.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, clearly documenting both parameters ('id' and 'code') with examples. The description adds no additional meaning beyond what the schema provides, such as explaining the relationship between 'id' and 'code' or their significance. With high schema coverage, the baseline score of 3 is appropriate as the schema carries the burden.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Get details of a specific section' clearly states the action (get) and resource (section), making the purpose understandable. However, it lacks specificity about what 'details' include and does not distinguish this tool from potential siblings like 'get_hierarchy' or 'verify_section', which might also retrieve section-related information. This vagueness prevents a higher score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. With siblings such as 'get_hierarchy', 'list_codes', and 'search_code', it is unclear if this tool is for retrieving metadata, structural info, or something else. There is no mention of prerequisites, exclusions, or contextual cues, leaving usage ambiguous.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_codesB
List all available Canadian building codes
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden but only states what the tool does, not how it behaves. It doesn't mention whether the list is paginated, sorted, cached, or if there are rate limits or authentication requirements for accessing building codes.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence with no wasted words. It's front-loaded with the core action and resource, making it highly efficient and easy to parse.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a zero-parameter tool with no output schema, the description is minimally adequate but lacks context about return format (e.g., list structure, code identifiers) and behavioral details. It covers the basic purpose but doesn't fully compensate for missing annotations or output schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters with 100% schema description coverage, so the schema fully documents the absence of inputs. The description doesn't need to add parameter details, and it correctly implies no filtering or options are available, aligning with the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('List') and resource ('all available Canadian building codes'), making the purpose immediately understandable. It doesn't specifically differentiate from siblings like 'search_code' or 'get_hierarchy', but the scope is well-defined.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives like 'search_code' (for filtered searches) or 'get_hierarchy' (for structured relationships). The description implies a comprehensive listing but doesn't specify use cases or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_codeC
Search building code sections by keywords
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search terms | |
| code | No | Code name (optional) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool searches but doesn't describe how results are returned (e.g., format, pagination), whether it's read-only or has side effects, or any limitations like rate limits or authentication needs. This leaves significant gaps in understanding the tool's behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's function without unnecessary words. It is appropriately sized and front-loaded, making it easy to understand at a glance.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what the search returns (e.g., list of sections, full text), how results are structured, or any behavioral traits. For a search tool with two parameters and no structured output information, more context is needed to guide effective use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with clear documentation for both parameters ('query' as search terms and 'code' as optional code name). The description adds minimal value beyond the schema, as it only implies keyword-based searching without providing additional context like search syntax or examples.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose as searching building code sections by keywords, which includes a specific verb ('search') and resource ('building code sections'). It distinguishes from some siblings like 'get_section' (retrieves specific sections) and 'list_codes' (lists code names), but doesn't explicitly differentiate from 'get_applicable_code' which might also involve searching or filtering.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'get_applicable_code' or 'verify_section'. It mentions searching by keywords but doesn't specify scenarios where this is preferred over other search or retrieval methods available in the sibling tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
set_pdf_pathC
Connect your PDF for text extraction (BYOD)
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code name | |
| path | Yes | PDF file path |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool connects a PDF for text extraction, implying a setup or configuration action, but doesn't describe what happens after connection (e.g., whether it triggers immediate extraction, stores the path for later use, or requires authentication). It also doesn't mention error handling, rate limits, or side effects.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise with a single, front-loaded sentence: 'Connect your PDF for text extraction (BYOD)'. Every word earns its place, and there's no redundant information. The parenthetical 'BYOD' adds context without verbosity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has no annotations, no output schema, and involves a mutation-like action (connecting/uploading a PDF), the description is incomplete. It doesn't explain what the tool returns (e.g., success confirmation, extraction ID), error cases, or how it integrates with sibling tools for code management. The 'BYOD' hint is vague and doesn't compensate for these gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters (code and path). The description adds marginal value by implying 'code' might be a name for the PDF connection and 'path' is the file location, but doesn't clarify format requirements (e.g., local vs. remote paths) or relationships between parameters beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Connect your PDF for text extraction' specifies the action (connect) and resource (PDF). It distinguishes from siblings by focusing on PDF setup rather than code retrieval or verification. However, it doesn't explicitly mention what 'BYOD' means in this context, leaving some ambiguity.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a PDF file ready), exclusions, or relationships with sibling tools like list_codes or search_code. The 'BYOD' hint implies user-provided content but lacks explicit usage context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
verify_sectionB
Verify if a section exists and get its formal citation (use this to prevent hallucination)
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Section ID to verify (e.g., 9.10.14.1) | |
| code | Yes | Code name (e.g., NBC, OBC) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the tool verifies existence and retrieves a citation, but does not disclose key behavioral traits such as error handling (e.g., what happens if the section doesn't exist), authentication needs, rate limits, or whether it's a read-only or mutating operation. The description adds some context but leaves significant gaps for a tool with no annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise and front-loaded, consisting of a single sentence that directly states the tool's purpose and a brief usage hint. There is no wasted language, and every part of the sentence contributes to understanding the tool's function, making it highly efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (2 required parameters, no output schema, no annotations), the description is somewhat complete but has gaps. It covers the basic purpose and a usage hint, but lacks details on behavioral traits, error handling, and output format. Without annotations or an output schema, the description should do more to compensate, but it provides a minimal viable explanation, resulting in an average score.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with clear documentation for both parameters ('id' and 'code'). The description does not add any additional meaning or examples beyond what the schema provides (e.g., it doesn't elaborate on parameter usage or constraints). According to the rules, when schema coverage is high (>80%), the baseline score is 3, as the schema handles the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Verify if a section exists and get its formal citation.' It specifies the verb ('verify') and resource ('section'), and mentions a key outcome ('formal citation'). However, it does not explicitly differentiate this from sibling tools like 'get_section' or 'search_code', which might have overlapping functionality, keeping it from a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides implied usage guidance by stating 'use this to prevent hallucination,' suggesting it should be used to validate section existence before referencing it. However, it does not explicitly state when to use this tool versus alternatives like 'get_section' or 'search_code,' nor does it outline any exclusions or prerequisites, resulting in a moderate score.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
7 tool updates
v1.0.1- First observed
get_applicable_code - First observed
get_hierarchy - First observed
get_section - First observed
list_codes - First observed
search_code - First observed
set_pdf_path - First observed
verify_section
TDQS
Each tool has a clearly distinct purpose with no overlap: get_applicable_code determines location-based applicability, get_hierarchy navigates section relationships, get_section retrieves section details, list_codes enumerates available codes, search_code performs keyword searches, set_pdf_path handles PDF integration, and verify_section validates section existence. The descriptions make it unambiguous which tool to use for each task.
All tool names follow a consistent verb_noun pattern with snake_case: get_applicable_code, get_hierarchy, get_section, list_codes, search_code, set_pdf_path, and verify_section. The verbs (get, list, search, set, verify) are appropriately chosen for their actions, and the nouns clearly indicate the target resources, creating a predictable and readable naming scheme.
With 7 tools, this server is well-scoped for its purpose of accessing and navigating Canadian building codes. The count is sufficient to cover core operations like listing, searching, retrieving details, verifying sections, managing hierarchies, handling location applicability, and integrating PDFs, without being overwhelming or sparse. Each tool earns its place in the workflow.
The toolset provides strong coverage for the domain of building code access and navigation, including listing codes, searching, retrieving section details, verifying existence, and handling hierarchies and location applicability. A minor gap is the lack of update or modification tools, but this is reasonable for a read-only reference server, and the PDF integration via set_pdf_path adds flexibility for text extraction.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Versioned documentation registry and semantic search for AI tools and coding assistants.
Ingest, manage, and retrieve documents for RAG-powered AI applications
The Needle MCP server enables semantic search on documents stored in files like PDFs, DOCX, and XLSX by connecting AI applications to external data sources. It provides capabilities to create and manage document collections, perform natural language searches on stored content, and retrieve relevant information without requiring exact keyword matches.
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProfessional building code compliance assistant that interfaces with municipal building codes, helping contractors and builders navigate complex regulatory requirements with precision.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and query PDF documents through a local RAG system with vector embeddings. Provides semantic document search capabilities while keeping all data stored locally without external dependencies.-
- AlicenseNot gradedqualityDmaintenanceEnables intelligent search and question-answering over PDF documents using semantic similarity and keyword search. Supports OCR for scanned PDFs, persistent vector storage with ChromaDB, and maintains source tracking with page numbers.6MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables local indexing and semantic search of PDF documents (like AGLC4 style guide) with OCR support, allowing LLM tools to query PDF content and retrieve relevant text snippets with context.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DavidCho1999/Canada_building_code_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server