MCP
Use Link Preview as tools in AI assistants.
Subscribe on RapidAPIThe API exposes an MCP server (streamable HTTP) at /link-preview/mcp with two tools:
| Tool | Input | Output |
|---|---|---|
create_link_preview | { url, options? } | The preview object |
create_batch_link_preview | { urls, options? } | { results, summary } |
Both tools use the same validation, fetching and errors as REST. Failures return a tool error containing the
same { success: false, error } JSON. The tools are read-only.
Connect an MCP client to the endpoint, for example:
export BASE_URL="https://link-preview-url-unfurling-open-graph-metadata4.p.rapidapi.com"claude mcp add --transport http link-preview "$BASE_URL/link-preview/mcp"Subscribe on RapidAPI first, and connect with the details from its API page.