Skip to main content

Build With AI

Maxun gives AI agents and LLM apps clean, live web data. Agents can scrape a page into Markdown, crawl a site, search the web, or describe the data they need and let Maxun extract it, then run the same robot again whenever they need fresh data.

There are four ways to use Maxun with AI:

What it isBest for
MCP serverMaxun's tools inside any MCP clientClaude, Cursor, Windsurf, VS Code, Codex and other agents that need web data while they work
Agent skillsReady-made skills that run your Maxun robotsClaude Code and OpenClaw users who already have robots
LLM-ready docsllms.txt, llms-full.txt and every page as MarkdownCoding agents that write Maxun code for you
AI frameworksThe Maxun SDK as a tool or loader in your frameworkLangChain, LangGraph, LlamaIndex, Mastra, OpenAI and Vercel AI SDK apps

Quick start: let your agent set it up​

Copy this prompt into Claude Code, Cursor, Codex or any coding agent. It reads the docs and adds Maxun to your project.

Add Maxun to my project
ClaudeChatGPT
Add Maxun (https://maxun.dev) to this project so it can scrape, crawl, search and extract web data.

1. Read https://docs.maxun.dev/llms.txt to learn how Maxun works. Fetch any page as Markdown by adding .md to its URL.
2. Pick the official SDK for this project's language: maxun-sdk for Node.js/TypeScript, or maxun for Python.
3. Install it and read the API key from the MAXUN_API_KEY environment variable. Never hard-code the key. If .env.example exists, add MAXUN_API_KEY to it.
4. Add a small example that scrapes https://maxun.dev into Markdown and prints the result.
5. Tell me where to get an API key: https://app.maxun.dev, under Settings → API Key.

To give your agent Maxun's tools directly, follow Add Maxun to your agent.

Connect your agent with MCP​

The Maxun MCP server works with any MCP client. On Maxun Cloud it is one URL and an API key:

URL: https://app.maxun.dev/api/mcp
Header: x-api-key: <your-api-key>

For example, in Claude Code:

claude mcp add --transport http maxun https://app.maxun.dev/api/mcp --header "x-api-key: your_api_key_here"

Your agent then gets these tools:

ToolWhat it does
maxun_scrapeTurn a page into Markdown, HTML, text, links, a summary or screenshots, and answer questions about it
maxun_crawlCrawl a website and return the content of every page
maxun_searchSearch the web and optionally scrape each result
maxun_agentDescribe the data you want and let Maxun's AI build and run an extraction robot
maxun_list_robots, maxun_run_robot, ...Run and inspect the robots you already have

See Add Maxun to your agent for Cursor, VS Code, Windsurf, Claude Desktop, Codex and Gemini CLI.

AI frameworks​

Use the Maxun SDK as a tool or document loader in your framework of choice:

FrameworkGuide
LangChainLangChain
LangGraphLangGraph
LlamaIndexLlamaIndex
MastraMastra
OpenAI SDK (function calling)OpenAI
Vercel AI SDKVercel AI SDK

Writing prompts for extraction​

AI mode, the maxun_agent tool and the SDK's extract() all take a plain-English description of the data you want. See How to write prompts for examples that work well.