Skip to main content
Glama

Scrapeless MCP Server

scrapeMarkdown.ts1.02 kB
import { defineTool, wrapMcpResponse } from "../utils.js"; import z from "zod"; export const scrapeMarkdown = defineTool({ name: "scrape_markdown", description: `Scrape a URL and return its content as Markdown. Restrictions: Best for articles, blog posts, and other text-heavy pages. Valid: Scrape a news article to get its readable content. Invalid: Scrape a complex web application dashboard.`, inputSchema: { url: z.string().url().describe("target URL"), }, handle: async (params, client) => { return wrapMcpResponse(() => client.universal.scrape({ actor: "unlocker.webunlocker", input: { url: params.url, redirect: true, jsRender: { enabled: true, headless: true, waitUntil: "domcontentloaded", instructions: [], block: { resources: [], urls: [] }, response: { type: "markdown", options: { selector: "" } }, }, }, }) ); }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/scrapeless-ai/scrapeless-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server