# Screenshot.fyi — how to use (mcp.ai)

Connect your Screenshot.fyi account and use 1 tools for developer tools straight from your AI agent. Connect with your own API key. Take stunning, premium quality screenshots of any website with one API call.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_screenshot_fyi?ms=1787291400000`
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. `screenshot_fyi_take_screenshot`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/screenshot_fyi`
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/screenshot_fyi/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/screenshot_fyi/take/screenshot` — Tool to capture a webpage screenshot. Use after specifying the target URL and options. JavaScript-heavy pages may capture before full render; ensure the page is fully loaded prior to capture.
  - body: { url: string, format?: string, dark_mode?: boolean, full_page?: boolean, viewport_width?: integer, viewport_height?: integer, disable_cookie_banners?: boolean }

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

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