orionbelt-semantic-layer
by ralfbecher·★ 46·Score 45
OrionBelt Semantic Layer converts YAML semantic models to optimized SQL for multiple databases via MCP API.
Overview
OrionBelt Semantic Layer is an API-first semantic engine that compiles declarative YAML models into optimized, dialect-specific SQL across multiple database platforms including BigQuery, PostgreSQL, Snowflake, ClickHouse, Dremio, Databricks, DuckDB, and MySQL. It enables AI agents to query databases using business concepts rather than raw SQL through a REST API and MCP integration. The solution provides analytics as code with version-controlled YAML models, dialect-specific SQL generation, and a complete integration surface including UI, API, and MCP server.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Teams working with multiple database dialects who want to define analytics semantics once and compile to optimized SQL across platforms through a programmatic interface.
When NOT to choose this
You need write access to databases (this is read-only only), require complex joins beyond star schema patterns, or need extensive custom SQL logic beyond the semantic model capabilities.
Tools this server exposes
12 tools extracted from the READMEcompile_queryCompile a query into SQL based on the semantic model
validate_modelValidate a semantic model definition
list_modelsList available semantic models
query_planGet query plan information without executing the query
find_semanticsFind semantic elements in the model
execute_queryExecute a compiled query against the database
compile_examplesGet example queries from model definitions
heartbeatInvalidate cache for dependent queries
get_model_healthCheck model health including orphaned elements
export_modelExport model in different formats
get_warningsGet warnings from model operations
discover_databasesDiscover available databases and schemas
Comparable tools
Installation
Install the OrionBelt MCP server via the separate MCP client:
pip install orionbelt-semantic-layer-mcpAdd to Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"orionbelt": {
"command": "uvx",
"args": ["orionbelt-semantic-layer-mcp"]
}
}
}The main semantic layer API can be installed directly:
pip install orionbelt-semantic-layerOr via Docker:
docker run -p 8080:8080 ralforion/orionbelt-apiFAQ
- What databases does OrionBelt support?
- OrionBelt supports BigQuery, PostgreSQL, Snowflake, ClickHouse, Dremio, Databricks, DuckDB/MotherDuck, and MySQL.
- How does OrionBelt handle SQL injection prevention?
- OrionBelt uses AST-based SQL generation, not string templates, which ensures injection-safe SQL generation across all supported dialects.
- Can I use OrionBelt with other AI assistants besides Claude?
- Yes, the MCP server also works with Copilot, Cursor, and Windsurf. The main API can be integrated with any platform that supports REST or HTTP endpoints.
Compare orionbelt-semantic-layer with
Last updated · Auto-generated from public README + GitHub signals.