About agent-token-stripper
Agent Token Stripper is an MCP server that removes webpage markup and layout clutter, returning plain text for LLM context windows. It supports x402 micropayments on Base L2 for requests.
Key features
- 01Converts webpages to plain text
- 02Removes HTML, CSS, and scripts
- 03Reduces content sent to LLMs
- 04Browser-style User-Agent headers
- 05Eight-second fetch timeout
- 06x402 payments in USDC on Base L2
Use cases
- 01Preparing webpage text for an agent
- 02Reducing webpage content in LLM context
- 03Fetching pages that may reject basic scraping headers
MCP support
It provides webpage extraction as an MCP tool. The README shows an HTTP MCP endpoint and describes x402 payments for requests.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEAgent Token Stripper (MCP Server + x402)
An autonomous Model Context Protocol (MCP) tool that strips HTML, CSS, scripts, and layout bloat from raw webpages. It converts bloated web traffic into clean, token-dense plain text before feeding it to LLM context windows, cutting API usage costs by up to 80%.
Monetized via native machine-to-machine x402 micro-payments ($0.002 USDC per request on Base L2).
Key Features
- Context Efficiency: Strips
<script>,<style>,<nav>,<header>, and HTML tags, saving up to 15,000+ unnecessary tokens per web page request. - x402 Native Settlement: Autonomous agents execute payments directly on-chain without human credit cards or API keys.
- Anti-Blocking User-Agent: Spoofs clean browser headers to reduce
403 Forbiddenscraping blocks on target URLs. - Strict Timeout Control: Aborts target fetches after 8 seconds to prevent agent pipeline timeouts.
Quick Setup for Claude
1. Claude Code CLI
Add the tool directly to your Claude Code CLI with a single command:
claude mcp add --transport http agent-token-stripper [https://gold-mind-max.vercel.app/api/extract](https://gold-mind-max.vercel.app/api/extract) --scope user
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.