Skip to main content
Glama
Demontie

Products API MCP Server

by Demontie

私の最初のMCPプロジェクト

このプロジェクトは、 DummyJSON APIからデータを取得するMCP(Model Context Protocol)サーバーの使用方法を示します。Cursor IDEとデフォルトのエージェントを使用して構築されています。

目次

Related MCP server: openfoodfacts-mcp-server

特徴

製品APIツール

  • get_products

    • 説明: オプションのフィルタリングとページ区切りを使用して製品リストを取得します

    • パラメータ:

      • id (文字列、オプション): IDで製品をフィルタリングする

      • q (文字列、オプション): タイトルで製品をフィルタリングする

      • category (文字列、オプション): カテゴリ別に製品をフィルタリング

      • brand (文字列、オプション): ブランドで製品をフィルタリングする

      • price (数値、オプション): 価格で商品をフィルタリング

      • rating (数値、オプション): 評価で製品をフィルタリング

      • skip (数値、オプション、デフォルト: 0): スキップする商品の数

      • limit (数値、オプション、デフォルト:10):返される製品の最大数

    • 戻り値: 指定された条件に一致する製品のリスト

    • データソース: DummyJSON API ( https://dummyjson.com/products )

インストールと使用方法

前提条件

  • Node.js (バージョン 23 以上)

  • Docker と Docker Compose

  • WSL2 (Windows を使用している場合)

カーソルの設定

この MCP サーバーを Cursor で構成するには:

  1. オープンカーソル

  2. プレス:

    • Windows/Linux: Ctrl + Shift + P

    • macOS: Cmd + Shift + P

  3. 「MCPサーバーの構成」と入力して選択します

  4. 設定に応じて適切な構成を追加します。

Windows (WSL なし) または Linux の場合:

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

WSL ユーザーの場合:

{
  "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"
      ]
    }
  }
}

Node.js パスを見つけるには、次のコマンドを実行します。

which node

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています。

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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