# Prerender — how to use (mcp.ai)

Connect your Prerender account and use 10 tools for developer tools straight from your AI agent. Connect with your own API key. Prerender.io is a service that pre-renders JavaScript-heavy websites to improve SEO by serving static HTML versions to search engine crawlers.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_prerender?ms=1787295660000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `prerender_change_recache_speed`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/prerender`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/prerender/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/prerender/change/recache/speed` — Tool to adjust the rendering speed of Manual/API and Automatic rendering queues. Use when you need to control how fast Prerender processes URLs in the recache queue.
  - body: { urls_per_hour: integer }
- `POST https://api.mcp.ai/api/prerender/check/health` — Tool to check the health status of the Prerender API service. Use when you need to verify service availability or monitor system health.
- `POST https://api.mcp.ai/api/prerender/clear/cache` — Tool to clear Prerender cache using SQL-like wildcard patterns. Schedules a cache clear job. Only one cache clear job can be scheduled per user at a time. Use when you need to invalidate cached pages 
  - body: { query: string }
- `POST https://api.mcp.ai/api/prerender/create/seo/audit/report` — Tool to generate SEO audit reports for a specific URL. Use when you need to analyze SEO performance metrics for a web page. The report will be sent to the provided email address.
  - body: { url: string, email: string, lastName: string, firstName: string }
- `POST https://api.mcp.ai/api/prerender/get/cache/clear/status` — Tool to check the status of a cache clear job. Use when you need to verify if a cache clearing operation is still in progress or has completed.
  - body: { token: string }
- `POST https://api.mcp.ai/api/prerender/get/prerendered/page` — Tool to fetch a prerendered HTML page. Use when you need a static snapshot of a page before dynamic rendering.
  - body: { url: string }
- `POST https://api.mcp.ai/api/prerender/list/healthz` — Tool to check Prerender API health and availability. Use when you need to verify the API is operational before making requests.
- `POST https://api.mcp.ai/api/prerender/list/v3` — Tool to get a greeting message from the Prerender API. Use when you need to verify basic API connectivity or retrieve the hello message.
- `POST https://api.mcp.ai/api/prerender/recache/url` — Tool to cache or recache URLs in Prerender. Use when you need to refresh cached pages or cache new URLs. Supports single URL or batch operations (up to 1000 URLs).
  - body: { url?: string, urls?: string[], adaptive_type?: string }
- `POST https://api.mcp.ai/api/prerender/search/cached/urls` — Tool to search for cached URLs in your Prerender account and view their cache status. Supports pagination (200 URLs per page) and filtering by desktop/mobile adaptive type. Use when you need to find s
  - body: { query?: string, start?: integer, exact_match?: string, adaptive_type?: string }

## Example prompts
- "What can I do in Prerender?"
- "Show me a summary of my Prerender account"

## More
- Page: https://mcp.ai/prerender
- Agent spec (llms.txt): https://mcp.ai/prerender/llms.txt
- Postman collection: https://mcp.ai/prerender/postman.json
