Feature Request: Semantic Layer Support via MCP

Aperta
#427 4 commenti 1 reazione 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@Chenglong-MS ci sta già lavorando.

Dal 19/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Problem

Data Formulator currently works mainly with the underlying data/schema.

For analytics use cases, it would be useful to connect Data Formulator to an existing semantic layer so the agent can work with already-defined business concepts such as:

  • Dimensions
  • Measures / metrics
  • Relationships
  • Descriptions
  • Filters

For example, instead of Data Formulator having to infer how revenue should be calculated from database tables, the semantic layer could already expose revenue as a governed measure.

Proposal

Add a way for Data Formulator to consume a semantic layer.

One simple approach could be MCP.

A semantic layer MCP server could expose tools such as:

  • list_models
  • get_model
  • list_dimensions
  • list_measures
  • query

Data Formulator could use these tools when generating an analysis.

Example:

User asks:

Show monthly revenue by country for 2026.

Instead of generating SQL directly from the database schema, Data Formulator could discover:

  • Dimension: month
  • Dimension: country
  • Measure: revenue

and execute the query through the semantic layer.

The resulting dataset can then be visualized normally by Data Formulator.

Example Semantic Layer

One example is Boring Semantic Layer:

https://boringdata.github.io/boring-semantic-layer/about

It provides semantic tables with dimensions and measures on top of Ibis.

The goal would not be to specifically support this implementation, but to provide a generic integration mechanism.

For example:

Data Formulator
      |
      | MCP
      v
Semantic Layer
      |
      +-- Models
      +-- Dimensions
      +-- Measures
      +-- Relationships
      |
      +-- Query
            |
            v
         Dataset
            |
            v
     Data Formulator
Lingua principale
Python
Stelle
17.7k
Fork
1.7k
Merge medio
4g 1h
PR unite (30g)
8

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/data-formulator

Tutte le issue di microsoft/data-formulator

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.