Skip to main content
ClaudeWave
ES, Spanish
Canner / MCP Servers

WrenAI

GenBI (Generative BI) for AI agents, an open-source, governed text-to-SQL through an open context layer that turns natural-language questions into trusted dashboards, charts, and SQL across 20+ data sources, such as BigQuery, Snowflake, PostgreSQL, ClickHouse, Amazon Redshift, Databricks and more.

  • 18k estrellas
  • 2.1k forks
  • 257 issues abiertos
  • Lenguaje: Python
  • Licencia: NOASSERTION
  • actualizado

Instalación

local · npx
Claude Code CLI
claude mcp add wrenai -- npx -y skills
  1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
  2. Replace any <placeholder> values with your API keys or paths.
  3. Restart Claude. The MCP server and its tools appear automatically.

Nota editorial

WrenAI is an open-source context layer, distributed as a Python package (`pip install wrenai`), that gives AI agents the business semantics, SQL generation capabilities, and governed memory needed to query structured data correctly across more than 20 sources including PostgreSQL, BigQuery, and DuckDB. Rather than forcing each agent to rediscover schema meaning independently, WrenAI provides a shared interface through a CLI and a small discovery stub installed via `npx skills add Canner/WrenAI`, which auto-detects Claude Code alongside Cursor, Cline, and other clients. Once the stub is in place, agents fetch workflow guides through `wren skills get` commands and generate validated SQL through `wren ask`, with dry-plan validation and structured error hints built in as correctness primitives. The project targets agent builders, data teams, and developers building text-to-SQL tools, agentic analytics, or business intelligence dashboards who need a version-controlled, Git-friendly context store that sits on top of existing warehouses and transformation pipelines rather than replacing them.

Items instalables

7 items en este repositorio

Connect SaaS data (HubSpot, Stripe, Salesforce, GitHub, Slack, etc.) to Wren Engine for SQL analysis. Guides the user through the full flow: install dlt, pick a SaaS source, set up credentials, run the data pipeline into DuckDB, then auto-generate a Wren semantic project from the loaded data. Use this skill whenever the user mentions: connecting SaaS data, importing data from an API, dlt pipelines, loading HubSpot/Stripe/Salesforce/GitHub/Slack data, querying SaaS data with SQL, or setting up a new data source from a REST API. Also trigger when the user already has a dlt-produced DuckDB file and wants to create a Wren project from it.

Instalar

Augment a Wren project with business context that DB schema cannot carry — enum value meanings, units (USD vs cents, ms vs sec), NULL semantics, magic sentinels (-1 = unknown), soft-delete default filters, business synonyms, time-grain / TZ conventions, cross-system identifiers, currency rules, canonical-table preferences, AND named aggregation metrics (ARR, churn, DAU, WAU, NRR) proposed as cubes. Runs in one of two modes selected at session start: `grill` (one question at a time, user-driven) or `auto-pilot` (agent infers and applies, escalates only on conflicts and high-blast-radius additions like new cubes / views / relationships). Reads everything under <project>/raw/ (PDFs, glossaries, handbooks, code, data dictionaries) and optionally samples low-cardinality columns from the live DB (grill mode), compares against the current MDL / cubes / knowledge (rules + NL→SQL pairs), then fills gaps via the ten-category gap catalog and the cube proposal flow. Confirmed findings are written back to the right sink. Use when: user says 'enrich context', 'augment my project', 'grill me on this project', 'auto-fill my context', 'agent doesn't understand our docs / enum values / units / null meanings', 'business context is missing', 'what does status=A mean', 'is this amount in USD or cents', 'we keep getting wrong aggregations', 'add cubes for ARR / DAU / churn', 'we have a handbook / glossary / data dictionary the agent should know'; or after generating an MDL and noticing the agent lacks business semantics.

Instalar
genbiSkill

