MCP ExplorerExplorer

Thumbnail Mcp

@matyo91on 10 months ago
0 MIT
FreeCommunity
AI Systems

Overview

What is Thumbnail Mcp

The Thumbnail MCP Tool is a tool designed for generating thumbnail images through the MCP (Model-Configuration-Protocol) protocol by utilizing the Replicate API.

Use cases

Common use cases include creating profile pictures, visual content for social media, and custom images for presentations. It is particularly useful in applications where dynamic thumbnail generation is needed based on user input.

How to use

To use the tool, first set up your environment with a Replicate API key. You can test the tool in different ways: using a mock test script for structure validation, calling the real API for actual thumbnail generation, or via a Symfony command for realistic testing. The tool can be registered and executed within the MCP framework by passing a string parameter containing the name for the thumbnail prompt.

Key features

Key features include the ability to generate images based on user-defined parameters, easy integration with the Replicate API, and versatile testing methods to ensure functionality. It is designed for seamless use within the MCP toolbox.

Where to use

This tool can be used in various applications that require image generation, such as web applications, content creation tools, or any platform that integrates with the MCP protocol for image processing tasks.

Content

Thumbnail MCP Tool

A Replicate-based tool for generating thumbnail images via the MCP protocol.

Setup

  1. Make sure you have a Replicate API key
  2. Set the environment variable REPLICATE_API_KEY with your key
  3. Install dependencies:
    composer install
    

Testing the Tool

Method 1: Using the Mock Test

This method uses a mocked platform to test the tool structure without making real API calls:

php test_thumbnail.php

Method 2: Using the Real API

This method makes actual API calls to Replicate:

REPLICATE_API_KEY=your_api_key php test_real.php

Method 3: Using the Symfony Command

This is the most realistic test as it uses the Symfony DI container:

# Make sure you have the API key in .env.local
bin/console app:test-thumbnail "Your Name"

Tool Usage in MCP

The tool is registered via the AsTool attribute and will be available in the MCP toolbox with the name mcp_thumbnail. It takes a single string parameter name that will be used in the prompt.

Example usage:

{
  "name": "John Doe"
}

The tool will return a string with the URL of the generated thumbnail image.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers