semlayer

The open-source semantic layer that infers itself — skip the quarter of hand-writing dbt YAML.

Point it at your warehouse. It profiles every column, discovers the foreign keys nobody declared, decodes the status columns, and recovers the business rules hiding in your aggregate tables — verified against your own data, with confidence, provenance, and a review queue on every claim. Then any AI agent consumes the result over MCP.

On our messy-warehouse benchmark, an agent answers 53% of business questions correctly vs 34% from the raw schema (+54% relative). On clean, well-named schemas it doesn't help — we publish that negative result too. The full eval suite ships in the repo.
pip install -e ".[warehouses]"      # Snowflake, BigQuery, DuckDB (+ Iceberg)
semlayer infer snowflake -o layer.yaml --context ./docs/
semlayer review layer.yaml           # accept/reject what it inferred
semlayer mcp layer.yaml              # serve it to Claude, Cursor, any agent

GitHub → Read the benchmark