MCP and Connectors

In this guide, you'll learn how to view and manage the connectors that AI agents and other applications use to access your organization's environments through the Medusa MCP server.

What is a Connector?#

A connector is the access that you grant an AI agent or another application to your environments when you approve it on Cloud's OAuth consent page. For example, when you connect an AI tool like Claude, ChatGPT, or Cursor to the Medusa MCP server, Cloud creates a connector for that AI tool with the environments and access you selected.

A connector acts on your behalf with your role in each organization. For each environment, the connector has one of the following access levels:

  • Read only: The connector can retrieve the environment's data.
  • Read and write: The connector can also create, update, and delete the environment's commerce data.

From your organization's settings, you can view all of these connectors, change the environments each connector can access and their access levels, and revoke connectors that you no longer need.


View Connectors#

Requires one of the roles:AdminDeveloper

To view your organization's connectors:

  1. If you're in a different organization, switch to the organization whose connectors you want to view.
  2. Make sure you're on the projects overview page of the organization. You can do this by clicking on the organization name at the top left of the dashboard.
  3. Click MCP and Connectors in the sidebar.

The MCP and Connectors page shows a table of all the authorized connectors and the total number of connectors. If there are no connectors, the page shows an empty state instead.

The table has the following columns:

Column

Description

Connector

The connected application's icon and name, along with the resource type or host that it connects to. For example, "Claude" with a "Medusa MCP" subtitle.

Access

The connector's access level and the number of environments it can access. The access level is Read only, Read and write, or, when only some environments have write access, the number of environments with write access, for example, "Write in 1 of 3".

Organizations

The number of organizations that the connector can access.

Status

Shows Active for an active connector, or Expires Soon if the connector expires within 7 days.

Last Used

How long ago the application last used the connector, or Never if it hasn't used it yet.


Manage a Connector#

Requires one of the roles:AdminDeveloper

You can view a connector's details and change the environments that the application can access.

To manage a connector:

  1. Go to the MCP and Connectors page.
  2. Click the connector's row. Alternatively, click the icon at the end of the connector's row and choose Manage access.

This opens a side drawer with the connector's details.

Connector Details#

The Details section of the drawer shows the following information about the connector:

  • Status: Whether the connector is active or expires soon.
  • Connected: The date that you approved the connector.
  • Last Used: How long ago the application last used the connector, or Never.
  • Expires: The date that the connector expires. Connectors that go unused for 30 days are revoked automatically.
  • Client ID: The OAuth client identifier of the application.

Change Environments and Access#

Requires one of the roles:AdminDeveloper

The Organizations and environments section of the drawer lists the environments that you can access, grouped by organization. Each environment has a Read and a Write checkbox, and the section's header shows how many environments are selected and how many of them have write access.

To change the environments that the application can access and their access levels:

  1. In the Organizations and environments section, expand an organization to view its environments.
  2. Check or clear the Read checkbox of an environment to give or remove access to it. Checking Read in an organization's row selects all its environments.
  3. Check the Write checkbox of an environment to let the application change its data, or clear it to make the environment read-only. Checking Write also selects the environment.
  4. Review the changes in the Unsaved changes section, which lists the environments you added or removed and the access levels you changed.
  5. Click Save.
Warning: With write access, the application can create, update, and delete data in the environment as your admin user. Give write access to production environments only to applications that you trust.
Note: A connector must have access to at least one environment. To remove the application's access to all environments, revoke the connector instead.

Revoke a Connector#

Requires one of the roles:AdminDeveloper
Warning: Once you revoke a connector, the application can no longer access the connector's environments. To restore access, you must connect the application again and approve the connection on the consent page.

To revoke a connector:

  1. Go to the MCP and Connectors page.
  2. Click the icon at the end of the connector's row.
  3. Choose Revoke from the dropdown.
  4. Confirm revoking the connector in the prompt. The prompt shows the application's name and the number of environments it can no longer access.
Was this guide helpful?
Docs Assistant
For assistance in your development, use Claude Code Plugins or Docs MCP server in Cursor, VSCode, etc...FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break
⇧↵