Skip to main content
Glama

MCP Fetch

by matiasngf

exec-page

Execute custom JavaScript on web pages using Puppeteer's page API for automation, testing, or scraping. Input page ID and code to interact with or retrieve data dynamically.

Instructions

Execute arbitrary JavaScript code on a page with access to Puppeteer's page API

Input Schema

NameRequiredDescriptionDefault
pageIdYesThe ID of the page to execute code on
sourceYesJavaScript code to execute on the page. The code has access to the 'page' object and should return a value

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "pageId": { "description": "The ID of the page to execute code on", "type": "string" }, "source": { "description": "JavaScript code to execute on the page. The code has access to the 'page' object and should return a value", "type": "string" } }, "required": [ "pageId", "source" ], "type": "object" }
Install Server

Other Tools from MCP Fetch

Related Tools

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/matiasngf/mcp-fetch'

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