# PageMap

Compiles heavy HTML into lightweight maps of 2-5K tokens so autonomous agents can navigate websites, submit forms, and click elements.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 36
- Author: Retio-ai
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Retio-ai/Retio-pagemap
- Updated: 2026-05-21
- HTML: https://affpapa.org/en/nevibecode/mcp/pagemap

## What it does

Accessibility trees quickly exhaust context windows during multi-step browser tasks. PageMap solves this bottleneck. It strips bloated raw markup down to structured page maps, cutting token usage by 97%. The tool classifies 16 distinct page layouts, handling product listings, authentication screens, and articles.

Web control relies on 13 dedicated tools, including `get_page_map`, `fill_form`, and multi-tab actions. Chromium downloads automatically on initial launch. Built-in heuristics detect bot challenges like Cloudflare and dismiss cookie banners using a privacy-first rejection strategy.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add pagemap -- uvx retio-pagemap
```
uvx runs the command named after the package; if the README names another one, use uvx --from retio-pagemap <command>

### Codex

**Platform CLI**
```bash
codex mcp add pagemap -- uvx retio-pagemap
```
uvx runs the command named after the package; if the README names another one, use uvx --from retio-pagemap <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "pagemap": {
            "command": "uvx",
            "args": [
                "retio-pagemap"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from retio-pagemap <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "pagemap": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "retio-pagemap"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from retio-pagemap <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add pagemap uvx retio-pagemap
```
uvx runs the command named after the package; if the README names another one, use uvx --from retio-pagemap <command>

## When to use it
- shrink raw page markup down to 2-5K tokens
- interact with web forms, buttons, and multiple tabs
- dismiss cookie consent popups using reject policies
- identify anti-bot barriers like Turnstile or Cloudflare

## Example prompts
- Inspect the shopping cart page and extract item totals
- Submit the login form and switch to the second tab
- Capture a screenshot after scrolling to the footer

## Similar
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [AIHawk](https://affpapa.org/en/nevibecode/mcp/aihawk.md) — MCP server · ★ 32221
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23263
- [SeleniumBase MCP](https://affpapa.org/en/nevibecode/mcp/seleniumbase-mcp.md) — MCP server · ★ 13169
- [apify-mcp-server](https://affpapa.org/en/nevibecode/mcp/apify-mcp-server.md) — MCP server · ★ 12927

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