Turn a Wren project's context layer into a shareable, browser-side GenBI web app and deploy it to the user's Vercel or Cloudflare account. Orchestrates the full flow: `wren genbi build` returns a project-hydrated build instruction, the agent authors the app from scratch into apps/<name>/, then register → verify → deploy produce a shareable URL. Use this skill whenever the user wants to: build a dashboard from their Wren project, make a shareable analytics app, deploy their context layer as a web app, host a GenBI app on Vercel or Cloudflare Pages, or asks for a 'genbi app'.

Instalar

Generate a Wren MDL project by exploring a database with available tools (SQLAlchemy, database drivers, MCP connectors, or raw SQL). Guides agents through schema discovery, type normalization, and MDL YAML generation using the wren CLI. Use when: user wants to create or set up a new MDL, onboard a new data source, or scaffold a project from an existing database.

Instalar

Onboard a user to Wren Engine end-to-end. Walks through environment checks, project scaffolding, connection configuration via .env, and first query. Use when: user wants to install Wren Engine, set up a new data source connection, or bootstrap a new project from scratch. Triggers: '/wren-onboarding', 'install wren', 'set up wren engine', 'wren onboarding', 'connect new database to wren'.

Instalar
usageSkill

Wren Engine CLI workflow guide for AI agents. Answer data questions end-to-end using the wren CLI: gather schema context, recall past queries, write SQL through the MDL semantic layer, execute, and learn from confirmed results. Use when: user asks a data question, requests a report or analysis, asks about metrics, revenue, customers, orders, trends, or any business data; user says 'how many', 'show me', 'what is the', 'top N', 'compare', 'trend', 'growth', 'breakdown'; user wants to explore, analyze, filter, aggregate, or summarize data from a database; agent needs to query data, connect a data source, handle errors, or manage MDL changes via the wren CLI.

Instalar
wrenSkill

Wren CLI for AI agents — a semantic SQL layer over 22+ databases (Postgres, MySQL, BigQuery, Snowflake, Spark, …). The actual workflow guides live inside the `wren` CLI itself; this is just a discovery stub. Use whenever the user asks a data question (how many, show me, top N, compare, trend, breakdown, metric, revenue, customers, orders), wants to install / set up Wren Engine, connect a new database, connect SaaS data via dlt (HubSpot, Stripe, Salesforce, GitHub, Slack), generate or regenerate an MDL project from a database schema, enrich a project with business context (enum meanings, units, cubes like ARR / DAU / churn), or turn a project's context layer into a shareable GenBI web app / dashboard and deploy it to Vercel or Cloudflare. Triggers: 'install wren', 'set up wren engine', 'connect database to wren', 'connect SaaS to wren', 'load hubspot / stripe / salesforce data', 'generate mdl', 'scaffold wren project', 'enrich wren context', 'augment my project', 'add cubes', 'build a dashboard', 'make a shareable analytics app', 'deploy my context layer as a web app', 'genbi app', 'wren onboarding', 'wren usage', 'wren generate mdl', 'wren dlt connector', 'wren enrich context', 'wren genbi'.

Instalar
README

Resumen de MCP Servers

README completo en GitHub

Open-source GenBI for AI agents

Your agents generate governed SQL, deploy dashboards, and keep business definitions in Git, across 22+ data sources.

Get started in 3 commands ↓  ·  Read the docs →  ·  Join Discord →

License: Apache 2.0 PyPI GitHub Release Discord Follow on X Stars


What WrenAI is

WrenAI is the open-source generative BI (GenBI) engine. It gives the AI agents you already use (Claude Code, Cursor, MCP clients, LangChain) a governed semantic layer and an AI context layer, so they turn business questions into correct SQL, ship the answer as a shareable dashboard, and stay inside your guardrails.

Schemas tell an agent where data lives. Wren tells it what the data means: approved metric definitions, enums, units, joins, worked examples, and the tribal knowledge buried in docs and chat threads. All of it lives as reviewable YAML and Markdown in a repo you own.

Quickstart

Three commands, then your agent does the rest. Works with Claude Code, Cursor, Cline, Codex, and 50+ other agents.

1. Install the CLI

pip install wrenai

Add connector extras as you need them, for example pip install "wrenai[postgres,memory]".

2. Teach your agent about Wren

