Skip to content

Install PageSift and Expose Its HTTP MCP Server Remotely

Install PageSift with Docker or Cargo, verify its HTTP API and MCP server locally, then give remote AI agents secure access through a Localtonet HTTP tunnel.

Summary in your language
In this article 12 sections
AI Agents & MCP · PageSift · Localtonet · 2026

Run a self-hosted web scraping and document parsing API on your own machine, then give remote AI agents a public HTTPS endpoint for it

PageSift is a local-first web and document ingestion engine written in Rust. It ships as one self-hosted binary with a CLI, Firecrawl-compatible and Jina Reader-compatible HTTP APIs, and an MCP server that AI agents can call. This guide covers four things. First, installing PageSift with Docker or Cargo. Second, testing its HTTP API and its HTTP MCP server on localhost. Third, publishing the working service with a Localtonet HTTP tunnel so agents outside your network can reach it without port forwarding or a public IP. Finally, securing, operating and troubleshooting that public endpoint.

🔒 Local-first processing with private-network guards 🌐 HTTP API on port 3002, HTTP MCP on port 3003 ⚡ Docker or Cargo install, verified with curl
Self-hosted PageSift server connected through an HTTP tunnel to a remote AI agent client
PageSift runs on your own machine and is reached by remote AI agents through an HTTP tunnel.

What PageSift is and what it gives an AI agent

PageSift describes itself as a local-first web and document ingestion engine. In practice it turns a URL, a document, an email, an archive, or a source file into clean Markdown or structured JSON. It is distributed under the Apache-2.0 license, and the project also states that a commercial license is available. Everything runs from one Rust binary, which matters for self-hosting: there is no separate fleet of converter services to wire together before you can scrape a page or parse a PDF.

The same core operations are exposed through several interfaces. You can call them from a terminal with the pagesift CLI, from any HTTP client through the self-hosted API, or from an AI agent through the built-in MCP server. The project also publishes native packages for Python (pagesift on PyPI) and Node.js (@pagesift/node on npm), and the project website lists bindings for several more languages. This guide focuses on the CLI, the HTTP API, and the MCP server, because those are the pieces you need for remote agent access.

🧰 CLI Commands such as pagesift scrape, pagesift crawl, and pagesift mcp run the engine directly. Scraped content is written as Markdown to standard output by default.
🔌 Firecrawl and Jina Reader APIs The HTTP server implements Firecrawl v1/v2 endpoints such as /v2/scrape and Jina Reader endpoints under /r/ and /s/, plus a file-upload API for local documents.
🤖 MCP server over stdio or HTTP Agents can attach locally over stdio or connect to a shared HTTP MCP endpoint at /mcp. The project lists eleven tools, including scrape, crawl, map, batch, and DataGraph queries.
📄 Document and OCR parsing PageSift includes its own readers for PDF, Office, e-books, email, archives, and data files. Scanned pages go through OCR on CPU or NVIDIA GPU, according to the project.
🕸️ Crawling and monitoring Crawls respect robots.txt and per-host limits and produce WARC output. Batch jobs persist and can be polled or cancelled. Monitoring checks report real content changes through webhooks.
🛡️ Safety and honest results The project documents private-network and DNS-rebinding guards on outbound fetches. A partial page, truncated file, or skipped scan returns a warning code instead of silently looking complete.

The six core operations

The project groups its API surface into six verbs, and the same verbs appear in the CLI, the HTTP APIs, and the MCP tools. Understanding them helps you decide what a remote agent actually needs access to.

  • scrape extracts the main content of one page or document and converts it to Markdown that keeps headings, lists, tables, code, and math. JavaScript rendering is only used when it adds content.
  • crawl walks a whole site using sitemaps and query-focused crawling, with trap handling, robots.txt support, and per-host limits.
  • map discovers a site's URLs before you spend time fetching them, so you can feed a list into crawl, batch, or extract.
  • batch scrapes many URLs as one job with job persistence, durable webhooks, and per-owner isolation.
  • monitor runs scheduled checks that try to separate real changes from dates, counters, and ads.
  • agent is a research run exposed as POST /v2/agent. It answers a question from the web using a model you configure and checks each field of the answer against its source page.

Since version 1.4, PageSift also includes a DataGraph feature. When you scrape with --graph, every fetch becomes a node, links become citations, redirects and attachments are recorded as provenance edges, refetches extend a version history, and extracted fields carry byte offsets back to the source text. When sources disagree about the same entity, PageSift records a conflict instead of silently picking one. The HTTP API exposes this through endpoints such as /v2/graph/history and /v2/graph/conflicts.

Why run PageSift as a shared HTTP service and expose it remotely

Diagram of multiple remote AI agents reaching a local PageSift service through a Localtonet HTTP tunnel
One shared PageSift instance serves several remote agents through a single public HTTPS endpoint.

The simplest way to give one AI coding assistant access to PageSift is the stdio MCP transport. The project documents a one-line attachment for Claude Code:

claude mcp add pagesift -- pagesift mcp

With stdio, the agent launches pagesift mcp as a child process on the same machine. That works well for a single developer on a single laptop, but it breaks down in a few common situations:

  • The agent runs somewhere else. A hosted agent platform, a CI runner, a teammate's machine, or a cloud notebook cannot spawn a process on your workstation.
  • You want one instance for many clients. Crawl job state, caches, and DataGraph history are more useful when several agents share one running server instead of each starting its own.
  • The heavy lifting belongs on a specific machine. OCR on a machine with an NVIDIA GPU, or scraping from a host with a particular network position, means the engine should stay where it is while clients connect to it.
  • Existing Firecrawl or Jina Reader code. The project states that existing Firecrawl or Jina Reader client code can switch to PageSift by changing the API URL. Remote code needs a reachable URL to switch to.

This is where the HTTP interfaces come in. PageSift's HTTP API listens on port 3002 in the documented Docker setup, and its HTTP MCP server is documented on port 3003 at the path /mcp. Both are ordinary HTTP services, which means they fit an HTTP tunnel naturally. With Localtonet, the Localtonet client on the PageSift machine makes an outbound connection to our relay server and gives you a public HTTPS URL that forwards to the local port. You do not need to open router ports, change firewall rules, set up a VPN, or have a public IP address.

A public scraper is a powerful tool for anyone who finds the URL

Anyone who can reach your PageSift endpoint can make your machine fetch web pages, crawl sites, and spend your CPU, bandwidth, and any model credits configured for the agent endpoint. Do not leave an unauthenticated PageSift endpoint publicly reachable. Read the security section before you start a tunnel, and stop the tunnel when you are not using it.

Prerequisites and version notes

PageSift documents two primary installation paths: a container image and a Cargo install of the CLI. You only need one of them, but the MCP part of this guide uses the CLI command pagesift mcp http, so read the comparison table before you choose.

Install path What you need What the official evidence documents Best for
Docker image Docker installed and running Image ghcr.io/yolow92/pagesift:1.4.2 with port mapping 3002:3002 for the HTTP API Running the HTTP API (Firecrawl and Jina Reader endpoints) with no Rust toolchain
Cargo (CLI) A Rust toolchain that provides cargo cargo install pagesift --locked, then commands such as pagesift scrape and pagesift mcp http --port 3003 Using the CLI, the stdio MCP server, and the HTTP MCP server on 127.0.0.1:3003/mcp
Python or Node.js package Python or Node.js Packages named pagesift (PyPI) and @pagesift/node (npm) are listed Embedding PageSift in your own code; not covered by this guide

