Skip to main content
Glama

Replicate MCP Server

by deepfates
models.ts2.17 kB
/** * Tools for interacting with Replicate models. */ import type { Tool } from "@modelcontextprotocol/sdk/types.js"; import type { ReplicateClient } from "../replicate_client.js"; import type { Model } from "../models/model.js"; /** * Tool for searching models using semantic search. */ export const searchModelsTool: Tool = { name: "search_models", description: "Search for models using semantic search", inputSchema: { type: "object", properties: { query: { type: "string", description: "Search query", }, }, required: ["query"], }, }; /** * Tool for listing available models. */ export const listModelsTool: Tool = { name: "list_models", description: "List available models with optional filtering", inputSchema: { type: "object", properties: { owner: { type: "string", description: "Filter by model owner", }, cursor: { type: "string", description: "Pagination cursor", }, }, }, }; /** * Tool for listing model collections. */ export const listCollectionsTool: Tool = { name: "list_collections", description: "List available model collections", inputSchema: { type: "object", properties: { cursor: { type: "string", description: "Pagination cursor", }, }, }, }; /** * Tool for getting collection details. */ export const getCollectionTool: Tool = { name: "get_collection", description: "Get details of a specific collection", inputSchema: { type: "object", properties: { slug: { type: "string", description: "Collection slug", }, }, required: ["slug"], }, }; /** * Tool for getting model details including versions. */ export const getModelTool: Tool = { name: "get_model", description: "Get details of a specific model including available versions", inputSchema: { type: "object", properties: { owner: { type: "string", description: "Model owner", }, name: { type: "string", description: "Model name", }, }, required: ["owner", "name"], }, };

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/deepfates/mcp-replicate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server