Skip to main content
Glama
MCP Server Replicate

MCP Server Replicate

by gerred

MCP 서버 복제

파이썬 버전특허 코드 스타일 유형 검사기 주름 옷깃 PyPI 버전 대장간 배지

Replicate API를 위한 FastMCP 서버 구현으로, 이미지 생성에 중점을 두고 AI 모델 추론에 대한 리소스 기반 액세스를 제공합니다.

특징

  • 🖼️ 리소스 기반 이미지 생성 및 관리

  • 🔄 구독을 통한 실시간 업데이트

  • 📝 템플릿 기반 매개변수 구성

  • 🔍 포괄적인 모델 발견 및 선택

  • 🪝 외부 알림을 위한 Webhook 통합

  • 🎨 최적의 결과를 위한 품질 및 스타일 사전 설정

  • 📊 진행 상황 추적 및 상태 모니터링

  • 🔒 안전한 API 키 관리

Related MCP server: MCP Server for Replicate

사용 가능한 프롬프트

서버는 다양한 작업에 대해 여러 가지 특수 프롬프트를 제공합니다.

텍스트를 이미지로(기본)

가장 철저하게 검증되고 강력한 프롬프트입니다. 텍스트 설명에서 고품질 이미지를 생성하도록 최적화되었으며, 다음과 같은 기능을 제공합니다.

  • 세부적인 스타일 제어

  • 품질 사전 설정(초안, 균형, 품질, 극한)

  • 크기 및 종횡비 사용자 정의

  • 진행 상황 추적 및 실시간 업데이트

예:

지엑스피1

다른 프롬프트

  • 이미지 대 이미지 : 기존 이미지 변환(곧 제공)

  • 모델 선택 : 작업에 적합한 모델을 선택하는 데 도움을 받으세요

  • 매개변수 도움말 : 모델 매개변수 이해 및 구성

필수 조건

설치

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 MCP Server Replicate를 자동으로 설치하려면:

npx -y @smithery/cli install @gerred/mcp-server-replicate --client claude

수동 설치

PyPI에서 직접 패키지를 설치할 수 있습니다.

# Using UV (recommended)
uv pip install mcp-server-replicate

# Using UVX for isolated environments
uvx install mcp-server-replicate

# Using pip
pip install mcp-server-replicate

Claude 데스크톱 통합

  1. 최신 버전의 Claude Desktop이 설치되어 있는지 확인하세요.

  2. Claude Desktop 구성을 엽니다.

# macOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.json

# Windows
code %APPDATA%\Claude\claude_desktop_config.json
  1. 다음 옵션 중 하나를 사용하여 서버 구성을 추가합니다.

{
  "globalShortcut": "Shift+Alt+A",
  "mcpServers": {
    "replicate": {
      "command": "uv",
      "args": ["tool", "run", "mcp-server-replicate"],
      "env": {
        "REPLICATE_API_TOKEN": "APITOKEN"
      },
      "cwd": "$PATH_TO_REPO"
    }
  }
}
  1. 복제 API 키를 설정하세요:

# Option 1: Set in your environment
export REPLICATE_API_TOKEN=your_api_key_here

# Option 2: Create a .env file in your home directory
echo "REPLICATE_API_TOKEN=your_api_key_here" > ~/.env
  1. Claude Desktop을 완전히 다시 시작하세요

이제 Claude Desktop에 🔨 아이콘이 표시되어 MCP 서버를 사용할 수 있음을 나타냅니다.

용법

Claude Desktop에 연결하면 다음을 수행할 수 있습니다.

  1. 자연어로 이미지 생성:

    Create a photorealistic mountain landscape at sunset with snow-capped peaks
  2. 세대를 탐색해보세요:

    Show me my recent image generations
  3. 세대별로 검색:

    Find my landscape generations
  4. 생성 상태 확인:

    What's the status of my last generation?

문제 해결

Claude Desktop에 서버가 표시되지 않습니다.

  1. Claude Desktop 로그를 확인하세요.

tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
  1. 구성을 확인하세요:

  • claude_desktop_config.json 의 경로가 절대 경로인지 확인하세요.

  • UV가 설치되었고 PATH에 있는지 확인하세요.

  • Replicate API 키가 설정되었는지 확인하세요.

  1. Claude Desktop을 다시 시작해 보세요.

더 자세한 문제 해결 방법은 디버깅 가이드를 참조하세요.

선적 서류 비치

개발

  1. 저장소를 복제합니다.

git clone https://github.com/gerred/mcp-server-replicate.git
cd mcp-server-replicate
  1. 개발 종속성 설치:

uv pip install --system ".[dev]"
  1. 사전 커밋 후크 설치:

pre-commit install
  1. 테스트 실행:

pytest

기여하다

기여를 환영합니다! 자세한 내용은 기여 가이드를 참조하세요.

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.

Available Tools

18 tools
cancel_predictionC

Cancel a running prediction.

Inputs: prediction_id (required).

create_predictionC

Create a new prediction using a specific model version on Replicate.

    Args:
        input: Model input parameters including version or model details
        confirmed: Whether the user has explicitly confirmed the generation

    Returns:
        Prediction details if confirmed, or a confirmation request if not
    

Inputs: input (required), confirmed.

generate_imageC

Generate an image using the specified parameters.

Inputs: prompt (required), style, quality, width, +3 more.

get_collection_detailsC

Get detailed information about a specific collection.

Inputs: collection_slug (required).

get_model_detailsC

Get detailed information about a specific model.

    Args:
        model_id: Model identifier in format owner/name

    Returns:
        Detailed model information
    

Inputs: model_id (required).

get_predictionC

Get the status and results of a prediction.

Inputs: prediction_id (required), wait, max_retries.

get_webhook_secretA

Get the signing secret for verifying webhook requests.

Inputs: no named parameters.

list_collectionsB

List available model collections on Replicate.

Inputs: no named parameters.

list_hardwareB

List available hardware options for running models.

Inputs: no named parameters.

list_modelsC

List available models on Replicate with optional filtering by owner.

Inputs: owner.

list_templatesB

List all available templates with their schemas.

Inputs: no named parameters.

open_image_with_systemB

Open an image URL with the system's default application.

    Args:
        image_url: URL of the image to open

    Returns:
        Dict containing status of the operation
    

Inputs: image_url (required).

search_available_modelsB

Search for available models matching the query.

    Args:
        query: Search query describing the desired model
        style: Optional style to filter by

    Returns:
        List of matching models with scores
    

Inputs: query (required), style.

search_modelsC

Search for models using semantic search.

Inputs: query (required).

subscribe_to_generationD

Handle resource subscription requests.

Inputs: request (required).

unsubscribe_from_generationC

Handle resource unsubscribe requests.

Inputs: request (required).

validate_template_parametersC

Validate parameters against a template schema.

Inputs: input (required).

verify_webhookA

Verify that a webhook request came from Replicate using HMAC-SHA256.

    Args:
        payload: The webhook payload to verify
        signature: The signature from the X-Replicate-Signature header
        secret: The webhook signing secret from get_webhook_secret

    Returns:
        True if signature is valid, False otherwise
    

Inputs: payload (required), signature (required), secret (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 18 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between 'search_available_models' and 'search_models' that could cause confusion, as both involve searching for models. The descriptions help differentiate them slightly, but the boundaries are not entirely clear.

    Naming Consistency5/5

    Tool names follow a consistent snake_case pattern with clear verb_noun structures throughout, such as 'create_prediction', 'get_model_details', and 'list_collections'. There are no deviations in naming conventions, making the set predictable and readable.

    Tool Count3/5

    With 18 tools, the count is borderline high for a server focused on Replicate's AI model platform. While it covers various aspects like predictions, models, and webhooks, it may feel slightly heavy and could benefit from consolidation to reduce complexity.

    Completeness4/5

    The tool set provides good coverage for the Replicate domain, including prediction lifecycle (create, get, cancel), model discovery (list, get, search), and webhook management. Minor gaps exist, such as missing tools for updating or deleting predictions or models, but agents can work around these with the available operations.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers