Docs MCP Server
The Docs MCP server is a remote Model Context Protocol (MCP) server that brings the Medusa documentation into your IDE or AI tool, such as Cursor. Medusa hosts it as a public Streamable HTTP server at https://docs.medusajs.com/mcp, which you can add to any AI agent that supports MCP server connections.
Connect to the Docs MCP Server#
Claude Code#
Run the following command in your terminal:
Codex#
Run the following command in your terminal:
Cursor#
Add the following to your file or Cursor settings, as explained in the Cursor documentation:
VS Code#
Click here to add the Docs MCP server to VSCode.
To connect manually, add the following to your workspace's .vscode/mcp.json file:
{
"servers": {
"medusa": {
"type": "http",
"url": "https://docs.medusajs.com/mcp"
}
}
}
OpenCode#
Add the following to your OpenCode config file (for example, ~/.config/opencode/opencode.json):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"medusa": {
"type": "remote",
"url": "https://docs.medusajs.com/mcp"
}
}
}
How to Use the Docs MCP Server#
After you connect the Docs MCP server, ask your AI assistant questions or have it build Medusa customizations. It fetches the relevant documentation to give you accurate answers, code snippets, and explanations.
For example, you can ask:
- "Create a Product Review module for Medusa. Refer to the Medusa documentation for information."
- "How to update Medusa to the latest version?"
- "Explain the Medusa workflow system."
- "Integrate Medusa with X provider. Refer to the Medusa documentation for information."
Docs MCP Server Tools#
The Docs MCP server also provides tools that return curated, step-by-step implementation guides for common tasks, so your AI agent uses the right Medusa APIs and patterns instead of inferring them. The following guides cover each tool, who it's useful for, and how to use it: