Replicate Anywhere
Allows searching, discovering, and running any model on Replicate, including parameter detection and image output formatting.
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 AnywhereGenerate an image of a cat with flux pro"
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 Anywhere
An MCP (Model Context Protocol) server that enables AI assistants to search, discover, and run any model on Replicate. No hardcoded model lists - just describe what you want and let the AI find and run the right model.
Features
π Smart Model Search - Find models by fuzzy name matching (e.g., "flux", "stable diffusion", "nano banana pro")
π€ Automatic Model Discovery - AI searches first, asks questions later
π Parameter Detection - Automatically retrieves and understands model input schemas
πΌοΈ Inline Image Display - Image outputs are formatted as markdown for inline display
β±οΈ Async Prediction Handling - Long-running predictions return status URLs instead of timing out
β Prediction Status Checking - Check on running predictions that haven't completed yet
Related MCP server: OpenRouter MCP Server
Installation
Prerequisites
Node.js 18+
NPM (Global)
npm install -g replicate-anywhereFrom Source
git clone https://github.com/fifthseason-ai/replicate-anywhere.git
cd replicate-anywhere
npm install
npm run buildConfiguration
Environment Variables
Variable | Required | Default | Description |
| Yes | - | Your Replicate API token |
| No |
| Maximum time (ms) to wait for predictions before returning async status |
MCP Client Configuration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"replicate-anywhere": {
"command": "npx",
"args": ["-y", "replicate-anywhere"],
"env": {
"REPLICATE_API_TOKEN": "r8_your_token_here"
}
}
}
}LibreChat
Add to your librechat.yaml:
mcpServers:
replicate-anywhere:
type: stdio
command: npx
args:
- -y
- replicate-anywhere
env:
REPLICATE_API_TOKEN: "${REPLICATE_API_TOKEN}"Docker
services:
replicate-anywhere:
build:
context: ./replicate-anywhere
environment:
REPLICATE_API_TOKEN: ${REPLICATE_API_TOKEN}Tools
search-models
Search for AI models on Replicate by name or description. This tool is designed to be called first when a user mentions any model name.
{
"query": "flux pro"
}get-model-info
Get detailed information about a specific model, including its input parameters schema.
{
"owner": "black-forest-labs",
"name": "flux-pro"
}run-model
Run a prediction on any Replicate model.
{
"model": "black-forest-labs/flux-pro",
"input": {
"prompt": "A beautiful sunset over mountains",
"aspect_ratio": "16:9"
}
}list-models
List public models on Replicate (paginated).
{
"cursor": "optional_pagination_cursor"
}check-prediction
Check the status of a running prediction.
{
"prediction_id": "abc123xyz"
}Usage Examples
Generate an Image
User: "Generate an image of a cat wearing a space helmet using flux"
The AI will:
Call
search-modelswith query "flux"Call
get-model-infoto get parameters for the best matchCall
run-modelwith appropriate parametersReturn the image inline (markdown formatted)
Use a Specific Model
User: "Use stable diffusion xl to create a cyberpunk cityscape"
The AI will search for "stable diffusion xl", find stability-ai/sdxl, and run it.
Check a Long-Running Prediction
User: "Check on my prediction abc123"
The AI will call check-prediction to get the current status and output if complete.
Output Formatting
Images
When a model returns image URLs, the output is automatically formatted as markdown:
**Generated Image:**

**Direct link:** https://replicate.delivery/...Other Outputs
Non-image outputs are returned as JSON.
Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Run locally
REPLICATE_API_TOKEN=your_token npm startArchitecture
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β AI Assistant ββββββΆβ replicate-anywhereββββββΆβ Replicate API β
β (Claude, etc.) βββββββ MCP Server βββββββ β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββThe server acts as a bridge between MCP-compatible AI assistants and the Replicate API, providing:
Tool definitions that guide the AI on how to search and run models
Smart response formatting for different output types
Timeout handling for long-running predictions
License
MIT
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Credits
Built by Aaron Sherrill
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.
Latest Blog Posts
- 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/motionharvest/replicate-anywhere'
If you have feedback or need assistance with the MCP directory API, please join our Discord server