How to Fetch URL Metadata with Claude
Get link preview metadata with Claude and ToolRouter. Fetch title, description, and image from any URL.
ToolLink PreviewClaude fetches link metadata and can immediately act on it — compare the Open Graph title to the actual page title, check whether the thumbnail is appropriate, or pull metadata from multiple URLs and present the results as a formatted summary.
Connect ToolRouter to Claude
1Open connector settings Open Settings
2Add a custom connector with these details
Name
ToolRouterURL
https://api.toolrouter.com/mcp3Let Claude set you up Open Claude
Steps
Once connected (see setup above), use the Link Preview tool:
- Ask: "Get the link preview metadata for: [paste URL]"
- Claude returns the title, description, image URL, and Open Graph data
- Ask follow-up: "Is the description a good summary of the page?"
- Use the metadata to populate a link card, database entry, or content feed
Example Prompt
Try this with Claude using the Link Preview tool
Fetch the link preview metadata for these three URLs and tell me the title, description, and whether each has a thumbnail image: [url1], [url2], [url3].
Tips
- Ask Claude to compare the Open Graph title vs the plain page title — discrepancies are common and worth knowing
- Fetch metadata for multiple competitor pages to see how they position content in link previews
- Ask whether the description is under 160 characters for SEO reference