WrenAI
Open-source text-to-SQL AI agent that understands your data semantics and generates accurate queries.
MCPCLI
About WrenAI
Open-source text-to-SQL AI agent that understands your data semantics and generates accurate queries. Explore how WrenAI integrates with the agentic data stack ecosystem and supports autonomous data operations.
Key Features
- GenBI platform: natural language queries producing accurate SQL (Text-to-SQL) and charts (Text-to-Chart)
- Semantic modeling layer using MDL to encode schema, metrics, joins, and business logic
- Support for 12+ databases: BigQuery, DuckDB, PostgreSQL, MySQL, Snowflake, Databricks, Trino
- AI-generated summaries, charts, and reports for decision-ready business intelligence
- Embeddable API for generating queries and charts inside your own applications
- Multiple LLM provider support: OpenAI, Anthropic, Google Vertex AI, and local LLMs via Ollama
- MCP integration for connecting to external tools
- Docker-based deployment with a user-friendly launcher for easy local installation
Agent Integration
MCP Server
Canner/wren-engineCLI — wren-launcher
$ Download platform binary from GitHub releases, run ./wren-launcherExternal Links
WrenAI GitHub
Core GenBI platform: text-to-SQL, text-to-chart, semantic modeling (6k+ stars)
Wren Engine MCP Server
Dedicated MCP server providing semantic layer for AI agents and MCP clients
API Reference
Official REST API docs for text-to-SQL and chart generation endpoints
OSS Documentation
Quickstart guide for self-hosted WrenAI including MCP integration
Wren Engine API Documentation
Semantic engine API reference for direct engine integration