Medusa ChatGPT Plugin
In this guide, you'll learn how to connect ChatGPT to the Medusa MCP server and use it to ask questions about your Medusa stores.
What is the Medusa ChatGPT Plugin?#
The ChatGPT plugin connects ChatGPT to the Medusa MCP server, so you can ask ChatGPT about your stores' orders, products, customers, and other commerce data. The plugin:
- Can retrieve store data, but can't create, update, or delete it yet. Write access is coming soon.
- Uses the Medusa MCP server's static mode, so ChatGPT can only call a fixed set of tools that retrieve common commerce data, such as orders, products, and customers.
To change store data or access all of your store's API routes, including custom ones, add the Medusa MCP server as a custom plugin instead, and give it read and write access to your environments.
Prerequisites#
Add the Medusa Plugin to ChatGPT#
To add the ChatGPT plugin:
- Open the Medusa plugin in ChatGPT, or click Plugins in ChatGPT's sidebar, search for
Medusa, and select the plugin. - Click Install Plugin.
- In the browser window that opens, log in to your Medusa account.
- On the consent page, select the environments that ChatGPT can access and whether it can change data in each, then click Approve.
Add Medusa MCP as a Custom Plugin in ChatGPT#
To use all of the Medusa MCP server's tools in ChatGPT, not only the static tools, add it as a custom plugin. This requires ChatGPT's developer mode:
- In ChatGPT, go to Settings > Security and login, then turn on Developer mode.
- Click Plugins in the sidebar, then click the plus button.
- Enter a name, such as
Medusa, and an optional description. - Under Connection, enter the URL
https://cloud.medusajs.com/mcpand choose OAuth authentication. - Create the plugin, then connect it and log in to your Medusa account.
- On the consent page, select the environments that ChatGPT can access and whether it can change data in each, then click Approve.
Refer to OpenAI's documentation for more details on developer mode and custom plugins.
Use Medusa in ChatGPT#
Select the plugin from the tools menu in the message input, or mention it in your message, then ask ChatGPT about your stores. For example:
- "Which Medusa stores do I have connected?"
- "Show me the 5 most recent orders in my store, with each order's total and status."
- "How many orders are waiting to be fulfilled?"
- "How much stock is left for the SKU
SHIRT-S-BLACK?"
The ChatGPT plugin can call the static mode tools. As a custom plugin, ChatGPT can call all available tools.
Remove Medusa from ChatGPT#
To remove the Medusa plugin from ChatGPT:
- In ChatGPT, click Plugins in the sidebar.
- Select the Medusa plugin and click Disconnect.
To change which stores ChatGPT can access or their access levels, change the connector's environments from your organization's MCP and Connectors settings, or disconnect and reconnect the plugin, then select the environments on the consent page.
Troubleshooting#
Refer to the Medusa MCP troubleshooting section for common errors and how to fix them.