Skip to main content
Glama

Enhanced Web Scraper MCP Server

by JMRMEDEV
test-visual.js928 B
#!/usr/bin/env node import { WebScraperServer } from './server.js'; // Simple test for the visual comparison tools async function testVisualTools() { const server = new WebScraperServer(); try { console.log('Testing takeScreenshot...'); const screenshotResult = await server.takeScreenshot({ url: 'https://example.com' }); console.log('✅ Screenshot tool works'); console.log('Testing compareScreenshots...'); const comparisonResult = await server.compareScreenshots({ urlA: 'https://example.com', urlB: 'https://httpbin.org/html' }); console.log('✅ Comparison tool works'); console.log('Analysis preview:', comparisonResult.analysis.similarity); } catch (error) { console.error('❌ Test failed:', error.message); } } // Only run if this file is executed directly if (import.meta.url === `file://${process.argv[1]}`) { testVisualTools(); }

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/JMRMEDEV/amazon-q-web-scraper-mcp'

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