Skip to main content
Glama
scrape.js613 B
import logger from "../core/logger.js"; import { contentFetcher } from "../services/contentFetcher.js"; export const scrapeTool = { name: "scrape_url_content", description: "Scrape text content from a specific URL", inputSchema: { type: "object", properties: { url: { type: "string", description: "URL to scrape" }, }, required: ["url"], }, execute: async (args) => { const result = await contentFetcher.fetchContent(args.url); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }, };

Latest Blog Posts

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/NosytLabs/presearch-search-api-mcp'

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