brick-ontology-mcp
Provides offline access to the Brick Schema ontology, enabling validation and search of building metadata classes through MCP tools.
README
brick-ontology-mcp
An MCP server that gives LLMs native access to the Brick Schema ontology — the open standard for describing building metadata (equipment, sensors, locations, and relationships).
Validate, search, and explore 1000+ Brick classes without leaving your AI coding assistant. Fully offline after install.
Why
If you work with smart building data, you've hit these problems:
- Assigning classes that don't exist — RDF silently accepts
brick:Chilled_Water_Thingywithout complaint - Not knowing what's available — with 1000+ classes, it's hard to find the right one
- Reinventing existing classes — creating
My_Custom_Temp_SensorwhenZone_Air_Temperature_Sensoralready exists - Wrong specificity level — using
brick:Sensorwhen a more precise subclass is available
This MCP server solves all four by making any MCP-compatible client (Claude Code, Claude Desktop, Cursor, etc.) aware of the full Brick class hierarchy.
Tools
| Tool | What it does |
|---|---|
brick_validate_class |
Check if a class exists. Handles camelCase, spaces, typos — returns fuzzy suggestions if not found. |
brick_search_classes |
Search classes by keyword with optional category filter. |
brick_get_hierarchy |
Get ancestors and/or descendants of a class. |
brick_list_classes |
List all classes under a category (Equipment, Sensor, Setpoint, etc.) as a tree. |
All tools are read-only and fully offline — the Brick ontology is bundled with the brickschema Python package. No API keys, no network calls.
Installation
From source
git clone https://github.com/ucl-sbde/brick-ontology-mcp.git
cd brick-ontology-mcp
pip install .
Or with uv:
uv pip install .
Configuration
Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"brick-ontology": {
"command": "brick-ontology-mcp"
}
}
}
Or globally in ~/.claude.json:
{
"mcpServers": {
"brick-ontology": {
"command": "brick-ontology-mcp"
}
}
}
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"brick-ontology": {
"command": "brick-ontology-mcp"
}
}
}
Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"brick-ontology": {
"command": "brick-ontology-mcp"
}
}
}
Example Usage
"Does this class exist?"
You: Assign
brick:Chilled_Water_Thingyto this valve
The LLM calls brick_validate_class("Chilled_Water_Thingy") and gets:
{
"exists": false,
"normalized_to": "Chilled_Water_Thingy",
"suggestions": [
{"class_name": "Chilled_Water_Valve", "similarity": 0.8},
{"class_name": "Chilled_Water_Pump", "similarity": 0.65}
]
}
"What classes exist for temperature sensors?"
You: What types of temperature sensors does Brick have?
The LLM calls brick_search_classes("temperature sensor") and gets all matching classes with their categories and parent classes.
"Am I reinventing the wheel?"
You: I'll create a custom
Hot_Water_Supply_Tempclass
The LLM calls brick_search_classes("hot water temperature") and discovers Hot_Water_Supply_Temperature_Sensor already exists.
"What's the hierarchy?"
You: Where does Zone_Air_Temperature_Sensor sit in the ontology?
The LLM calls brick_get_hierarchy("Zone_Air_Temperature_Sensor", direction="ancestors") and gets:
Zone_Air_Temperature_Sensor
-> Air_Temperature_Sensor
-> Temperature_Sensor
-> Sensor
-> Point
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -v
# Test the server with MCP Inspector
npx @modelcontextprotocol/inspector brick-ontology-mcp
How It Works
The server loads the Brick Schema ontology (v1.4+) at startup using the brickschema Python library. It pre-indexes all class names, parent/child relationships, and category assignments into in-memory data structures. Tool calls are sub-millisecond lookups against this index — no SPARQL queries at runtime for validation and search.
Built with FastMCP (the official MCP Python SDK).
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。