Skip to main content

Add Maxun to Your Agent

Give your AI agent the ability to scrape, crawl, search and extract web data in a couple of minutes. There are three options:

  1. MCP server (recommended): adds Maxun's tools to any MCP client.
  2. Agent skill: a skill for Claude Code or OpenClaw that runs your existing robots.
  3. Docs in context: point a coding agent at the docs so it writes Maxun code for you.

Before you start​

Get an API key from the Maxun dashboard under Settings → API Key. See API Key for details. Replace your_api_key_here below with your key.

Connect with MCP​

The examples below use Maxun Cloud (https://app.maxun.dev/api/mcp). If you self-host Maxun, follow the self-hosted MCP setup instead.

Run this in your terminal:

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

Add --scope user to make Maxun available in every project, or --scope project to share it with your team through .mcp.json. Run /mcp inside Claude Code to check the connection.

Work with a team's robots

Add an x-team-id header with your team ID to use a team's robots instead of your personal ones. See Use a team's robots.

Try it​

Ask your agent something like:

See MCP Tools for every tool and its options.

Install an agent skill​

Skills teach an agent how to run your existing Maxun robots with simple commands. Use them if you already build robots in the dashboard and want to run them from your agent.

AgentInstallGuide
Claude CodeDownload the skill to ~/.claude/skills/maxunClaude Code skill
OpenClawclawhub install maxunOpenClaw skill

All skills are open source in the maxun-skills repository.

Give your agent the docs​

When a coding agent writes code that uses the Maxun SDK, CLI or API, give it the docs so it uses the current API:

To make this permanent, add a note to your project's AGENTS.md, CLAUDE.md or .cursor/rules:

## Maxun
This project uses Maxun for web scraping and data extraction.
Before writing Maxun code, read https://docs.maxun.dev/llms.txt.
Fetch any docs page as Markdown by adding .md to its URL.
Read the API key from the MAXUN_API_KEY environment variable.

Or paste this prompt to have your agent add 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.

See LLM-ready docs for everything the docs offer AI tools.