Skip to main content
Glama

Products API MCP Server

by Demontie

My First MCP Project

This project demonstrates the use of MCP (Model Context Protocol) server that retrieves data from the DummyJSON API. Built using Cursor IDE with the default agent.

Table of Contents

Features

Products API Tools

  • get_products

    • Description: Get a list of products with optional filtering and pagination

    • Parameters:

      • id (string, optional): Filter products by ID

      • q (string, optional): Filter products by title

      • category (string, optional): Filter products by category

      • brand (string, optional): Filter products by brand

      • price (number, optional): Filter products by price

      • rating (number, optional): Filter products by rating

      • skip (number, optional, default: 0): Number of products to skip

      • limit (number, optional, default: 10): Maximum number of products to return

    • Returns: A list of products matching the specified criteria

    • Data Source: DummyJSON API (https://dummyjson.com/products)

Installation and Usage

Prerequisites

  • Node.js (version 23 or higher)

  • Docker and Docker Compose

  • WSL2 (if using Windows)

Cursor Configuration

To configure this MCP server with Cursor:

  1. Open Cursor

  2. Press:

    • Windows/Linux: Ctrl + Shift + P

    • macOS: Cmd + Shift + P

  3. Type "Configure MCP Server" and select it

  4. Add the appropriate configuration based on your setup:

For Windows (without WSL) or Linux:

{ "mcpServers": { "postgres": { "command": "node", "args": ["ABSOLUTE_PATH_TO_PROJECT/src/index.ts"] } } }

For WSL Users:

{ "mcpServers": { "postgres": { "command": "wsl.exe", "args": [ "-e", "ABSOLUTE_PATH_TO_NODE/.nvm/versions/node/v23.11.0/bin/node", "ABSOLUTE_PATH_TO_PROJECT/src/index.ts" ] } } }

To find your Node.js path, run:

which node

License

This project is licensed under the MIT License.

Deploy Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Related MCP Servers

  • -
    security
    A
    license
    -
    quality
    This MCP server connects clients with Shopify store data, enabling retrieval of product and customer information via exposed tools.
    Last updated -
    5
    MIT License
  • A
    security
    A
    license
    A
    quality
    MCP server that integrates with Shopify API, allowing Claude Desktop users to retrieve and manipulate product information from Shopify stores.
    Last updated -
    5
    2
    MIT License
    • Apple
  • -
    security
    F
    license
    -
    quality
    An MCP Server that provides access to the Jumpseller e-commerce platform API, allowing users to interact with Jumpseller's functionality through natural language commands.
    Last updated -
    • Linux
    • Apple
  • -
    security
    F
    license
    -
    quality
    An MCP server that enables large language models to directly access and analyze Amazon product information, including product details, variants, and reviews.
    Last updated -

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Demontie/my-first-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server