1 import { Note, Prerequisites } from "docs-ui"
2
3 export const metadata = {
4 title: `Medusa ChatGPT App`,
5 }
6
7 # {metadata.title}
8
9 In this guide, you'll learn how to connect ChatGPT to the Medusa MCP server and use it to ask questions about your Cloud stores.
10
11 <Note type="soon">
12
13 The ChatGPT app is under review by OpenAI and isn't available in ChatGPT yet. In the meantime, you can [add the Medusa MCP server as a custom plugin](#add-medusa-mcp-as-a-custom-plugin-in-chatgpt).
14
15 </Note>
16
17 ## What is the Medusa ChatGPT App?
18
19 The ChatGPT app connects ChatGPT to the [Medusa MCP server](../page.mdx), so you can ask ChatGPT questions about your stores' orders, products, customers, and other commerce data.
20
21 The ChatGPT app is read-only. ChatGPT can retrieve data from your stores, but it can't create, update, or delete data.
22
23 <Note>
24
25 The Medusa MCP server is in beta access. If an environment's latest build is from before October 8, 2026, rebuild it before you connect it to ChatGPT, as explained in the [Medusa MCP](../page.mdx#step-1-rebuild-environments) guide.
26
27 </Note>
28
29 ---
30
31 ## Prerequisites
32
33 <Prerequisites
34 items={[
35 {
36 text: "Cloud account",
37 link: "/sign-up",
38 },
39 {
40 text: "ChatGPT account",
41 link: "https://chatgpt.com",
42 },
43 ]}
44 />
45
46 ---
47
48 {/* TODO: uncomment once OpenAI approves the ChatGPT app
49
50 ## Add the Medusa App to ChatGPT
51
52 To add the ChatGPT app:
53
54 1. In ChatGPT, click **Plugins** in the sidebar.
55 2. Search for `Medusa` and select the ChatGPT app.
56 3. Click **Connect**.
57 4. In the browser window that opens, log in to your Cloud account.
58 5. On the consent page, select the environments that ChatGPT can access, then click **Approve**.
59
60 Refer to the [Medusa MCP](../page.mdx#approve-the-connection) guide for more details on the consent page.
61
62 <Note>
63
64 On ChatGPT Business and Enterprise plans, a workspace admin may need to enable the ChatGPT app before members can connect to it.
65
66 </Note>
67
68 */}
69
70 ## Add Medusa MCP as a Custom Plugin in ChatGPT
71
72 Until the ChatGPT app is available, you can add the Medusa MCP server to ChatGPT as a custom plugin. This requires enabling developer mode in ChatGPT.
73
74 To add the Medusa MCP server as a custom plugin:
75
76 1. In ChatGPT, go to **Settings** > **Security and login**, then turn on **Developer mode**.
77 2. Click **Plugins** in the sidebar, then click the plus button.
78 3. Enter a name, such as `Medusa`, and an optional description.
79 4. Under **Connection**, enter the URL `https://cloud.medusajs.com/mcp` and choose OAuth authentication.
80 5. Create the plugin, then connect it and log in to your Cloud account.
81 6. On the consent page, select the environments that ChatGPT can access, then click **Approve**.
82
83 Refer to [OpenAI's documentation](https://developers.openai.com/plugins/deploy/connect-chatgpt) for more details on developer mode and custom plugins.
84
85 <Note>
86
87 Developer mode's availability depends on your ChatGPT plan and workspace settings. On Business and Enterprise plans, a workspace admin may need to allow developer mode.
88
89 </Note>
90
91 ---
92
93 ## Use Medusa in ChatGPT
94
95 Once you add the plugin, select it from the tools menu in the message input, or mention it in your message. Then, ask ChatGPT questions about your stores. For example:
96
97 - "Which Medusa stores do I have connected?"
98 - "Show me the 5 most recent orders in my store, with each order's total and status."
99 - "How many orders are waiting to be fulfilled?"
100 - "What products are available to shoppers in my B2B sales channel?"
101
102 Refer to the [Medusa MCP](../page.mdx#available-tools) guide for the list of tools that ChatGPT can call.
103
104 ---
105
106 ## Remove Medusa from ChatGPT
107
108 To remove the Medusa plugin from ChatGPT:
109
110 1. In ChatGPT, click **Plugins** in the sidebar.
111 2. Select the Medusa plugin and click **Disconnect**.
112
113 To change the stores that ChatGPT can access, disconnect the plugin and connect it again, then select the environments on the consent page.
114
115 ---
116
117 ## Troubleshooting
118
119 Refer to the [Medusa MCP troubleshooting](../page.mdx#troubleshooting) section for common errors and how to fix them.