npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vendure/mcp-server

v1.0.4-alpha

Published

The official Vendure MCP server

Readme

Features

  • Project Integration: Operates directly within your Vendure project, providing context-aware tooling.
  • CLI Integration: Direct access to Vendure CLI add and migrate commands.
  • Project Analysis: Analyze project structure, list plugins, entities, and services.
  • Dual Transport Support: Connect via standard I/O (STDIO) for local clients like Cursor or via HTTP for networked clients.
  • Environment Check: Verify Vendure installation and dependencies within the project.
  • Real-time: Works with any local Vendure project without modification.

Dynamic CLI Integration

The server dynamically generates MCP tools from your project's installed Vendure CLI command definitions. This ensures:

  • Single Source of Truth: CLI changes automatically reflect in MCP tools.
  • Future-proof: New CLI commands and options become available automatically.
  • No Hallucinations: The code generated by the tools will always be correct, as it's based on the actual CLI definitions in your project.

Installation and Setup Workflow

[!WARNING] To use the CLI command orchestration capabilities of the MCP. The target project should be running a version of the @vendure/cli package that is > 3.4.0 or later. Currently, this would be in our minor branch. To change the version of your package, open the package.json of your project and change the "@vendure/cli" version to "minor", then delete your package-lock.json file and node_modules folder and run npm install.

The server is designed to be installed and run directly from your Vendure project. This ensures it always has access to the correct dependencies and project context.

Configure Your MCP Client (e.g., Cursor)

Create or update the mcp.json file used by your MCP client. This file is typically located at .cursor/mcp.json inside your project's root folder.

Below are configurations for both STDIO and HTTP connections.

Option 1: STDIO Connection (Recommended for Local Clients)

This is the simplest and most direct way to connect.

{
    "mcpServers": {
        "vendure-local-mcp": {
            "command": "npx",
            "args": ["@vendure/mcp-server@latest", "--projectPath", "/path/to/your/vendure-project"]
        }
    }
}

[!IMPORTANT] You must replace /path/to/your/vendure-project with the absolute path to your Vendure project's root directory.

Option 2: HTTP Connection

If your client does not support STDIO or you need to connect over a network, you can run the server in HTTP mode.

First, start the server from your terminal in your Vendure project's root directory:

npx @vendure/mcp-server@latest --transport http --projectPath .

This will start the server on the default port (8000), you can explicitly define the port by using the --port <0000> flag.

Then, configure your mcp.json to connect to the running server's URL:

{
    "mcpServers": {
        "vendure": {
            "url": "http://localhost:8000/mcp"
        }
    }
}

Option 3: Docker

[!IMPORTANT] You must replace /path/to-your-vendure-project with the absolute path to your Vendure project's root directory.

{
    "mcpServers": {
        "vendure-mcp-docker": {
            "command": "docker",
            "args": [
                "run",
                "--rm",
                "-i",
                "--env",
                "PROJECT_PATH=/workspace",
                "--volume",
                "/absolute/path/to-your-vendure-project:/workspace",
                "vendure/mcp:latest",
                "--projectPath",
                "/workspace"
            ]
        }
    }
}

This will start a Docker container and the server will run through in stdio mode. Refer to the Docker Guide for more information about running with Docker.

Development

If you are contributing to the Vendure MCP server itself, you'll want to run it from the source code.

Build from Source

git clone https://github.com/vendure-ecommerce/mcp.git
cd vendure-mcp-server # Or the correct directory name
npm install
npm run build

Development Mode

To connect an MCP client to your local development server, use the npm run dev script and point it to a test Vendure project. You can run it in either STDIO or HTTP mode.

  • STDIO Mode: npm run dev -- --projectPath /path/to/your/test-vendure-project
  • HTTP Mode: npm run dev:http -- --projectPath /path/to/your/test-vendure-project

Configure your mcp.json as described in the setup section to connect to your development server. The -- is required to pass arguments to the npm script correctly.

Trouble-shooting and issue reporting

If you run into problems while using/running the MCP, we would appreciate any issue with information that would help us reproduce your issue.

[!TIP] you can provide us with MCP Logs created by your MCP-Client. In Cursor, you could find them by looking for Developer: Open Log File... > MCP Logs in your command palette (Shift+Cmd/Ctrl/Super+P) by default.

Links