General requirements

  • A machine that stays on while remote agents need it. A Localtonet tunnel is only available while the Localtonet client on that device is connected and the tunnel is running.
  • Free local ports. The documented ports are 3002 for the HTTP API and 3003 for the HTTP MCP server. If something else already uses them, change the host side of the mapping or the --port value.
  • curl or any HTTP client for local verification.
  • A Localtonet account and the Localtonet client installed on the same machine (or on a machine that can reach PageSift's port) for the remote access step.

Which version should you install?

The official sources do not agree on a single "current" version at the time we reviewed them. The installation instructions use the image tag 1.4.2, and the v1.4.2 release notes, dated 15 Nov, describe it as a correctness, isolation, and resource-bound patch release that is a drop-in upgrade from 1.4.1 and 1.4.0, with no wire-breaking CLI, HTTP API, Python, Node.js, or MCP changes. The project website still showed v1.4.1 as the latest release, while the README heading on the main branch showed 1.7.0. The main branch can be ahead of published releases.

When we rechecked, the v1.4.2 release page reported further commits to main since that release, but we could not confirm a newer tagged release with a published container image. This guide therefore uses 1.4.2, the tag the documented commands reference. Before you install, check the project's GitHub releases page and use the newest tagged release you are comfortable with. If a newer tag with a published image exists, it is likely the better choice, but we have not verified whether newer releases change ports, command names, or endpoints, so re-check those details in its release notes.

What the official evidence does not cover

Our evidence does not establish supported operating systems for the Cargo build, required system libraries, minimum Rust version, GPU driver setup for OCR, the configuration file format, the environment variables PageSift reads, or how API key authentication is configured on the HTTP server. We describe those areas as limitations instead of guessing. If you need them, check the project's docs directory for your exact version.

Install PageSift with Docker

The container route is the fastest way to get the HTTP API running. The documented image is published on GitHub Container Registry as ghcr.io/yolow92/pagesift:1.4.2, and the documented port mapping is 3002:3002, which publishes the container's API port 3002 on port 3002 of your machine.

Pull and run the image

Pull the image first so that any registry or network problem shows up separately from runtime problems:

docker pull ghcr.io/yolow92/pagesift:1.4.2

Then start a container with the documented port mapping:

docker run -p 3002:3002 ghcr.io/yolow92/pagesift:1.4.2

This runs in the foreground, so its logs appear in your terminal and Ctrl+C stops it. That is the best way to run it the first time, because you will see immediately if it fails to start.

Bind to localhost only (recommended when you will use a tunnel)

By default, Docker publishes a mapped port on all host network interfaces, which means other devices on your LAN can reach PageSift too. If you plan to reach PageSift remotely only through a Localtonet tunnel, you can restrict the published port to the loopback interface using standard Docker syntax. The Localtonet client running on the same machine can still reach 127.0.0.1:3002.

docker run -p 127.0.0.1:3002:3002 ghcr.io/yolow92/pagesift:1.4.2

Run it in the background

Once you have confirmed it starts correctly, you can use ordinary Docker options to run it detached with a name, which makes later operations easier. These flags are Docker features, not PageSift settings:

docker run -d --name pagesift -p 127.0.0.1:3002:3002 ghcr.io/yolow92/pagesift:1.4.2

# Follow the logs
docker logs -f pagesift

# Stop and start the container later
docker stop pagesift
docker start pagesift
Persistence and MCP in the container

PageSift persists crawl jobs and DataGraph history, but our evidence does not document the path inside the container where that state is stored, so we cannot give you a verified volume mount. Without a volume, assume state is lost when the container is removed. Our evidence also does not show the Docker image running the HTTP MCP server on port 3003. For the MCP part of this guide, use the Cargo-installed CLI described next.

Install the PageSift CLI with Cargo

PageSift is published on crates.io as pagesift. The documented install command is:

cargo install pagesift --locked

cargo install downloads the crate source, compiles it, and places the resulting pagesift binary in Cargo's bin directory. The --locked flag tells Cargo to use the exact dependency versions recorded in the package's lockfile instead of resolving newer ones, which gives you the same dependency set the maintainers tested. Compilation of a large Rust project can take several minutes, so a long build is normal.

If you do not have Cargo yet

Cargo comes with the Rust toolchain. Install Rust using the official Rust installer for your platform, open a new terminal, and confirm that cargo --version prints a version. If pagesift is not found after installation, Cargo's bin directory is probably not on your PATH; the Rust installer normally configures this, and opening a fresh shell usually fixes it.

Check the installation

Run a scrape against a simple page. The documented behavior is that pagesift scrape prints Markdown to standard output:

pagesift scrape https://example.com

If you see Markdown for the page, the engine, its network access, and its HTML conversion all work. A few other documented CLI forms are useful for testing different parts of the engine:

# Parse a local document (PDF, Office, e-book, email and more)
pagesift scrape report.pdf

# Crawl a site, one output file per page, limited to 500 pages
pagesift crawl docs.rs --limit 500

# Scrape with DataGraph output: citations, evidence, conflicts
pagesift scrape https://shop.example --graph

# Start the MCP server for a local agent (stdio)
pagesift mcp

Replace report.pdf with a real file on your machine. Be considerate with crawl limits: a crawl fetches many pages from someone else's site, and PageSift's robots.txt and per-host limits are there to keep that polite.

Starting the HTTP API from the CLI

Our evidence documents the HTTP API through the Docker image on port 3002, but it does not show the exact CLI subcommand that starts the Firecrawl and Jina Reader HTTP server from a Cargo install. Run pagesift --help to see the subcommands your version provides. If you want the HTTP API and the HTTP MCP server on the same machine, a straightforward combination is the Docker container for port 3002 and the Cargo binary for port 3003.

Verify the HTTP API locally

Always confirm the service works on localhost before you add a tunnel. If something fails at this stage, the problem is in PageSift or Docker, not in the network path, and that makes troubleshooting much faster. The project documents several local HTTP endpoints we can use for verification.

Endpoint Compatibility Purpose
/v2/scrape Firecrawl v2 Scrape a URL; accepts a JSON body with url and formats
/r/<url> Jina Reader Read a URL by appending it to the path; returns its content
/s/ Jina Reader Documented as part of the Jina Reader compatibility; request details are not covered in our evidence
/v2/parse PageSift document parsing Parse documents; the exact request format is not covered in our evidence
/v2/agent PageSift research runs Answer a question from the web with your own configured model
/v2/graph/history, /v2/graph/conflicts PageSift DataGraph Query version lineage and cross-source conflicts

Test 1: Jina Reader endpoint

This is the simplest request because it needs no body or headers:

curl localhost:3002/r/https://example.com

You should get the content of example.com back. If you get Connection refused, the server is not listening on port 3002 (see troubleshooting).

Test 2: Firecrawl v2 scrape endpoint

The project documents this request:

curl localhost:3002/v2/scrape \
  -H 'Authorization: Bearer sk-test' \
  -d '{"url":"https://example.com","formats":["markdown"]}'

The response should contain Markdown for the page. This is the request shape Firecrawl clients send, which is what makes PageSift a drop-in target for existing Firecrawl code. If your Firecrawl client fails against PageSift, compare its request with this one.

About the sk-test bearer token

sk-test is a placeholder value from the project's example. Our evidence does not tell us whether a default PageSift install validates bearer tokens at all, or how to configure real API keys. The v1.4.2 release notes explicitly describe behavior for "unauthenticated HTTP requests", which shows that unauthenticated access is a supported mode. Assume your local server accepts requests without a real key until you have confirmed otherwise for your version, and plan remote access accordingly.

Test 3: check for warning codes

PageSift is designed to report incomplete results honestly. If a page was partial, a file was truncated, or a scan was skipped, the result carries a warning code instead of looking complete. When you test with real pages and documents, look for these warnings in the output before assuming the content is complete. This matters even more for AI agents, which tend to trust whatever text they receive.

Run and verify the HTTP MCP server

Four-step flow showing PageSift starting, API responding, MCP server listening, and a client listing tools
Verify each layer locally before publishing: the service, the HTTP API, then the MCP endpoint.

The MCP server exposes PageSift's operations as tools an AI agent can call. It supports two transports. The stdio transport (pagesift mcp) is for an agent that launches PageSift as a local child process. The HTTP transport is for a shared server that agents connect to over the network, and it is the one that works through a tunnel.

Start the HTTP MCP server

With the Cargo-installed CLI, the documented command is:

pagesift mcp http --port 3003

The documented endpoint is:

http://127.0.0.1:3003/mcp

Note the /mcp path. MCP clients must be configured with the full URL including that path, not just the host and port. The documented address uses 127.0.0.1, so treat the server as reachable from the same machine. That is fine for our purpose, because the Localtonet client will run on the same machine and forward to 127.0.0.1:3003.

Tools the server exposes

The project lists eleven MCP tools: the nine everyday operations, including DataGraph queries, plus an agent pair that appears when a model is configured. The tool names shown in the project's materials include:

  • pagesift_scrape and pagesift_batch_scrape for single pages and batches
  • pagesift_crawl and pagesift_map for site crawls and URL discovery
  • pagesift_poll_job and pagesift_cancel_job for long-running jobs
  • pagesift_interact and pagesift_interact_stop for browser actions such as clicks, typing, scrolling, and kept sessions
  • pagesift_graph_query for DataGraph queries

Our evidence does not show the names of the two agent tools or how the model for them is configured, so expect to see nine tools if you have not configured a model.

Verify with an MCP client on the same machine

The most reliable test is to connect a real MCP client to the local URL before involving any tunnel. In Claude Code, an HTTP MCP server can be added with the HTTP transport option. Check your client's own documentation if the syntax differs in your version:

claude mcp add --transport http pagesift-http http://127.0.0.1:3003/mcp

Then ask the assistant to list its tools or scrape example.com with PageSift. If the PageSift tools appear and a scrape returns Markdown, the HTTP MCP server is working.

Optional: a raw protocol probe with curl

If you want to confirm the endpoint responds without an MCP client, you can send an MCP initialize request. This request shape comes from the MCP specification's Streamable HTTP transport, not from PageSift's documentation, and our evidence does not confirm which revision of the MCP HTTP transport PageSift implements. Treat the result as a signal, not a definitive test:

curl -i http://127.0.0.1:3003/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl-probe","version":"0.1"}}}'

A JSON or event-stream response containing server information means the server is speaking MCP. An HTTP error such as 400 or 406 still proves something is listening on the port, which is useful when you are isolating a connection problem. Connection refused means nothing is listening on port 3003.

Publish PageSift with a Localtonet HTTP tunnel

Once both local checks pass, you can make the service reachable from outside your network. Here is how the pieces fit together with Localtonet:

  • The Localtonet client runs on the PageSift machine and opens an outbound connection to a Localtonet relay server. Because the connection is outbound, no inbound port forwarding or firewall change is required.
  • Each HTTP tunnel points to one local IP address and port. For PageSift, that is 127.0.0.1:3003 for the MCP server, or 127.0.0.1:3002 for the HTTP API.
  • The tunnel receives a public HTTPS address. Depending on the URL type you choose, that is a random subdomain, a custom subdomain, or your own custom domain.
  • Creating a tunnel does not start it. A tunnel serves traffic only after you start it, and only while the client stays connected.
🔑 Device token Selects the token used by the Localtonet app on the PageSift machine, so the tunnel runs on that device. Tokens are device-specific. Keep yours private and never paste it into shared configs, tickets, or agent prompts.
🌍 Server region Selects the Localtonet server region for the tunnel. Our documentation recommends a region close to your device for lower latency. Pick from the options shown in your dashboard.
🎯 Local IP address and port The address the tunnel forwards to. Because the documented MCP address is 127.0.0.1, run the client on the same machine as PageSift. Both values can be changed later under Tunnel Details.
🔗 URL type Random subdomain, Custom subdomain, or Custom domain. A random subdomain needs nothing extra; the other two need account balance, and a custom domain also needs a domain added in DNS Manager.

Create and start the tunnel

The following sequence follows our current Localtonet HTTP tunnel documentation. Create one tunnel for the MCP server, and a second one only if remote clients also need the HTTP API.

1

Before you start: client connected, service running

The Localtonet client must be installed on the PageSift machine and connected with an AuthToken. If it is not, follow the Quick start linked from the HTTP tunnel documentation. PageSift must be running on a known port: 3003 for pagesift mcp http, or 3002 for the HTTP API.

2

Open the HTTP page

In the dashboard, open My Tunnels > HTTP and select Create HTTP Tunnel to open the form.

3

Choose the URL type

Random subdomain needs nothing extra and gives an address such as https://<random>.localto.net. Custom subdomain needs balance on your account and lets you type the name; letters, digits and hyphens are allowed. Custom domain needs balance and a domain that you added in DNS Manager.

4

Choose the device and the region

In Device token, select the token used by the Localtonet app on the PageSift machine. In Server region, choose a region close to that device for lower latency.

5

Enter the local address and create the tunnel

Set Domain to localto.net or one of your own domains. Fill in Subdomain only for Custom subdomain. Set Local IP address to 127.0.0.1 (the form also accepts an IPv4 or IPv6 address or localhost) and Local port to 3003 for MCP or 3002 for the API; any port from 1 to 65535 is accepted. Select Create tunnel. It appears under Your tunnels as Tunnel # followed by its ID.

6

Start the tunnel

Select the start button in the Actions column. When the tunnel runs, its address in the URL column becomes a link. If the Localtonet app for that token is offline, a dialog tells you so: start the app, or select Start anyway and the tunnel goes live when the app connects.

What you need to know about the public address

  • It is stable. An HTTP tunnel keeps its subdomain until you delete the tunnel. Stopping and starting does not change it. This matters for MCP because client configurations hardcode the server URL. Stop the tunnel when idle rather than deleting and recreating it, or every client config has to be updated.
  • It has no port number. The address is https:// followed by the host name in the URL column. Do not append :3003; the local port stays on your machine.
  • TLS ends at our server. Clients connect over HTTPS with a certificate that Localtonet provides and renews. From there the request travels through the tunnel to your device, and the app passes it to PageSift over plain HTTP. That is why PageSift does not need its own certificate. Leave Is SslStream? off, since that switch is for local services that themselves use HTTPS.
  • WebSocket connections pass through an HTTP tunnel.
  • Turn on Is Only Https? under Settings in the Tunnel settings panel. It redirects any http:// request to https://. While it is off, the address answers on both. We recommend it for PageSift, because requests can carry bearer tokens or target-site credentials.
  • Is HTTP/3 Active? is on for new tunnels. Turn it off only if a specific client has trouble with HTTP/3.
The warning page on the Free plan and non-browser clients

Our HTTP tunnel documentation includes a section titled "The warning page on the Free plan", which indicates that HTTP tunnels on the Free plan can show a warning page to visitors. A person in a browser can read a page like that and continue. An MCP client, curl, or a Firecrawl SDK cannot, so instead of the JSON or event stream it expects, it may receive an HTML page and fail with a parse or protocol error. We could not confirm the exact behavior or the documented way around it for this revision, so we do not describe a bypass here. Before connecting remote MCP or API clients on the Free plan, read that section of the HTTP tunnel documentation and apply the method it describes. Then test with curl -i and confirm the response is PageSift's, not HTML.

Connect a remote agent to the MCP server

The remote MCP URL is your tunnel's public address plus the /mcp path. Using a placeholder for the address your dashboard shows, a Claude Code configuration on a remote machine looks like this:

claude mcp add --transport http pagesift-remote https://YOUR-TUNNEL-ADDRESS/mcp

Other MCP clients that support remote HTTP servers take the same URL in their own configuration format. Test with a single, harmless call first, such as scraping example.com, before you give the agent larger tasks such as crawls.

Point Firecrawl or Jina Reader clients at the API tunnel

For the HTTP API tunnel on port 3002, test the public URL the same way you tested localhost:

curl https://YOUR-API-TUNNEL-ADDRESS/r/https://example.com

curl https://YOUR-API-TUNNEL-ADDRESS/v2/scrape \
  -H 'Authorization: Bearer sk-test' \
  -d '{"url":"https://example.com","formats":["markdown"]}'

If these return the same content you saw locally, existing Firecrawl or Jina Reader code can be switched to PageSift by changing its API base URL to the tunnel address, as the project describes. If they return an HTML page you did not expect, see the Free plan note above.

Related Localtonet workflows for AI agents

If your team uses McpNet Gateway to combine several MCP servers behind one endpoint, see our guide to exposing an MCP Gateway with Localtonet. If you want your AI coding assistant to create, start, and stop tunnels itself, see the Localtonet MCP Server. A plain HTTP tunnel, as described here, is all PageSift needs on its own.

Secure remote access to a self-hosted scraper

Illustration of an access boundary allowing an authorized agent through to PageSift while blocking an unknown client
Restrict who can reach the tunnel endpoint, since an open scraper can be used to fetch arbitrary pages.

A tunnel makes a local service reachable. It does not add authorization to PageSift itself, and it does not change what PageSift allows. Unless you add a control in front of it, whoever can send requests to your public PageSift URL can use every operation that endpoint exposes. Plan the exposure deliberately.

Know what an open endpoint allows

  • Outbound fetching from your network position. Every scrape and crawl is a request your machine makes. Abuse is attributed to your IP address, not to the caller.
  • Resource consumption. Crawls, OCR, and browser actions use CPU, memory, and bandwidth on your machine.
  • Model spending. If you configure a model for /v2/agent or the agent MCP tools, remote callers can trigger model usage billed to you.
  • Stored data. Job results and DataGraph history may contain content your agents fetched with credentials or session state.

Use the protections PageSift already has

PageSift documents private-network and DNS-rebinding guards on fetches. These are designed to stop requests from being steered at addresses inside your network, which is the classic server-side request forgery (SSRF) risk of any scraping service. The v1.4.2 release tightened this: configured proxy hostnames are exempt from private-IP checks only when establishing the proxy connection itself, and target URLs pointing at the proxy hostname still go through the normal SSRF checks. That release also isolates result caching by caller scope and bypasses shared caching when target-site credentials, session state, or browser actions are present. Unauthenticated requests that carry custom target headers, keepSession, or browser actions are placed in an isolated private graph scope. Those are good reasons to run 1.4.2 or newer if you expose the server, but they are defense in depth, not access control.

Add access control in front of PageSift

Because our evidence does not document how to configure API keys on PageSift's HTTP server, do not assume the Authorization header protects you. Our HTTP tunnel settings include several documented access and abuse controls, found in the Tunnel settings panel (the settings button in the Actions column). Their details are on the Access control, Single Sign-On, Web Application Firewall and Limits and expiration pages linked from the HTTP tunnel documentation.

Tunnel setting What it does Fit for PageSift clients
IP Restriction Controls which client IP addresses can access the tunnel The most transparent option for agents with fixed IPs, such as CI runners or a hosted agent with a known egress address. The client needs no changes.
Basic Authentication? Asks visitors for a username and password Works for curl and many HTTP SDKs. Whether a given MCP client can send Basic Auth credentials depends on the client, so test it.
SSO Providers Visitors sign in with one of your identity providers before they can open the tunnel Suited to people in browsers. Many programmatic MCP and API clients cannot complete an interactive sign-in; test your client before relying on it.
WAF button (Actions column) Opens WAF Setting for the Web Application Firewall and shows whether it is not configured, active or inactive An additional filtering layer for the public endpoint
Expiration Date, Speed Limits, Bandwidth Limit Stop the tunnel on a date, cap its speed, and cap its data Useful against scraper abuse: a leaked URL cannot run unbounded crawls through your connection indefinitely

We do not state plan availability for these settings here; check what your account shows in the Tunnel settings panel. Whichever controls you choose, you can also combine them with these approaches:

  • Configure PageSift's own authentication if your version supports it. Check the project's documentation for your release.
  • Place an authenticating reverse proxy between the tunnel and PageSift. Point the tunnel at the proxy port and let the proxy forward authenticated requests to 127.0.0.1:3002 or 127.0.0.1:3003. Confirm that your MCP client can send whatever credential the proxy requires.

In every case, verify the result from outside: send a request from an unauthorized client, or without credentials, to the public URL and confirm it is rejected before you share the address with any agent.

Operational hygiene

  • Bind Docker to 127.0.0.1 so only the tunnel path reaches the API, not your whole LAN.
  • Expose only the port your clients need. If agents only use MCP, do not create a tunnel for port 3002.
  • Turn on Is Only Https? so credentials never travel over plain HTTP on the public side.
  • Stop the tunnel when it is not in use. A stopped tunnel serves nothing, its address is kept, and you can start it again from the dashboard.
  • Treat the public URL as a credential-like secret. A random subdomain is hard to guess, but it is not authentication, and URLs leak through logs and chat history.
  • Do not put your Localtonet AuthToken, model API keys, or target-site credentials into agent prompts or shared MCP configs.
Scrape responsibly

Making a scraper reachable to more agents increases how much it fetches. Keep PageSift's robots.txt handling and per-host limits in place, set reasonable crawl limits, and respect the terms of the sites your agents access.

Routine operations: upgrades, monitoring and lifecycle

Upgrading PageSift

The v1.4.2 release notes state that it is a drop-in patch upgrade from 1.4.1 and 1.4.0, with no wire-breaking CLI, HTTP API, Python, Node.js, or MCP changes. For a Docker install, upgrading means pulling the new tag and recreating the container. These are standard Docker commands; replace the tag with the release you are moving to:

docker pull ghcr.io/yolow92/pagesift:1.4.2
docker stop pagesift
docker rm pagesift
docker run -d --name pagesift -p 127.0.0.1:3002:3002 ghcr.io/yolow92/pagesift:1.4.2

Remember that removing the container discards any state stored inside it unless you have mounted a volume, and our evidence does not document the in-container data path. For a Cargo install, running cargo install pagesift --locked again builds the newest published version. Cargo skips the build if the same version is already installed. After either upgrade, repeat the local checks from the verification section. If the local port is unchanged, the existing tunnel keeps working once the service is back, and its public address stays the same.

Changing ports without recreating the tunnel

If you move PageSift to another host port, for example remapping the container to 127.0.0.1:3012:3002 because 3002 is taken, you do not need a new tunnel. Open the Tunnel settings panel and change the local port (or local IP address) under Tunnel Details. The public address, and therefore every MCP and SDK configuration that uses it, stays unchanged.

Keeping the MCP server running

pagesift mcp http --port 3003 runs in the foreground of the terminal that started it. If you close that terminal or log out, the MCP server stops, and the tunnel starts returning errors because nothing is listening on the target port. For a long-lived setup, run it under your operating system's service manager or a terminal multiplexer. Our evidence does not include an official service unit file, so use your platform's standard approach.

Long requests and the HTTP Timeout setting

Scrapes of slow pages, OCR on large scanned PDFs, and synchronous crawls can take a long time to answer. Our HTTP tunnels have an HTTP Timeout setting that controls how long the server waits for a response from your local application, from 1 to 600 seconds. If long synchronous requests are cut off at the public endpoint while they complete locally, raise this value. For anything that can run for minutes, prefer asynchronous jobs: start a batch or crawl, then poll it with pagesift_poll_job or the equivalent API call, and cancel it with pagesift_cancel_job when it is no longer needed. That keeps each HTTP request short and load on your machine predictable.

Monitoring tunnel availability

If remote agents depend on the endpoint, you probably want to know when it goes offline. Our platform-wide Token and Tunnel webhooks can notify you when a token or tunnel in a selected Token Group changes to Connected or Disconnected. Each notification is a POST with a JSON body containing Id (the tunnel id or auth token), ActionDate, Type ("Token" or "Tunnel"), and Status ("Connected" or "Disconnected"). This tells you about the tunnel and client connection, not about whether the PageSift process behind it is healthy. Pair it with a periodic request to a cheap endpoint, such as /r/https://example.com on the API tunnel, if you need end-to-end checks.

Inspecting the public layer

The Tunnel settings panel also includes Request Log (inspect requests that reached the tunnel), Activity Log (review starts, stops and setting changes), and Tunnel Health (see the health checks). These show what happened on the public side of the tunnel, which PageSift's own logs cannot. Bandwidth Usage and Bandwidth Traffic show how much data the tunnel moved over time, a quick way to spot an agent, or an unwanted caller, crawling more than expected.

Troubleshooting PageSift and the tunnel

Work from the inside out: first confirm PageSift answers on localhost, then confirm the tunnel is running and receiving requests, then check the remote client. Most problems show up clearly at one of those three layers.

Symptom Likely cause What to do
docker run fails with a port allocation error Something else already uses port 3002 on the host Stop the other service, or change the host side of the mapping, for example -p 127.0.0.1:3012:3002, then use 3012 in curl and change the tunnel's local port under Tunnel Details
docker pull cannot find the image Typo in the image name or tag, or no network access to the registry Use ghcr.io/yolow92/pagesift:1.4.2 exactly, in lowercase, and confirm the tag exists on the releases page
cargo: command not found The Rust toolchain is not installed or not on PATH Install Rust with the official installer, open a new terminal, and check cargo --version
cargo install fails during compilation Missing system dependencies or an older Rust toolchain Update Rust and read the first error in the build output. Required system packages are not listed in our evidence, so check the project's docs for your version
pagesift: command not found after a successful install Cargo's bin directory is not on PATH Open a new shell, or add Cargo's bin directory to your PATH
Connection refused on localhost:3002 or :3003 The container or MCP process is not running, or it uses a different port Check docker ps and docker logs pagesift, or restart pagesift mcp http --port 3003
Local curl works, public URL fails The tunnel was created but not started, it was started with Start anyway and the app is still offline, or it points at the wrong port Confirm the tunnel shows as running, the device app is connected, and the local IP and port under Tunnel Details are 127.0.0.1 and the correct port
A remote MCP or API client receives an HTML page instead of JSON, on the Free plan Possibly the Free plan warning page described in our HTTP tunnel documentation; not confirmed for your case Inspect the body with curl -i, then follow the documented method in "The warning page on the Free plan" section of the HTTP tunnel documentation
Long scrape, OCR or crawl requests time out remotely but finish locally The request exceeds the tunnel's HTTP Timeout Raise HTTP Timeout (1 to 600 seconds), and prefer async batch or crawl jobs with polling over long synchronous requests
Remote MCP client cannot connect, but the URL loads something The /mcp path is missing, the client uses the wrong transport, or a port was appended to the URL Use the full URL ending in /mcp with no port number, and select the HTTP transport, not stdio
MCP works locally but rejects tunneled requests PageSift receives the tunnel hostname in the Host header. Host or origin validation in the MCP server is possible but not confirmed by our evidence Check PageSift's logs for the rejection reason. As a documented remedy to try, open Headers in the tunnel settings and add a request header named Host with the name the server expects, such as 127.0.0.1:3003. Also check PageSift's docs for allowed-host or origin settings in your version
Client gets an authentication prompt or 401 after you enabled access controls Basic Authentication or SSO is on and the client cannot provide credentials Confirm your client supports the method; for fixed-IP agents, use IP Restriction instead
A specific client fails to connect while others work Possible HTTP/3 incompatibility in that client Turn off Is HTTP/3 Active? and retest
Results contain warning codes or look incomplete Partial page, truncated file, or skipped scan, reported by design Read the warning, retry, or enable rendering or OCR as appropriate; do not treat warned output as complete

Isolating a problem layer by layer

When something fails remotely, run these from the PageSift machine to see which layer is broken:

# 1. Is the API listening locally?
curl -i localhost:3002/r/https://example.com

# 2. Is the MCP server listening locally? (any HTTP response means yes)
curl -i http://127.0.0.1:3003/mcp

# 3. Does the public URL reach the same service?
curl -i https://YOUR-API-TUNNEL-ADDRESS/r/https://example.com

If step 1 or 2 fails, fix PageSift first. If they succeed and step 3 fails, check the tunnel status and its local target in the Localtonet dashboard, then open Request Log to see whether the request reached the tunnel at all, Activity Log to see whether it was recently stopped or reconfigured, and Tunnel Health for its health checks. If the request appears in Request Log but the response is wrong, compare the body with your local result: HTML where you expected JSON points to the public layer, while a PageSift error points to the service. If all three steps succeed but your agent still fails, the problem is in the client configuration, usually the URL path, transport setting, or a missing credential required by an access control you added.

Frequently asked questions

Should I install PageSift with Docker or Cargo?

Use Docker if you mainly want the Firecrawl and Jina Reader HTTP API on port 3002 and do not want a Rust toolchain. Use Cargo if you want the CLI and the MCP server, including pagesift mcp http --port 3003. Many setups use both: the container for the API and the Cargo binary for MCP.

What is the difference between pagesift mcp and pagesift mcp http?

pagesift mcp runs the MCP server over stdio, so an agent on the same machine launches it as a child process. pagesift mcp http --port 3003 runs a shared HTTP MCP server at http://127.0.0.1:3003/mcp that several clients can connect to over the network. Only the HTTP variant can be published through an HTTP tunnel.

Can existing Firecrawl or Jina Reader code use PageSift?

The project states that it implements Firecrawl v1/v2 and Jina Reader endpoints, and that existing code can switch by changing the API URL. Point the base URL at http://localhost:3002 locally, or at your Localtonet tunnel address for remote clients, and test with the documented /v2/scrape and /r/ requests first.

Does the Bearer sk-test header secure my PageSift server?

Not by itself. sk-test is a placeholder from the project's example, and our evidence does not document how API key validation is configured. The release notes describe handling for unauthenticated HTTP requests, so assume access is open until you verify otherwise. Add a control such as IP Restriction or Basic Authentication on the tunnel, or an authenticating reverse proxy, before exposing the service.

Will my remote MCP URL change if I stop and start the tunnel?

No. An HTTP tunnel keeps its subdomain until you delete the tunnel, and stopping and starting does not change it. You can also change the local IP and port under Tunnel Details without affecting the public address. Only deleting the tunnel and creating a new one gives you a new address.

Do I need one Localtonet tunnel or two?

Each HTTP tunnel forwards to one local IP and port. If remote clients need only the MCP server, one tunnel to 127.0.0.1:3003 is enough. If they also need the HTTP API, create a second tunnel to 127.0.0.1:3002. Expose only what you use.

Why does my MCP client get HTML instead of JSON on the Free plan?

Our HTTP tunnel documentation has a section on a warning page shown on the Free plan. A browser user can get past a page like that, but non-browser clients such as MCP clients, curl and Firecrawl SDKs cannot. Follow the method documented in that section of the HTTP tunnel documentation, then confirm with curl -i that the public URL returns PageSift's response.

Does the remote endpoint stay online when my computer sleeps?

No. A Localtonet tunnel is available only while the client on that device is connected and the tunnel is running, and PageSift itself must also be running. If the machine sleeps, the process exits, or the client disconnects, remote requests fail until everything is back. Our Token and Tunnel webhooks can alert you to Connected and Disconnected changes.

Is a Localtonet HTTP tunnel the same as a VPN?

No. An HTTP tunnel publishes one local service at a public HTTPS address. It does not join devices to a private network. If you want PageSift reachable only between your own devices without a public URL, our VPN Manager, a private mesh VPN, is the feature built for that.

Which PageSift version should I run if I expose it remotely?

Use 1.4.2 or a newer tagged release. Version 1.4.2 is a drop-in patch from 1.4.0 and 1.4.1 that improves tenant isolation, result cache scoping, request bounds, and SSRF handling for proxy hostnames, all of which matter more once multiple remote clients share one server. Check the releases page for anything newer, and review its notes for port or endpoint changes.

Give your AI agents a reachable PageSift endpoint

Once PageSift answers on localhost, a Localtonet HTTP tunnel gives remote agents and Firecrawl-compatible clients a stable public HTTPS URL for it, without port forwarding or a public IP. Create a free account, connect the client on your PageSift machine, start your first tunnel to port 3003, and lock it down with IP Restriction or Basic Authentication before you share it.

Get Started Free →

Corrections & updates

Substantive changes approved by the Localtonet editorial team are listed transparently below.

Updated the Localtonet tunnel steps to current labels and added access control, Free plan, timeout and request log guidance for remote PageSift clients.

Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.

Support