Magpie
Securely extracts valuable content from web pages for AI agents, prioritizing politeness, security, and token efficiency.
Magpie is a web scraper designed specifically for AI agents, inspired by its namesake bird's habits of collecting shiny things and being extremely wary. It intelligently extracts valuable web page content—such as clean markdown, headings, links, metadata, and structured data—while treating all retrieved information as potentially hostile. Built with a strong security-first approach, Magpie ensures politeness towards websites, protects against common vulnerabilities like SSRF and prompt injection, and manages token budgets effectively to provide agents with precisely labelled, untrusted content, all running locally without external API dependencies.