SLayer, a semantic layer maintained by your agent
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Hello HN!If you want to connect your agent to a database (say, to build a data analyst chatbot or any kind of agentic app) today you have 2 options: an SQL MCP server or a semantic layer.SQL MCP is the easiest path to setup, especially if you also have a .md knowledge base which the agent can update. It gets quite messy quickly though, especially if there's many interactions or DB is large. Generated SQL is hard to review if you want to understand where the numbers came from, and related queries can be hard to align and compare.The natural alternative is a semantic layer, which is an inventory of what data is available/useful (data models) and an interface for querying it using a structured DSL — usually a list of measures, dimensions, filters, with joins etc. handled under the hood.When we needed a semantic layer at Motley for connecting to our customers' data, we first settled on Cube with custom wiring for multi-tenancy and updating the models on the fly. We quickly hit some limitations which led us to realize existing semantic layers just weren't built for the purpose: they're still a part of the BI world where you want an efficient backend for an essentially static set of human-curated dashboards, whereas agents need to iterate their way to the answer, learning in the process. That's when we built the first version of SLayer, which is now open-source.Using either SLayer MCP or CLI, agents (and humans) can:- Explore models, run queries, connect to multiple databases- Edit columns/measures or create new ones- Create custom models from SQL or from a query on other models- Learn from interactions: save and retrieve natural-language memories linked to models, columns or queries, to form a knowledge baseAgents evolve the semantic layer, reuse the results of past interactions, and make fewer mistakes going forward.A few more features:- Auto-creation of models from introspecting your DB schema for a warm start- Embeddability — doesn't need a server running- Python client for doing data analysis with dataframes- Schema drift detection and handling- Expressive DSL with compact, natural representations for arbitrarily deep multistage queries, custom aggregations, time shifts, combining metrics from multiple models, and other features that are tricky to get right in raw SQLOn the roadmap: access controls, caching, and more.Repo: https://github.com/MotleyAI/slayerDocs: https://motley-slayer.readthedocs.io/en/latest/
HN · launched May 11, 2026 · 12 upvotes (top 36%) · 0 views
Niche: mcp server developer tools · 108 launches, 12 in the last 7 days ▲ +50% · Explore this niche →
Category and tags
- Horizontal
- Analytics & BI
- Developer
- AI-native
- Commercial product
Visit website ↗ Source listing ↗
More like this: all 108 launches in mcp server developer tools →
Could you build this?
Yes A semantic layer abstraction over an existing database that exposes schema definitions, business metrics, and MCP endpoints for agents to query and update can be built directly with standard SQL and agentic tool libraries.
Discussion
3 comments analyzed.
Competitors mentioned: Traditional semantic layers, Text-to-SQL query tools
Feature requests: dbt SL facade for dashboard driving, Integration with favorite databases
Competitors
Other products that read as similar to this one : 388 launches clear the similarity bar, closest 8 shown.
Attention rank: #158 of 389 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 194 days after the earliest competitor.
- 0Sql · hn · 2026-10-06 · 7 upvotes · similarity 0.58
- Strata · hn · 2026-09-30 · 24 upvotes · similarity 0.55
- RooQL · hn · 2026-10-13 · 6 upvotes · similarity 0.53
- BetterDB, MIT Valkey-native context layer for AI agents · hn · 2026-06-26 · 5 upvotes · similarity 0.51
- DeepSQL · hn · 2026-07-20 · 52 upvotes · similarity 0.51
- I built a database for AI agents · hn · 2026-04-07 · 12 upvotes · similarity 0.49
- Risk Analysis Database of Every MCP Server · hn · 2026-02-05 · 22 upvotes · similarity 0.49
- JevSDSQL · github · 2026-09-23 · 23 upvotes · similarity 0.48
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.