npx skills add Canner/WrenAI

This installs a ~50-line discovery stub. Your agent fetches full workflow guides from the CLI on demand, so instructions always match the installed version.

3. Open your agent in a project folder and ask

"Use Wren to set up my Postgres database."

The agent checks your environment, creates a connection profile, scaffolds the project, and runs a first query.

No database handy? Say "Use Wren with the bundled jaffle_shop sample" and run the same flow against a real sample warehouse.

Slow pip install from mainland China?

pip install wrenai -i https://pypi.tuna.tsinghua.edu.cn/simple

If HuggingFace model downloads time out, run export HF_ENDPOINT=https://hf-mirror.com before using the CLI.

Then keep going

Once you're connected, these three prompts cover the whole GenBI loop:

BeatAsk your agentWhat happens
Know"Enrich my Wren project with the business context in raw/."Runs wren skills get enrich-context. Writes definitions, examples, and memory as reviewable files.
Generate"Who are our top 10 customers by sales this quarter?"Recalls MDL context and past queries, writes governed SQL, executes via wren query.
Deploy"Turn that into a dashboard I can filter and share, deployed to Vercel."Runs wren skills get genbi. Builds a browser-side app and returns a live URL on your Vercel or Cloudflare Pages account.

Follow the full quickstart →  ·  Build & deploy a GenBI app →

Why agent builders pick WrenAI

  • Answers and dashboards, not just SQL. Generate a governed answer, deploy it as a dashboard, share the URL. One agent-driven loop, end to end.

  • Correct instead of confidently wrong. Schema-aware retrieval, MDL planning, dry-plan validation, row limits, value profiling, and structured errors with hints keep agent SQL inside guardrails.

  • Business meaning lives in Git. Metric definitions, enums, approved joins, and proven examples are versioned files. Review them in a pull request. Diff them. Take them with you.

  • Works through the agents you already run. Claude Code, Cursor, Cline, Codex, MCP clients, LangChain. Wren is a layer, not another chat UI to adopt.

  • Sits on your existing stack. Warehouse, transformation pipelines, existing semantic models. 22+ sources on one Apache DataFusion engine.

  • Open by default. Core engine, SDK, and skills under Apache-2.0. It runs without us.

How Wren compares

A raw LLM agentA traditional BI toolA bare semantic layerWrenAI
Writes SQL for you✅ (often wrong)❌❌✅ governed
Knows your business definitions❌partial, in-tool✅ (schema only)✅ + non-schema knowledge
Generates & deploys dashboards❌✅ (manual, in-tool)❌✅ agent-driven
Works through your agents (Claude Code, Cursor, MCP…)✅❌❌✅
Open, reviewable, Git-friendly context❌❌partial✅
Governed execution across 22+ sources❌per-connector✅ (definitions only)✅

Wren is for you if…

  • You want AI agents to produce trustworthy BI, answers and dashboards, not just plausible SQL.

  • Your business logic (definitions, enums, units, approved joins) lives outside the database and your agents keep getting it wrong.

  • You want a context layer that is open, reviewable, and version-controlled, usable by every agent and every person, not gated behind one vendor's UI.

Skip Wren if you only need a one-off chart from a single CSV, or you're happy letting an agent guess at SQL with no governance.

Take it to your team with git push

Everything Wren writes on your laptop is plain YAML and Markdown in a repo you own. Git Sync turns that same repo into a governed, team-wide GenBI deployment in Wren Cloud or a self-hosted installation, including air-gapped. Nothing to export, nothing to re-model.

  • No new CLI to learn. Bind a directory once with wren cloud create or wren cloud link. After that, git push and git pull are the entire interface.

  • Metrics reviewed like code. A change to net_revenue shows up as a readable diff in a pull request on GitHub, GitLab, Bitbucket, or your own remote. Run CI on it. Promote staging to production like application code.

  • You keep the repo, always. Clone it, back it up, feed it to another tool, or leave with it, any time.

  • No reusable credential on disk. Every push authenticates with a fresh token that expires in 600 seconds. The durable key stays in ~/.wren/cloud.yml (mode 0600) and is never handed to git.

