MCPcopy
hub / github.com/Canner/WrenAI

github.com/Canner/WrenAI @0.29.1 sqlite

repository ↗ · DeepWiki ↗ · release 0.29.1 ↗
3,823 symbols 10,436 edges 638 files 162 documented · 4%
README

  <img src="https://github.com/Canner/WrenAI/raw/0.29.1/misc/wrenai_logo_white.png" width="300px">



<h1 align="center">Wren AI - Open-Source GenBI Agent</h1>

Docs

Canner%2FWrenAI | Trendshift

⚡ GenBI (Generative BI) queries any database in natural language, generates accurate SQL (Text-to-SQL), charts (Text-to-Chart), and AI-powered business intelligence in seconds. ️

1

😍 Demos

https://github.com/user-attachments/assets/f9c1cb34-5a95-4580-8890-ec9644da4160

Watch GenBI Demo

🤖 Features

What you get Why it matters
Talk to Your Data Ask in any language → precise SQL & answers Slash the SQL learning curve
GenBI Insights AI-written summaries, charts & reports Decision-ready context in one click
Semantic Layer MDL models encode schema, metrics, joins Keeps LLM outputs accurate & governed
Embed via API Generate queries & charts inside your apps (API Docs) Build custom agents, SaaS features, chatbots (Streamlit Live Demo)

🤩 Learn more about GenBI

🚀 Getting Started

Using Wren AI is super simple, you can set it up within 3 minutes, and start to interact with your data!

2

🏗️ Architecture

wrenai-architecture

👉 Learn more about our Design

🔌 Data Sources

If your data source is not listed here, vote for it in our GitHub discussion thread. It will be a valuable input for us to decide on the next supported data sources. - Athena (Trino) - Redshift - BigQuery - DuckDB - PostgreSQL - MySQL - Microsoft SQL Server - ClickHouse - Oracle - Trino - Snowflake

🤖 LLM Models

Wren AI supports integration with various Large Language Models (LLMs), including but not limited to: - OpenAI Models - Azure OpenAI Models - DeepSeek Models - Google AI Studio – Gemini Models - Vertex AI Models (Gemini + Anthropic) - Bedrock Models - Anthropic API Models - Groq Models - Ollama Models - Databricks Models

Check configuration examples here!

[!CAUTION] The performance of Wren AI depends significantly on the capabilities of the LLM you choose. We strongly recommend using the most powerful model available for optimal results. Using less capable models may lead to reduced performance, slower response times, or inaccurate outputs.

📚 Documentation

Visit Wren AI documentation to view the full documentation.

📪 Keep Posted?

Subscribe our blog and Follow our LinkedIn

🛠️ Contribution

  1. Star ⭐ the repo to show support (it really helps).
  2. Open an issue for bugs, ideas, or discussions.
  3. Read Contribution Guidelines for setup & PR guidelines.

⭐️ Community

  • Join 1.3k+ developers in our Discord for real-time help and roadmap previews.
  • If there are any issues, please visit GitHub Issues.
  • Explore our public roadmap to stay updated on upcoming features and improvements!

Please note that our Code of Conduct applies to all Wren AI community channels. Users are highly encouraged to read and adhere to them to avoid repercussions.

🎉 Our Contributors

⬆️ Back to Top

Extension points exported contracts — how you extend this code

Validator (Interface)
Validator interface for data sources [6 implementers]
wren-launcher/commands/dbt/data_source_test.go
DataSource (Interface)
(no doc) [6 implementers]
wren-ui/src/apollo/server/types/dataSource.ts
Relationship (Interface)
(no doc)
wren-ui/e2e/commonTests/modeling.ts
DataSource (Interface)
DataSource is a common interface for all data source types [6 implementers]
wren-launcher/commands/dbt/data_source.go
IThreadResponseRepository (Interface)
(no doc) [3 implementers]
wren-ui/src/apollo/server/repositories/threadResponseRepository.ts
IWrenEngineAdaptor (Interface)
(no doc) [2 implementers]
wren-ui/src/apollo/server/adaptors/wrenEngineAdaptor.ts
IWrenAIAdaptor (Interface)
(no doc) [2 implementers]
wren-ui/src/apollo/server/adaptors/wrenAIAdaptor.ts
IAdjustmentBackgroundTaskTracker (Interface)
(no doc) [2 implementers]
wren-ui/src/apollo/server/backgrounds/adjustmentBackgroundTracker.ts

Core symbols most depended-on inside this repo

clean_display_name
called by 100
wren-ai-service/src/pipelines/indexing/__init__.py
run
called by 77
wren-ai-service/src/core/pipeline.py
sendEvent
called by 61
wren-ui/src/apollo/server/telemetry/telemetry.ts
updateOne
called by 54
wren-ui/src/apollo/server/repositories/baseRepository.ts
findOneBy
called by 53
wren-ui/src/apollo/server/repositories/baseRepository.ts
split
called by 50
wren-ai-service/eval/pipelines.py
getStringFromMap
called by 48
wren-launcher/commands/dbt/converter.go
delete
called by 47
wren-ui/src/apollo/server/adaptors/wrenAIAdaptor.ts

Shape

Function 1,530
Method 1,163
Class 473
Interface 375
Route 174
Enum 86
Struct 21
TypeAlias 1

Languages

TypeScript59%
Python36%
Go4%

Modules by API surface

wren-ui/src/utils/errorHandler.tsx113 symbols
wren-ui/src/apollo/server/services/askingService.ts89 symbols
wren-ui/src/apollo/server/adaptors/wrenAIAdaptor.ts76 symbols
wren-ai-service/eval/metrics/spider/__init__.py54 symbols
wren-ui/src/apollo/server/adaptors/ibisAdaptor.ts43 symbols
wren-ui/src/apollo/server/resolvers/modelResolver.ts41 symbols
wren-ui/src/apollo/server/services/modelService.ts39 symbols
wren-ui/src/apollo/client/graphql/home.generated.ts39 symbols
wren-ui/src/apollo/server/resolvers/askingResolver.ts38 symbols
wren-ui/src/apollo/server/models/adaptor.ts38 symbols
wren-launcher/commands/dbt/data_source.go38 symbols
wren-ui/src/apollo/server/adaptors/wrenEngineAdaptor.ts36 symbols

Dependencies from manifests, versioned

atomicgo.dev/cursorv0.2.0 · 1×
github.com/AlecAivazis/survey/v2v2.3.7 · 1×
github.com/Azure/go-ansitermv0.0.0-2025010203350 · 1×
github.com/DefangLabs/secret-detectorv0.0.0-2025040316561 · 1×
github.com/Masterminds/semver/v3v3.4.0 · 1×
github.com/Microsoft/go-winiov0.6.2 · 1×
github.com/acarl005/stripansiv0.0.0-2018011610285 · 1×
github.com/apparentlymart/go-textseg/v15v15.0.0 · 1×
github.com/aws/aws-sdk-go-v2v1.30.3 · 1×
github.com/aws/aws-sdk-go-v2/configv1.27.27 · 1×

Datastores touched

admin_uiDatabase · 1 repos
dbnameDatabase · 1 repos

For agents

$ claude mcp add WrenAI \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact