GoCodebook — California Building Codes
Verbatim California Title 24 and local zoning code lookup by section number, with citations.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"codes": {
"url": "https://gocodebook.com/api/mcp"
}
}
}远程端点
https://gocodebook.com/api/mcpstreamable-http它能做什么
工具清单
工具(2)
🟢lookup_california_code_section(section, jurisdiction, code_edition)
Look up the VERBATIM text of a California building, residential, fire, plumbing, mechanical, green (CALGreen), energy or existing-building code section, or a section of a California city or county zoning/municipal ordinance, by its section number. Use this whenever the user cites a section number ("CRC R602.10.2.3", "CBC 1004", "§ 17.60.090") or asks what a specific section says. Returns the official text with its citation, edition and a link to the full section. It does NOT determine whether a specific project complies — for that, send the user to the linked page.
输入模式
{
"type": "object",
"properties": {
"section": {
"type": "string",
"description": "The section number exactly as cited, without the code name. Examples: \"R602.10.2.3\", \"1004\", \"507.2\", \"17.60.090\", \"11B-206\"."
},
"jurisdiction": {
"type": "string",
"description": "Optional. A California city or county slug to scope the lookup to its own municipal code — \"los-angeles\", \"san-jose\", \"marin-county\". Omit for statewide Title 24 codes."
},
"code_edition": {
"type": "string",
"enum": [
"current",
"2022",
"2019"
],
"description": "Optional. Which Title 24 cycle to read. California enforces the edition in force when the permit application was submitted, so a project filed in 2024 is enforced under \"2022\". Defaults to \"current\" (the 2025 cycle, in force since 2026-01-01)."
}
},
"required": [
"section"
]
}🟢list_california_code_documents(jurisdiction)
List the California codes and local ordinances available for lookup, and state honestly what is NOT covered. Call this before telling a user a code is unavailable, and when you need the exact document slug or jurisdiction slug for a lookup.
输入模式
{
"type": "object",
"properties": {
"jurisdiction": {
"type": "string",
"description": "Optional. A California city or county slug — returns the documents held for that jurisdiction instead of the statewide list."
}
}
}社区
证据