mcp-pinterest

by terryso
Verified

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.

Integrations

  • Allows searching for images on Pinterest by keywords and retrieving detailed information about Pinterest images

Pinterest MCP サーバー

Pinterest の画像検索と情報取得用の Model Context Protocol (MCP) サーバー。

特徴

  • Pinterestでキーワードで画像を検索する
  • Pinterestの画像に関する詳細情報を取得する
  • MCP による Cursor IDE とのシームレスな統合
  • ヘッドレスブラウザモードのサポート
  • 検索結果の制限制御

前提条件

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の mcp-pinterest を自動的にインストールするには:

npx -y @smithery/cli install mcp-pinterest --client claude

マニュアル

  1. このリポジトリをクローンします:
    git clone https://github.com/terryso/mcp-pinterest.git pinterest-mcp-server cd pinterest-mcp-server
  2. 依存関係をインストールします:
    npm install

使用法

コマンドモード(推奨)

サーバーを構築します。

npm run build

これで、このサーバーを Cursor の MCP サーバーとして使用できるようになりました。

カーソルでMCPサーバーとして設定する

  1. オープンカーソルIDE
  2. 設定(⚙️)>拡張機能>MCPに移動します
  3. 「サーバーを追加」をクリックします
  4. 次の詳細を入力してください。
    • 名前: Pinterest MCP
    • タイプ: コマンド
    • コマンド: node
    • 引数: ["/path/to/mcp-pinterest/dist/pinterest-mcp-server.js"]

    または、Cursor の MCP 構成ファイル (通常は~/.cursor/mcp.jsonにあります)、以下の内容を追加します。

    "pinterest": { "command": "node", "args": ["/path/to/mcp-pinterest/dist/pinterest-mcp-server.js"] }
  5. 「保存」をクリック

利用可能なMCP機能

サーバーは次の MCP 機能を公開します。

  • pinterest_search : Pinterestでキーワードで画像を検索
    • パラメータ:
      • keyword : 検索語(必須)
      • limit : 返される画像の数(デフォルト: 10)
      • headless : ヘッドレスブラウザモードを使用するかどうか(デフォルト: true)
  • pinterest_get_image_info : Pinterest 画像の詳細情報を取得します
    • パラメータ:
      • image_url : Pinterest画像のURL(必須)

カーソルでの使用例

設定が完了すると、Cursor の AI チャットで Pinterest MCP 機能を直接使用できるようになります。

Search for robot images on Pinterest

AI は MCP サーバーを使用して Pinterest を検索し、結果を表示します。

スクリーンショットの例

三上悠亚の画像20枚を検索し、すべての画像が正常にダウンロードされたことを示すスクリーンショット。

発達

プロジェクト構造

  • pinterest-mcp-server.ts : メインサーバーファイル
  • dist/pinterest-mcp-server.js : 本番環境用に構築された JavaScript ファイル
  • package.json : プロジェクトの構成と依存関係

新機能の追加

新しい MCP 機能を追加するには:

  1. pinterest-mcp-server.ts変更する
  2. MCP SDKを使用して新しい関数を登録する
  3. 関数ロジックを実装する
  4. npm run buildでリビルドする

トラブルシューティング

  • サーバーの起動に失敗した場合は、ポートがすでに使用されていないか確認してください。
  • npm installですべての依存関係が正しくインストールされていることを確認します。
  • TypeScriptがtsconfig.jsonファイルで適切に設定されていることを確認してください
  • ビルドエラーが発生した場合は、 npm install -D typescript @types/nodeを実行してみてください。
  • Pinterest にアクセスするためのネットワーク接続を確認する

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

画像検索と情報検索のための Pinterest モデルコンテキストプロトコル (MCP) サーバー

  1. Features
    1. Prerequisites
      1. Installation
        1. Installing via Smithery
        2. Manual
      2. Usage
        1. Command Mode (Recommended)
      3. Configuring as MCP Server in Cursor
        1. Available MCP Functions
          1. Example Usage in Cursor
            1. Example Screenshot
          2. Development
            1. Project Structure
            2. Adding New Features
          3. Troubleshooting
            1. License
              ID: 9czyga0hyf