# Page2AI — Web to Markdown

> Page2AI — Web to Markdown is an open-source MCP server for files and documents. Turn any web page into clean Markdown with one tool, run locally with no API key. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, self-hosted
- **Website:** https://igorsaevets.github.io/page2ai-docs/mcp/
- **Repository:** https://github.com/igorsaevets/page2ai-mcp
- **MCP Registry name:** io.github.igorsaevets/page2ai-mcp
- **Categories:** files and documents, web search and scraping, AI models and LLM tooling
- **Listing updated:** 2026-11-14

## About

Page2AI exposes a single tool, page_to_markdown, that fetches a URL (or takes HTML you already hold, up to 10 million characters) and returns Markdown with code-block language hints, tables and reading structure preserved. A free-text query returns only matching sections, scored locally with BM25 rather than an API call, and long pages come back in parts controlled by max_length (default 30,000 characters per part).

A built-in guard blocks private ranges, loopback and cloud metadata addresses. Setting PAGE2AI_BRIDGE_KEY with the Page2AI browser extension (1.6.0 or later) lets pages open in your own signed-in browser instead of being fetched by the server.

It runs as a stdio server through npx, as a command-line tool (npx page2ai <url>), or through a hosted Streamable HTTP endpoint at page2ai.igorsaevets.com that is narrower (url and query only, public pages, 60 seconds, rate-limited). The author warns that URLs sent to the hosted endpoint pass through infrastructure he operates, so local use is preferred.

## Features

- **Structure-preserving output:** Keeps code blocks with language hints, tables and headings.
- **Query filtering:** Returns only the sections matching a free-text query, using local BM25.
- **Paging for long pages:** Splits long output into parts with a configurable max_length.
- **SSRF guard:** Blocks private ranges, loopback and cloud metadata endpoints.
- **Agent Bridge:** Optionally opens pages in your own browser with its cookies.
- **CLI and hosted options:** Use npx page2ai, the stdio server or a hosted endpoint.

## Good for

- Feed documentation pages to an LLM as compact Markdown
- Pull one relevant section from a long page using a query
- Convert a saved HTML file offline
- Read pages behind a login through your own browser session

## Install

### Claude Code (Terminal)

```sh
claude mcp add page2ai-mcp --env PAGE2AI_BRIDGE_KEY='<PAGE2AI_BRIDGE_KEY>' -- npx -y @page2ai/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "page2ai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@page2ai/mcp"
      ],
      "env": {
        "PAGE2AI_BRIDGE_KEY": "<PAGE2AI_BRIDGE_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "page2ai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@page2ai/mcp"
      ],
      "env": {
        "PAGE2AI_BRIDGE_KEY": "<PAGE2AI_BRIDGE_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "page2ai-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@page2ai/mcp"
      ],
      "env": {
        "PAGE2AI_BRIDGE_KEY": "<PAGE2AI_BRIDGE_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "page2ai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@page2ai/mcp"
      ],
      "env": {
        "PAGE2AI_BRIDGE_KEY": "<PAGE2AI_BRIDGE_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "page2ai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@page2ai/mcp"
      ],
      "env": {
        "PAGE2AI_BRIDGE_KEY": "<PAGE2AI_BRIDGE_KEY>"
      }
    }
  }
}
```

## Tools

- `page_to_markdown`: Fetches a URL or takes HTML and returns Markdown, optionally filtered by a query.

## FAQ

### Does it need an API key?

No. The README says no API key, no account and no telemetry.

### What Node version is needed?

Node.js 20 or newer.

### Is the hosted endpoint private?

No. URLs sent there are fetched from the author's server, so local use keeps everything on your machine.

### Which clients are documented?

Claude Code, Claude Desktop, Cursor, VS Code, Codex CLI, Gemini CLI, Windsurf, Zed, Cline and others.

### Is Page2AI — Web to Markdown free?

Yes. Page2AI — Web to Markdown is open source, so you can use and self-host it for free.

### How do I add Page2AI — Web to Markdown to Claude Code?

Run this command in your terminal: claude mcp add page2ai-mcp --env PAGE2AI_BRIDGE_KEY='<PAGE2AI_BRIDGE_KEY>' -- npx -y @page2ai/mcp

### What are the best alternatives to Page2AI — Web to Markdown?

The closest alternatives to Page2AI — Web to Markdown are Scrapling MCP Server, Firecrawl MCP Server, Claude Code Ultimate Guide, SearXNG Search and NeuralVerge.

## Alternatives

- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Firecrawl MCP Server](https://ai-powered.com/mcp/firecrawl-mcp-server): Firecrawl MCP Server is a freemium MCP server for web search and scraping.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [SearXNG Search](https://ai-powered.com/mcp/searxng-search): SearXNG Search is an open-source MCP server for web search and scraping.
- [NeuralVerge](https://ai-powered.com/mcp/neuralverge): NeuralVerge is an MCP server for web search and scraping.
- [ASTra](https://ai-powered.com/mcp/astra): ASTra is a freemium MCP server for files and documents.
- [AI-Powered directory](https://ai-powered.com/mcp/ai-powered-directory): AI-Powered directory is a free MCP server for developer tools.
- [CARTESIAN ECU](https://ai-powered.com/mcp/cartesian-ecu): CARTESIAN ECU is a paid MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/page2ai-web-to-markdown
