For developers
Add 404 Love Found to your website
Choose the integration that fits your stack and go live quickly with an adoptable, privacy-respecting 404 experience.
Search adoptable pets from your AI agent
We expose a Model Context Protocol (MCP) server so any MCP-capable agent can search adoptable pets and fetch full profiles, including organization contact details.
One-line install
Claude Code
claude mcp add --transport http 404found-love https://404found.love/api/mcpGemini CLI
gemini mcp add --transport http 404found-love https://404found.love/api/mcpCodex CLI
codex mcp add 404found-love --url https://404found.love/api/mcpVS Code
code --add-mcp '{"name":"404found-love","type":"http","url":"https://404found.love/api/mcp"}'JSON config
{
"mcpServers": {
"404found-love": {
"type": "http",
"url": "https://404found.love/api/mcp"
}
}
}For clients without a CLI (Cursor, Windsurf, opencode, and others), add the server URL https://404found.love/api/mcp to your client's MCP config.
Option 1: Next.js SDK
Best for Next.js App Router projects. Install the SDK and export a ready-to-go 404 page.
Install
npm install @404love/nextapp/not-found.tsx
import { createNotFoundPage } from "@404love/next"
export default createNotFoundPage()Option 2: Embedded iframe
Drop a full-page iframe into any stack. Add an optional referer query param to enable the built-in back link.
HTML embed
<iframe
title="404 Love Found"
src="https://404found.love/frame?referer=https://your-domain.com"
style="width: 100%; min-height: 100vh; border: 0;"
loading="lazy"
></iframe>Keep your visitors on your site
A 404 page should put people back on track. Add your own search box and a few key links above the pets. Both navigate straight back to your site.
Next.js SDK
app/not-found.tsx
import { createNotFoundPage } from "@404love/next"
export default createNotFoundPage({
hostSlots: {
search: { action: "/search" },
links: [
{ label: "Home", href: "/" },
{ label: "Docs", href: "/docs" },
],
},
})Iframe URL
src
https://404found.love/frame
?referer=https://your-domain.com/missing-page
&search=https://your-domain.com/search
&link=Home|https://your-domain.com/
&link=Docs|https://your-domain.com/docs- Links and the search action must be on your own hostname (or a subdomain). Anything else drops the slot.
- Up to 8 links, labels up to 40 characters. Plain text only.
- The search box submits a plain GET with the term in
q(override withsearch_param). - The iframe must not use a sandbox that blocks top navigation.
Match your site's look
Pick a preset or pass your own colors, corner radius and font, so the frame reads as part of your site instead of an embed.
Next.js SDK
app/not-found.tsx
import { createNotFoundPage } from "@404love/next"
export default createNotFoundPage({
theme: "dark",
themeTokens: {
background: "#0D0E10",
accent: "#FF5A47",
onAccent: "#1A0603",
radius: 0,
font: "ibm-plex-sans",
},
})Iframe URL
src
https://404found.love/frame
?theme=dark
&theme_v=1
&t_bg=%230D0E10
&t_accent=%23FF5A47
&t_on_accent=%231A0603
&t_radius=0
&t_font=ibm-plex-sansthemeislight,darkorauto(follows the visitor's color scheme). It works on its own.- Tokens need
theme_v=1:t_bg,t_surface,t_text,t_muted,t_accent,t_on_accent,t_border(hex, URL-encode the#),t_radius(0-24 px) andt_font(system,inter,ibm-plex-sans,geist,roboto). - Invalid values are ignored, and any text color pair below 4.5:1 contrast falls back to the preset. No custom CSS, no font URLs.
- The SDK also reads your page's colors and font (
deriveTheme) and sizes the iframe to its content (autoHeight). Both are on by default.
Try our agent skill
Add the 404love skill to your agent toolkit for guided Next.js setup and troubleshooting.
npx
npx skills add https://github.com/dariorapisardi/404love --skill 404love-next