Wren AI MCP
Wren AI MCP currently runs in Interactive Mode only. Agentic Mode is not supported. Calls through MCP will use Interactive Mode even if the connected project has Agentic Mode available.
Wren AI is published in Claude's connector directory (claude.ai/customize/connectors/id/wren-ai), so on Claude web/desktop you can connect in one click without pasting the endpoint URL. Wren AI is published in the ChatGPT plugin directory too. See the Claude.ai Integration and ChatGPT Integration guides. Adding the endpoint as a custom connector still works, and is what you want for self-hosted or non-default endpoints.
Overview
Wren AI MCP connects your AI agent (Claude, ChatGPT) to Wren AI so you can query your data, generate SQL, build charts, and get business insights in natural language — right from the tools you already use.
It's a single, organization-level endpoint secured with OAuth:
- Endpoint:
https://cloud.getwren.ai/api/mcp - Auth: OAuth (your Wren AI account) — no API key and no local proxy
- Plan: Enterprise Cloud
How It Works
- An organization admin enables MCP for the organization and chooses which projects are exposed.
- You add the one endpoint URL to your AI client and log in with OAuth.
- Your agent calls
list_projectsto discover the projects you can reach, then passes aprojectIdto the other tools. - Row/column-level security is applied per user, server-side — you only ever see what your Wren AI account is allowed to see.

Before You Begin
-
Wren AI Enterprise Cloud plan and above. MCP is an Enterprise Cloud feature.
-
An org admin enables MCP and exposes projects. In Wren AI, go to Settings → Organization → MCP, turn on Enable MCP for this organization, and toggle Exposed for each project you want reachable. Optionally set New projects default to Exposed. The endpoint URL shown here —
https://cloud.getwren.ai/api/mcp— is shared by everyone in the org.
noteOnly exposed projects are reachable, and each user still only sees projects they're a member of. Turning a project off here (or disabling the org switch) immediately cuts its MCP access.
-
Claude connector permission (Team/Enterprise workspaces). On Claude's Team/Enterprise plan, an Owner must enable the Wren AI connector for the organization under Organization settings → Connectors before members can connect it. For a self-hosted endpoint added as a custom connector, your workspace admin must also enable the Add custom connectors permission for your account.
Claude (Web & Desktop)
Wren AI is published in Claude's connector directory, so you don't have to add the endpoint by hand. Auth is handled via OAuth — no API key needed.
Step 1 — Connect the Wren AI connector:
Go to claude.ai/customize/connectors/id/wren-ai and click Connect to Claude, then log in with your Wren AI account. Full walkthrough with screenshots: Claude.ai Integration.

You can also find it from inside Claude: Customize → Connectors → Add → Browse connectors, then
search WrenAI (or Wren).
The listing points at Wren AI Cloud (https://cloud.getwren.ai/api/mcp). For a self-hosted Wren AI,
add it as a custom connector instead: Customize → Connectors → Add custom connector, name it
WrenAI, enter your endpoint URL, and Connect — then log in and authorize the app.
Step 2 — Upload the analyst skill (optional):
- Open Customize → Skills → Create a skill → Upload a skill.
- Upload
web/claude/wrenai-analyst/SKILL.md.
Generate the skill files locally:
git clone https://github.com/canner/wrenai-mcp.git && cd wrenai-mcp && ./setup --host web
ChatGPT
Wren AI is published in the ChatGPT plugin directory, so you don't have to add the endpoint by hand. Auth is handled via OAuth.
Step 1 - Install the Wren AI plugin:
Open the Wren AI plugin listing in ChatGPT and click Install plugin, then log in with your Wren AI account. Full walkthrough with screenshots: ChatGPT Integration.

You can also find it from inside ChatGPT: open Plugins and search wren.
The listing points at Wren AI Cloud (https://cloud.getwren.ai/api/mcp). For a self-hosted Wren AI,
add it as a custom connector instead: Plugins → Connectors → New Plugin, keep Connection:
Server URL, enter your endpoint, set Authentication: OAuth, tick "I understand and want to
continue", then Create.
Step 2 - Add custom instructions (optional):
- Go to Settings → Personalization → Custom Instructions.
- Paste the content from
web/chatgpt/wrenai-analyst-skill.md.
Generate the skill content locally:
git clone https://github.com/canner/wrenai-mcp.git && cd wrenai-mcp && ./setup --host chatgpt
Claude Code (CLI)
claude mcp add --transport http wrenai https://cloud.getwren.ai/api/mcp
Then run /mcp inside Claude Code, select wrenai, and complete the OAuth login in your browser. No API key or proxy needed.
For the analyst skill and more, see the WrenAI-mcp repository.
Using It
Once connected, just ask in natural language. Behind the scenes the agent calls list_projects to choose a project, reads schema with get_project_metadata, then answers with ask / generate_sql / run_sql and renders a generate_chart visualization.
Example prompts:
- "List my Wren AI projects."
- "In the Sales project, what were the top 5 products by revenue last quarter? Chart it."
Each connection is bound to a single organization. list_projects shows only the exposed projects in that organization, even if your account belongs to other MCP-enabled organizations.
Tools
| Tool | Purpose | Takes projectId |
|---|---|---|
list_projects | Projects you can query | — |
get_project_metadata | Table schema for a project | ✓ |
ask | End-to-end natural-language Q&A | ✓ |
generate_sql | Question → SQL | ✓ |
run_sql | Execute SQL | ✓ |
generate_chart | Vega chart spec | ✓ |
generate_summary | Summarize results | ✓ |
respond_clarification | Answer a follow-up question from Wren AI | ✓ |
Data Security
Row/column-level security (RLS/CLS) is enforced per user: policies are resolved server-side from the Wren AI account that authenticated the MCP connection (the user who logged in via OAuth), and the connected client cannot override them. Each person sees only the rows and columns their own account is permitted to see.
Because data access is resolved from the connecting account, anyone using a shared Wren AI account inherits exactly that account's data permissions — so RLS/CLS won't distinguish between the individual people behind it. Have each person connect with their own Wren AI account so security policies apply to the correct identity.
Migrating from the per-project URL
The legacy per-project URL — https://cloud.getwren.ai/api/mcp/{token} — and its Settings → Project → MCP connection page are deprecated and will be removed soon. To migrate:
- Have an admin enable MCP and expose the project in Settings → Organization → MCP (see Before You Begin).
- In your AI client, replace the old per-project URL with
https://cloud.getwren.ai/api/mcpand reconnect. - Your agent now selects the project via
list_projectsinstead of the URL.