Skip to main content
Glama

MCP Image Placeholder Server

by husniadil

MCP イメージプレースホルダーサーバー

これは、さまざまなプロバイダーからのプレースホルダー イメージを生成するためのツールを提供するモデル コンテキスト プロトコル (MCP) サーバーです。

特徴

  • サポートされているプロバイダーからプレースホルダー画像を生成します
  • 2 つの画像プロバイダーをサポートします:
    • placehold : シンプルなプレースホルダー画像を提供します
    • lorem-picsum : 実際の画像をプレースホルダー画像として提供します
  • 入力パラメータを検証する
  • すぐに使用できる画像の URL を返します

要件

  • Python 3.9以上
  • uvパッケージマネージャー

インストール

  1. このリポジトリをクローンする
  2. MCPサーバーの構成を設定する

使用法

サーバーは 1 つのツールを公開します:

image_placeholder

指定されたパラメータに基づいてプレースホルダー画像 URL を生成します。

パラメータ:

  • provider : 使用する画像プロバイダー ( placeholdまたはlorem-picsum )
  • width : 画像の幅(1-10000)
  • height : 画像の高さ(1-10000)

戻り値:

  • 生成された画像のURL文字列

使用例:

# Generate a 300x200 placeholder image url = image_placeholder(provider="placehold", width=300, height=200) # Generate a 500px square lorem-picsum image url = image_placeholder(provider="lorem-picsum", width=500)

構成

このサーバーをClaude for Desktopに接続するには:

  1. claude_desktop_config.jsonに以下を追加します。
    { "mcpServers": { "image-placeholder": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/PROJECT", "run", "main.py" ] } } }
  2. デスクトップ版のClaudeを再起動

このサーバーを Cursor に接続するには:

  1. カーソル設定を開く
  2. Featuresセクションへ
  3. MCP Serversセクションまでスクロールします
  4. Add new MCP serverボタンをクリックします。
  5. 次の情報を入力してください。
    • 名前: image-placeholder
    • タイプ: command
    • サーバー URL: uv --directory /ABSOLUTE/PATH/TO/PROJECT run main.py
  6. Add ↵ボタンをクリックします

トラブルシューティング

ツールが検出されない場合は、 uvコマンドの絶対パスを使用します。例:

/ABSOLUTE/PATH/TO/uv --directory /ABSOLUTE/PATH/TO/PROJECT run main.py

使用例と出力(カーソル)

プロンプト:

Create a new directory named "example" and a file named output.html. Then create a single modern looking page using tailwindcss: https://unpkg.com/@tailwindcss/browser@4 Show a nice header, content, and footer, showing a photo gallery. Save this into output.html

カーソルエージェントのスクリーンショット

出力:出力例 (カーソル)

ライセンス

MITライセンス

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

このサーバーは、さまざまなプロバイダーからのプレースホルダー画像 URL を生成し、入力の検証と、Claude や Cursor などのデスクトップ アプリケーションとの統合をサポートします。

  1. 特徴
    1. 要件
      1. インストール
        1. 使用法
          1. image_placeholder
        2. 構成
          1. このサーバーをClaude for Desktopに接続するには:
          2. このサーバーを Cursor に接続するには:
        3. トラブルシューティング
          1. 使用例と出力(カーソル)
            1. ライセンス

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                Provides HTML file preview and analysis capabilities. This server enables capturing full-page screenshots of local HTML files and analyzing their structure.
                Last updated -
                2
                8
                JavaScript
                MIT License
              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol server that provides image generation capabilities using the Ideogram API, allowing users to create images from text prompts with customizable parameters.
                Last updated -
                1
                97
                3
                TypeScript
              • A
                security
                A
                license
                A
                quality
                A lightweight server that enables seamless integration with Unsplash's image library, allowing developers to search for high-quality photos with various filters directly from the Cursor editor.
                Last updated -
                1
                112
                Python
                MIT License
              • -
                security
                A
                license
                -
                quality
                A server that integrates with Claude Desktop to enable real-time web research capabilities, allowing users to search Google, extract webpage content, and capture screenshots directly from conversations.
                Last updated -
                854
                MIT License
                • Apple

              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/husniadil/mcp-image-placeholder'

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