Skip to main content
Glama

Web Content MCP Server

basic-worker-example.js823 B
/** * Basic Cloudflare Worker with Browser Rendering binding * * This is a simple example of how to use the Browser Rendering binding * in a Cloudflare Worker. */ export default { async fetch(request, env, ctx) { // Get the URL from the request query parameters const url = new URL(request.url); const targetUrl = url.searchParams.get('url') || 'https://example.com'; // Create a response with information about the request const info = { url: targetUrl, timestamp: new Date().toISOString(), worker: { name: 'browser-rendering-example', environment: Object.keys(env), }, }; // Return the information as JSON return new Response(JSON.stringify(info, null, 2), { headers: { 'Content-Type': 'application/json' }, }); }, };

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/amotivv/cloudflare-browser-rendering'

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