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

@popstas/cscart-mcp-server

v1.0.4

Published

MCP server for CS-Cart API integration

Readme

CS-Cart MCP Server

This MCP server provides integration with the CS-Cart API, allowing Model Context Protocol (MCP) clients to access product and order data from your CS-Cart store.

Features

  • cscart_get_product Fetch product by ID with full details
  • cscart_search_products Search products by name or product code
  • cscart_get_products List all products
  • cscart_get_features Get product features and variants
  • cscart_get_order Fetch order details by order ID

Uses CS-Cart REST API v2.0 (API docs)

Configuration

Environment Variables

Set these environment variables to configure the CS-Cart integration:

  • CSCART_SHOP_URL – Base URL of your CS-Cart store (e.g., https://shop.example.com)
  • CSCART_EMAIL – CS-Cart admin email (e.g., [email protected])
  • CSCART_API_KEY – API key from CS-Cart admin panel
  • CSCART_CACHE_TIME – Cache duration in seconds (e.g., 3600 for 1 hour)
  • CSCART_ADMIN_URL – URL to access CS-Cart admin panel (e.g., https://shop.example.com/admin.php)
  • CSCART_PRODUCT_LINK_TEMPLATE – Template for generating product links (e.g., https://example.com/products/{id})
  • CSCART_TELEGRAM_FIELD – Field ID for Telegram integration in CS-Cart (e.g., 2)

Logging

Logs are written to data/mcp.log in the server directory. The log directory will be created automatically if it doesn't exist.

Debug

npx @modelcontextprotocol/inspector node ./dist/index.js

Example MCP Config (NPX)

{
  "mcpServers": {
    "cscart": {
      "command": "npx",
      "args": [
        "-y",
        "@popstas/cscart-mcp-server"
      ],
      "env": {
        "CSCART_SHOP_URL": "https://shop.example.com",
        "CSCART_EMAIL": "[email protected]",
        "CSCART_API_KEY": "1234567890",
        "CSCART_CACHE_TIME": "3600",
        "CSCART_ADMIN_URL": "https://shop.example.com/admin.php",
        "CSCART_PRODUCT_LINK_TEMPLATE": "https://example.com/products/{id}",
        "CSCART_TELEGRAM_FIELD": "52"
      }
    }
  }
}

Usage

Run the server with the required environment variables set. Example (with npx):

CSCART_SHOP_URL=https://shop.example.com \
[email protected] \
CSCART_API_KEY=1234567890 \
CSCART_CACHE_TIME=3600 \
CSCART_ADMIN_URL=https://shop.example.com/admin.php \
CSCART_PRODUCT_LINK_TEMPLATE="https://example.com/products/{id}" \
CSCART_TELEGRAM_FIELD=52 \
npx @popstas/cscart-mcp-server

Available Tools

cscart_get_product

Fetch a CS-Cart product by its ID. Returns product with all features and variants.

Parameters:

  • productId (number, required): ID of the product to retrieve

cscart_search_products

Search CS-Cart products by name and/or product code.

Parameters:

  • name (string, optional): Product name to search for (partial match, case-insensitive)
  • code (string, optional): Product code to search for (partial match, case-insensitive)

cscart_get_products

Fetch all CS-Cart products.

Parameters: None

cscart_get_features

Fetch all CS-Cart product features and their variants.

Parameters: None

cscart_get_order

Fetch a CS-Cart order by its ID.

Parameters:

  • orderId (number, required): ID of the order to retrieve

References


MIT License