MCP cover image
See in Github
2025-04-14

0

Github Watches

0

Github Forks

0

Github Stars

MCP Replicate Server

Этот пакет содержит MCP сервер для взаимодействия с API Replicate и ElevenLabs.

Установка и запуск

Этот проект использует системный Python 3 для запуска.

ВАЖНО: Убедитесь, что у вас установлен Python 3.11 (например, через Homebrew: brew install python@3.11) и команда python3.11 доступна в вашем PATH (проверить можно командой which python3.11). Если нет, используйте полный путь или добавьте директорию Python в PATH.

  1. Клонируйте/скопируйте репозиторий на ваш компьютер.

  2. Создайте файл .env: Скопируйте .env.example (если он есть) или создайте .env вручную:

    # Если есть .env.example:
    cp .env.example .env 
    # Или создайте пустой:
    touch .env
    

    Откройте файл .env и добавьте ваши API ключи:

    REPLICATE_API_TOKEN=ВАШ_КЛЮЧ_REPLICATE
    ELEVENLABS_API_KEY=ВАШ_КЛЮЧ_ELEVENLABS
    
  3. Установите зависимости (один раз или при обновлении): Откройте терминал в папке проекта и выполните команду, чтобы установить необходимые пакеты глобально для вашего системного Python:

    python3.11 -m pip install -r requirements.txt --upgrade
    

    (Если у вас есть отдельная команда pip3.11, вы можете использовать её: pip3.11 install -r requirements.txt --upgrade)

  4. Запустите сервер вручную: В терминале, находясь в папке проекта, выполните:

    python3.11 replicate_mcp_server.py
    

    Сервер будет запущен в терминале и готов принимать MCP запросы. Чтобы остановить его, нажмите Ctrl+C в этом терминале.

    Для использования с Cursor MCP: Убедитесь, что в файле ~/.cursor/mcp.json для сервера replicate_generator указана команда python3.11, правильные аргументы (/Users/aliya/mcp_content_creation/replicate_mcp_server.py), а также рабочая директория (/Users/aliya/mcp_content_creation/). Затем перезапустите сервер через интерфейс Cursor.

Тестирование с MCP Inspector (Опционально)

Если вы хотите протестировать сервер с помощью MCP Inspector, выполните в терминале (в той же папке проекта):

# Используем тот же системный Python, которым запускается сервер
npx @modelcontextprotocol/inspector python3.11 replicate_mcp_server.py 

Эта команда запустит инспектор, который в свою очередь запустит ваш сервер.

Примечание: Иногда перед запуском инспектора может потребоваться освободить порты, которые он использует (например, 6277 и 6274). Это можно сделать с помощью команд lsof -ti:<порт> для поиска процесса и kill <PID> для его завершения.

Примечание для пользователей не macOS

Скрипт replicate_mcp_server.py использует команду open для автоматического открытия сгенерированных файлов. Эта команда работает только на macOS.

Если вы запускаете сервер на Windows или Linux, открытие файлов не будет работать и может вызвать ошибку. Вы можете:

  • Игнорировать сообщения об ошибках, связанные с командой open.
  • Отредактировать файл replicate_mcp_server.py и заменить вызовы subprocess.run([\"open\", ...]) на эквивалентную команду для вашей ОС (start для Windows, xdg-open для Linux) или просто закомментировать/удалить эти строки, если автоматическое открытие не требуется.

相关推荐

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • Matthieu Savioux
  • Evaluates language quality of texts, responds with a numerical score between 50-150.

  • Liaozhaohe
  • - Talk with your own cat-girl maid as in visual novels!

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • langgenius
  • 1Panel-dev
  • 🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.

  • alibaba
  • rulego
  • ⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.

  • Byaidu
  • PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO

  • hkr04
  • SDK C ++ MCP (Protocole de contexte modèle léger)

  • lasso-security
  • Une passerelle basée sur un plugin qui orchestre d'autres MCP et permet aux développeurs de s'appuyer sur des agents de qualité d'entreprise informatiques.

  • nbonamy
  • Witsy: Assistant AI de bureau

    Reviews

    2.3 (6)
    Avatar
    user_frBOAtv1
    2025-04-24

    As a dedicated user of mcp_content_creation by aliyaredpilled, I must say it has revolutionized my content creation process. This tool is intuitive and significantly boosts productivity and creativity. The seamless integration and ease of use make it a must-have for anyone serious about producing high-quality content. Highly recommended!

    Avatar
    user_y9h0IiV8
    2025-04-24

    As a devoted user of mcp_content_creation by aliyaredpilled, I've found it to be an invaluable tool for crafting high-quality content. The user-friendly interface and comprehensive features significantly streamline the content creation process. Highly recommended for anyone looking to enhance their writing efficiency and creativity.

    Avatar
    user_ly2kCRrP
    2025-04-24

    I'm thrilled with the mcp_content_creation tool developed by aliyaredpilled! It's incredibly user-friendly and efficient for all my content creation needs. The intuitive interface and seamless integration into my workflow have significantly boosted my productivity. Highly recommend it to anyone looking to enhance their content output!

    Avatar
    user_cKtDJfjl
    2025-04-24

    As a dedicated user of mcp_content_creation, I've found it to be an invaluable tool for my content generation needs. Aliyaredpilled has crafted a seamless experience that just enhances productivity. The user-friendly interface and powerful features make it easy to create high-quality, engaging content. Highly recommend it!

    Avatar
    user_NV75buiL
    2025-04-24

    As a dedicated user of mcp_content_creation, I find this tool indispensable for crafting high-quality content efficiently. Aliyaredpilled has developed an exceptional product that offers seamless user experience and robust performance. Whether you're a seasoned writer or just starting, mcp_content_creation has everything you need to elevate your content game. I highly recommend it to anyone looking to streamline their creative process.

    Avatar
    user_GTcQwRzc
    2025-04-24

    I have been using mcp_content_creation by aliyaredpilled, and it has significantly improved my content generation process. The tool is intuitive and user-friendly, allowing me to create high-quality content with ease. I highly recommend it to anyone looking to streamline their content creation efforts.