Blogs›Replicate›Search API
Replicate has introduced a new Search API to help users find models, collections, and documentation. This API provides enhanced search capabilities with richer metadata, including generated descriptions and tags. It is integrated into the TypeScript and Python SDKs, and the MCP servers, with sophisticated response filtering to optimize LLM context windows. The older search endpoint remains active but is deprecated in favor of the new API. This post introduces the Model Context Protocol (MCP) server, which allows language models to interact with Replicate's HTTP APIs. It details the MCP standard for tool use, provides examples of querying and running models via natural language, and introduces both hosted remote and local MCP server options. A key feature highlighted is JSON response filtering using `jq` via WebAssembly to manage large API responses and optimize LLM context windows. The hosted server leverages Cloudflare Workers for secure authentication and storage of Replicate API tokens.