Markdown Web Scraper API
Extracts the content from any URL and returns it in clean, optimized Markdown for LLMs. Supports standalone monetization via Dodo Payments (HTTP 402).
README
Markdown Scraper API (MCP Enabled)
🤖 FOR LLMs / AGENTS: This README acts as the API Specification and System Prompt.
This is a serverless Web Scraper API built with Node.js and Hono, deployed to Cloudflare Workers. It uses the r.jina.ai engine to bypass captchas and extract clean Markdown from any given URL.
🧠System Architecture & Context Engineering
- File Map: Always read
CODEBASE.mdto understand file dependencies and system routing before modifying code. - Session Memory: Always read and update
STATE.mdat the beginning and end of each session to maintain context across chats.
📦 Installation & Usage
This is a remote Serverless API, but you can use npx to test the connection and get the endpoint details for your MCP client (like Claude Desktop or Cursor):
npx api_scraper_markdown
📚 Read the Full Integration Guide for Cursor and Claude Desktop
📡 API Specification
1. GET /mcp/manifest (Discovery)
Returns the Model Context Protocol (MCP) JSON manifest. Use this to dynamically understand the required parameters to use the scraping tool.
2. POST /scrape (Action)
Requires Authentication: Authorization: Bearer <token>
Este endpoint utiliza o protocolo HTTP 402 Payment Required.
- Se você não fornecer um token ou o token não tiver saldo, a API retornará um erro 402.
- A resposta do erro 402 conterá uma
paymentUrl(Dodo Payments) onde você pode adquirir créditos. - Após o pagamento, você receberá um token que deve ser enviado no header
Authorization.
Request Body:
{
"url": "https://example.com"
}
Success Response (200 OK):
{
"success": true,
"data": {
"title": "Page Title",
"url": "https://example.com",
"content": "# Markdown extracted..."
}
}
🚀 How to Run Locally
# Start the local Cloudflare dev server
npm run dev
For generating/synchronizing types based on your Worker configuration run:
npm run cf-typegen
Pass the CloudflareBindings as generics when instantiation Hono:
// src/index.ts
const app = new Hono<{ Bindings: CloudflareBindings }>()
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.