$ git push
To cloud.getwren.ai/acme/wren-analytics.git
   9f2c1a4..b71e0d3  main -> main
✔ deploy queued · model queryable in Wren Cloud

See how Git Sync works →  ·  CLI reference: wren cloud

Open core: what's OSS, what's commercial

The engine in this repo (MDL semantic layer, governed text-to-SQL, MCP server, CLI, 22+ connectors) is Apache-2.0, free forever, and self-hostable. The following are commercial, delivered as Wren AI Cloud or self-hosted Enterprise Plus:

  • Row- and column-level security and access control with users and groups

  • GenBI UI, dashboards, embedded and APIs

  • Scenario AI harnesses: GenBI Apps, Agentic Mode, AI-assisted context preparation

  • Advanced security and audit, support and SLAs, plus cloud, VPC, and air-gapped deployment

Same engine underneath. Your MDL stays in your Git either way. Read the published boundary →

Under the hood

Semantic layer (MDL)

Wren is a governed semantic layer, expressed in the Modeling Definition Language (MDL): a Git-friendly definition of what your data means, not just where it lives. Every answer and dashboard is planned against it.

  • Models, columns, relationships, views: the shape of your data, decoupled from any one warehouse.

  • Cubes and metrics: approved, reusable definitions so "revenue" means the same thing everywhere.

  • Context beyond the schema: enums, units, approved joins, and definitions in instructions.md and queries.yml.

What's included

  • Engine: Apache DataFusion based. BigQuery, Snowflake, PostgreSQL, ClickHouse, Amazon Redshift, Databricks, DuckDB, and more. Connect a database →

  • GenBI dashboards: agent-built, browser-side apps powered by wren-core-wasm, deployable to Vercel or Cloudflare Pages

  • Knowledge and memory: version-controlled instructions.md and queries.yml, plus a local LanceDB memory index with hybrid retrieval

Topics
ai-agentsbigquerybusiness-intelligencechartsclickhousecontext-engineeringdashboarddatabricksduckdbgenbigenerative-aillmmcppostgresqlragsemantic-layersnowflakesqltext-to-sqltext2sql
Preguntas frecuentes

Lo que la gente pregunta sobre WrenAI

¿Qué es Canner/WrenAI?

Canner/WrenAI es mcp servers para el ecosistema de Claude AI. GenBI (Generative BI) for AI agents, an open-source, governed text-to-SQL through an open context layer that turns natural-language questions into trusted dashboards, charts, and SQL across 20+ data sources, such as BigQuery, Snowflake, PostgreSQL, ClickHouse, Amazon Redshift, Databricks and more. Tiene 18k estrellas en GitHub y su última actualización registrada es del 2026-10-23.

¿Cómo se instala WrenAI?

Puedes instalar WrenAI clonando el repositorio (https://github.com/Canner/WrenAI) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar Canner/WrenAI?

Nuestro agente de seguridad ha analizado Canner/WrenAI y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene Canner/WrenAI?

Canner/WrenAI es mantenido por Canner. La última actividad registrada en GitHub es del 2026-10-23, con 257 issues abiertos.

¿Hay alternativas a WrenAI?

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Deploy en 1 click

Despliega WrenAI en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Muestra su Trust Score en tu README

La insignia muestra el Trust Score y el veredicto actuales de este repositorio y enlaza a esta página. Sigue los datos del catálogo: nadie puede comprar ni editar la puntuación que enseña.

ClaudeWave Trust Score for Canner/WrenAI
Markdown (README)
[![ClaudeWave Trust Score for Canner/WrenAI](https://claudewave.com/api/badge/canner-wrenai)](https://claudewave.com/en/repo/canner-wrenai)
HTML
<a href="https://claudewave.com/en/repo/canner-wrenai"><img src="https://claudewave.com/api/badge/canner-wrenai" alt="ClaudeWave Trust Score for Canner/WrenAI" width="320" height="64"></a>

Qué significa la insignia y cómo se calcula la puntuación

Alternativas