Skip to main content
Glama
Arham Jewellers MCP Server

Arham Jewellers MCP Server

Arham Jewellers MCP Server

MCP (Model Context Protocol) server for the Arham Jewellers customer AI assistant. Exposes tools for searching products, browsing categories, checking gold rates, tracking orders, placing orders, and getting store info.

Prerequisites

  • Node.js 18+ (uses built-in fetch)

  • A running Arham Jewellers backend API

Related MCP server: Shiprocket MCP

Setup

# Install dependencies
npm install

# Configure environment
cp .env.example .env
# Edit .env with your API_BASE_URL

# Build
npm run build

Configuration

Create a .env file — only the API base URL is needed (token is passed per request):

API_BASE_URL=https://arham-jewellers-backend.onrender.com

Running

npm start

Get a Token

# Admin login (phone must include +91 prefix)
LOGIN_PHONE=+919879879870 LOGIN_PASSWORD=Admin@1234 npm run get-token

# User login
LOGIN_PHONE=+919879879870 LOGIN_PASSWORD=yourpass npm run get-token

Available Tools (11)

All tools require a token parameter (JWT) passed by the MCP client with each request.

Tool

Description

search_products

Search products by name, karat, or category

get_product_details

Get full details of a specific product

get_product_by_barcode

Find a product by barcode number

get_categories

Get the hierarchical category tree (Level 1=Karat, 2=Collection, 3=Style)

get_category_products

List products in a Level 3 category

get_current_gold_rate

Get today's gold rate per gram

get_gold_rate_history

Get historical gold rates

get_user_orders

Get order history

get_order_details

Get details of a specific order

place_order

Place an order (requires user confirmation)

get_store_info

Get store info (About, Contact, Terms, etc.)

Important Notes

  • Category levels: Only Level 3 (Style) category IDs return products. Use get_categories(level=3) to find valid IDs.

  • Order placement: place_order uses a two-step confirm flow — the AI must ask the user before setting confirm=true.

  • Gold rate: The /api/v1/gold-rate/current endpoint may not be available on all backend versions.

Connect to MCP Clients

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "arham-jewellers": {
      "command": "node",
      "args": [
        "--env-file=/absolute/path/to/arham-mcp-server/.env",
        "/absolute/path/to/arham-mcp-server/build/index.js"
      ]
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "arham-jewellers": {
      "command": "node",
      "args": [
        "--env-file=/absolute/path/to/arham-mcp-server/.env",
        "/absolute/path/to/arham-mcp-server/build/index.js"
      ]
    }
  }
}

Project Structure

src/
├── index.ts          # Entry point (MCP server + STDIO transport)
├── config.ts         # Environment variable loader
├── api-client.ts     # HTTP client for backend API (token passed per call)
├── types.ts          # TypeScript interfaces
└── tools/
    ├── index.ts      # Tool registry
    ├── products.ts   # search_products, get_product_details, get_product_by_barcode
    ├── categories.ts # get_categories, get_category_products
    ├── gold-rate.ts  # get_current_gold_rate, get_gold_rate_history
    ├── orders.ts     # get_user_orders, get_order_details, place_order
    └── store.ts      # get_store_info

Available Tools

10 tools
get_categoriesA

Browse categories step by step. Call with no params to see Karat options (Level 1). Pass a parent_id to see its children (Level 2=Collection or Level 3=Style). Only Level 3 IDs work with get_category_products. Ask the user what they are looking for (karat, collection, style) before drilling down.

Inputs: parent_id, level.

get_category_productsA

Get products in a category. IMPORTANT: category_id MUST be a Level 3 (Style) ID. Use get_categories with parent_id to drill down to Level 3 first. Level 1 and Level 2 IDs will return 0 products.

Inputs: category_id (required), page, limit.

get_current_gold_rateA

Get the current gold rate per gram. Returns the latest rate set by the store.

Inputs: no named parameters.

get_gold_rate_historyB

Get historical gold rates. Returns a list of past rate entries.

Inputs: page, limit.

get_order_detailsA

Get details of a specific order from the user's order history. Returns full order info including all items.

Inputs: order_id (required).

get_product_by_barcodeA

Find a product by its barcode number. Useful when a customer scans or reads a barcode.

Inputs: barcode (required).

get_product_detailsA

Get detailed information about a specific product by its ID. Use this after search_products to get full details of a product.

Inputs: product_id (required).

get_store_infoC

Get store information like contact details, about us, terms, refund policy, etc.

Inputs: page.

get_user_ordersB

Get order history for a user. Returns a paginated list of orders with their items and status.

Inputs: page, limit.

place_orderA

Place an order for one or more products. IMPORTANT: Ask the user to confirm before placing an order. This action will create a real order in the system.

Inputs: items (required), confirm (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: browsing categories, retrieving products in a category, gold rates, orders, barcode lookup, product details, store info, user orders, and placing orders. No overlap between tools.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with underscore separators (e.g., get_categories, place_order). No mixing of conventions.

    Tool Count5/5

    10 tools are well-scoped for a jewelry store MCP server, covering browsing, ordering, and store information without being overly numerous or too few.

    Completeness3/5

    The tool set covers core operations (browse, get details, order), but notably lacks a search tool despite get_product_details referencing search_products. Missing update/delete for orders and customer support tools, leaving moderate gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables users to manage Angel One trading accounts through natural language, including portfolio viewing, order placement and modification, market data retrieval, and advanced trading features.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables users to interact with an e-commerce shopping assistant using natural language to search products, check prices and ratings, compare items, and get personalized recommendations.
      -