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

n8n-nodes-mcp-stockly-api

v1.0.3

Published

n8n node for Django REST API integration with MCP support for inventory management

Readme

n8n-nodes-mcp-stockly-api

n8n node for Django REST API integration with MCP support for inventory management.

Features

  • 🔌 Direct API integration - No server needed, works directly in n8n
  • 🧰 Reusable tool library for creating, listing, updating, and deleting products
  • ⚙️ Configurable via environment variables with first-class support for .env files
  • 🚀 n8n-ready npm package that can be used directly in workflows

Installation

npm install n8n-nodes-mcp-stockly-api

Configuration

Create a .env file or provide the following environment variables:

API_BASE_URL=https://api.encryptosystem.com/api
AUTH_BEARER_TOKEN=your-admin-bearer-token
API_TIMEOUT=30000

Usage

Method 1: Direct Import in n8n

// في n8n Code node
import { executeStocklyOperation } from 'n8n-nodes-mcp-stockly-api';

// إنشاء منتج
const result = await executeStocklyOperation('createProduct', {
  name: 'Test Product',
  price: 100,
  quantity: 50,
  description: 'Test product description'
});

// عرض المنتجات
const products = await executeStocklyOperation('listProducts', {
  page: 1,
  page_size: 10,
  search: 'test'
});

// تحديث المخزون
const stockUpdate = await executeStocklyOperation('updateStock', {
  productId: 123,
  quantity: 75
});

// حذف منتج
const deleteResult = await executeStocklyOperation('deleteProduct', {
  productId: 123
});

return result;

Method 2: Using Tools Directly

// في n8n Code node
import { stocklyApiTools } from 'n8n-nodes-mcp-stockly-api';

// استخدام الأدوات مباشرة
const result = await stocklyApiTools.createProduct({
  name: 'New Product',
  price: 50,
  quantity: 25
});

return result;

Method 3: Traditional MCP Server (Optional)

If you still want to use the MCP server approach:

# Start the MCP server
API_BASE_URL=https://api.encryptosystem.com/api AUTH_BEARER_TOKEN=demo-token PORT=8080 npx n8n-nodes-mcp-stockly-api start

# List available tools
API_BASE_URL=https://api.encryptosystem.com/api AUTH_BEARER_TOKEN=demo-token PORT=8080 npx n8n-nodes-mcp-stockly-api list-tools

Available Operations

  • createProduct - Create a new product in the inventory system
  • listProducts - List all products with optional filtering and pagination
  • updateStock - Update the stock quantity for a product
  • deleteProduct - Delete a product by identifier

Parameters

createProduct

  • name (string, required) - Product name
  • price (number, required) - Product price
  • quantity (number, required) - Initial quantity
  • sku (string, optional) - Product SKU
  • description (string, optional) - Product description
  • cost_price (number, optional) - Cost price
  • wholesale_price (number, optional) - Wholesale price
  • retail_price (number, optional) - Retail price
  • category_id (number, optional) - Category ID
  • category_name (string, optional) - Category name

listProducts

  • page (number, optional) - Page number (default: 1)
  • page_size (number, optional) - Items per page (default: 10)
  • search (string, optional) - Search term
  • category_id (number, optional) - Filter by category

updateStock

  • productId (number, required) - Product ID
  • quantity (number, required) - New quantity

deleteProduct

  • productId (number, required) - Product ID

Response Format

All operations return:

{
  success: true/false,
  data: {}, // API response data
  message: "Operation completed successfully",
  error: {} // Error details if success is false
}

Development

# Install dependencies
npm install

# Build the package
npm run build

# Run in development mode
npm run dev

Publishing

# Login to npm
npm login

# Bump version
npm version patch

# Publish
npm publish --access public

License

MIT © Encryptosystem