Replicate Image Generation MCP Server
Enables generating images via Replicate's image generation models by providing a prompt and aspect ratio, returning the URL of the generated image.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Replicate Image Generation MCP ServerGenerate an image of a cyberpunk city street at night, 16:9"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Replicate 画像生成 MCP サーバー
Claude.ai の「カスタムコネクタ」から Replicate の画像生成モデルを呼び出すための、最小構成の MCP サーバーです。
できること
ツール
generate_imageを1つだけ公開しますprompt(英語推奨)とaspect_ratioを渡すと、Replicate で画像を1枚生成し、URLをテキストで返しますモデルは
api/mcp.js冒頭のMODEL定数で指定しています(初期値:black-forest-labs/flux-schnell)
Related MCP server: Replicate Designer MCP
① Replicate の API トークンを取得する
https://replicate.com にログイン(アカウントがなければ作成)
右上のアカウントメニュー → API tokens
トークンをコピーしておく(あとで Vercel に登録します)
② Vercel にデプロイする
方法A: GitHub 経由(おすすめ)
このフォルダ一式を GitHub の新しいリポジトリにアップロードする
https://vercel.com にログインし、「Add New... → Project」
今作ったリポジトリを選択してインポート
デプロイ設定はそのままでOK(Framework Preset: Other のままで問題ありません)
Environment Variables に以下を追加してから Deploy:
Key:
REPLICATE_API_TOKENValue: ①で取得したトークン
デプロイが終わると、
https://(プロジェクト名).vercel.appのようなURLが発行されます
方法B: Vercel CLI
npm i -g vercel
cd replicate-mcp
vercel login
vercel env add REPLICATE_API_TOKEN
# プロンプトが出たら①のトークンを貼り付けて Enter
vercel --prodどちらの方法でも、最終的に手に入る MCPエンドポイントのURL は次の形になります。
https://(あなたのプロジェクト名).vercel.app/api/mcpこのURLをメモしておいてください。③で使います。
③ Claude.ai にカスタムコネクタとして登録する
Claude.ai にログイン
左下のアカウントメニュー → 設定(Settings)
コネクタ(Connectors) タブを開く
カスタムコネクタを追加(Add custom connector) を選択
以下を入力する:
名前: 好きな名前(例: 「Replicate 画像生成」)
URL: ②で控えた
https://.../api/mcp
保存すると、以後チャット画面のツール一覧に
generate_imageが表示されるようになります
※ 実際の画面項目名は Anthropic 側のアップデートで変わることがあります。「コネクタ」「Connectors」「カスタムコネクタ」などのキーワードで設定画面内を探してください。
④ 動作確認
Claude.ai のチャットで、このコネクタを有効にした状態で
このコネクタを使って、〇〇の画像を作って
のように頼むと、generate_image ツールが呼ばれ、Replicate で生成された画像のURLが返ってきます。
トラブルシューティング
「未対応のメソッドです」と出る:Claude側のMCPプロトコルバージョンが本サーバーの実装と一致していない可能性があります。まずは
tools/listが正しく返っているか、ブラウザやcurlで直接POSTして確認してください。画像生成が毎回タイムアウトする:Vercelの無料プランは実行時間の上限が短い場合があります。
vercel.jsonのmaxDurationを必要な範囲で調整するか、有料プランを検討してください。REPLICATE_API_TOKEN が設定されていませんと出る:Vercelの Environment Variables に登録したあと、再デプロイしないと反映されません。
今後の拡張案
プロンプトの共通スタイル(切り絵風・パステルなど)をサーバー側で自動的に前置きする
aspect_ratio以外にseed(同じ絵の再現用)やnegative_promptを追加する生成した画像を Vercel Blob などに保存し、恒久的なURLとして返す(Replicateの出力URLは期限付きの場合があります)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA server that enables generating images through the Replicate API by calling the Flux Schnell model via the Model Context Protocol (MCP).3MIT
- AlicenseBqualityDmaintenanceAn MCP server that enables image generation using Replicate's Flux 1.1 Pro model. It provides a tool for creating visuals from text prompts with customizable settings for aspect ratio, output format, and quality.1MIT
- Alicense-qualityDmaintenanceA simple MCP server for generating images using Flux models via the Replicate API.31MIT
- Flicense-qualityCmaintenanceRemote MCP server that exposes a generate_image tool allowing Claude to generate images via the Google Gemini API.
Related MCP Connectors
MCP server for Flux AI image generation
MCP server for Producer/Riffusion AI music generation
MCP server for Hailuo (MiniMax) AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/itshideline-svg/replicate-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server