Products API MCP Server

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

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

目次

特徴

製品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 ライセンスに基づいてライセンスされています。

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

DummyJSON API から製品データを取得し、ID、タイトル、カテゴリ、ブランド、価格、評価などのさまざまなパラメータによるフィルタリングをサポートする MCP サーバー。

  1. 目次
    1. 特徴
      1. 製品APIツール
    2. インストールと使用方法
      1. 前提条件
    3. カーソルの設定
      1. Windows (WSL なし) または Linux の場合:
      2. WSL ユーザーの場合:
    4. ライセンス

      Related MCP Servers

      • A
        security
        F
        license
        A
        quality
        A lightweight, stateless MCP server utilizing Puppeteer for web searches, returning structured JSON results, easily integratable with other MCP-enabled systems.
        Last updated -
        1
        1,261
        JavaScript
      • A
        security
        A
        license
        A
        quality
        An API server that implements the Model Completion Protocol (MCP) for Cryo blockchain data extraction, allowing users to query Ethereum blockchain data through any MCP-compatible client.
        Last updated -
        5
        86
        Python
        MIT License
        • Linux
        • Apple
      • -
        security
        A
        license
        -
        quality
        An MCP server that enables fetching web content using the Node.js undici library, supporting various HTTP methods, content formats, and request configurations.
        Last updated -
        66
        8
        TypeScript
        MIT License
        • Apple
        • Linux
      • A
        security
        F
        license
        A
        quality
        An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
        Last updated -
        39
        25
        • Apple

      View all related MCP servers

      ID: 8bezdst020