Sponsored by Deepsite.site

Steel Puppeteer

Created By
MCP-Mirrora year ago
Mirror of
Content

Steel Puppeteer

A Model Context Protocol server that provides browser automation capabilities using Puppeteer and Steel. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.

Components

Tools

  • puppeteer_navigate

    • Navigate to any URL in the browser
    • Inputs:
      • url (string, required): URL to navigate to
      • timeout (number, optional, default: 60000): Navigation timeout in milliseconds
      • waitUntil (string, optional, default: "domcontentloaded"): When to consider navigation succeeded. Options: "load", "domcontentloaded", "networkidle0", "networkidle2"
  • puppeteer_screenshot

    • Capture screenshots of the entire page or specific elements
    • Inputs:
      • name (string, required): Name for the screenshot
      • selector (string, optional): CSS selector for element to screenshot
  • puppeteer_click

    • Click elements on the page
    • Input: selector (string, required): CSS selector for element to click
  • puppeteer_fill

    • Fill out input fields
    • Inputs:
      • selector (string, required): CSS selector for input field
      • value (string, required): Value to fill
  • puppeteer_select

    • Select an element with SELECT tag
    • Inputs:
      • selector (string, required): CSS selector for element to select
      • value (string, required): Value to select
  • puppeteer_hover

    • Hover elements on the page
    • Input: selector (string, required): CSS selector for element to hover
  • puppeteer_evaluate

    • Execute JavaScript in the browser console
    • Input: script (string, required): JavaScript code to execute
  • puppeteer_get_content

    • Extract content from the current page
    • Input: selector (string, optional): CSS selector to get content from specific elements. If not provided, returns whole page content
  • puppeteer_scroll

    • Scroll the page to trigger lazy-loading
    • Inputs:
      • scrollDelay (number, optional, default: 100): Delay between scrolls in milliseconds
      • maxScrolls (number, optional, default: 50): Maximum number of scrolls

Resources

The server provides access to two types of resources:

  1. Console Logs (console://logs)

    • Browser console output in text format
    • Includes all console messages from the browser
  2. Screenshots (screenshot://<name>)

    • PNG images of captured screenshots
    • Accessible via the screenshot name specified during capture

Key Features

  • Browser automation with Puppeteer
  • Steel integration for browser session management
  • Console log monitoring and capture
  • Screenshot capabilities
  • JavaScript execution
  • Basic web interaction (navigation, clicking, form filling)
  • Content extraction with token limit handling
  • Lazy-loading support through scrolling
  • Local and remote Steel instance support

Configuration

Claude Desktop Configuration

To use the Steel Puppeteer server with Claude Desktop, add the following configuration to your Claude Desktop config file (typically located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "steel-puppeteer": {
      "command": "node",
      "args": ["path/to/steel-puppeteer/dist/index.js"],
      "env": {
        "STEEL_LOCAL": "true"
      }
    }
  }
}

Replace "path/to/steel-puppeteer/dist/index.js" with the actual path to the compiled JavaScript file on your system.

Environment Variables

The Steel Puppeteer server can be configured using the following environment variables:

  • STEEL_LOCAL (optional, default: "false"): Set to "true" to use a local Steel instance instead of the cloud service.
  • STEEL_API_KEY (required only if STEEL_LOCAL is "false"): Your Steel API key for authentication when using the cloud service.
  • STEEL_URL (optional): The URL of your Steel instance if using a custom deployment.

Server Configuration

If you're running the Steel Puppeteer server directly (not through Claude Desktop), you can set these environment variables in your shell or create a .env file in the project root. Here's an example .env file for local usage:

STEEL_LOCAL=true

If you're using the Steel cloud service, your .env file would look like this:

STEEL_API_KEY=your-steel-api-key
STEEL_LOCAL=false

Running the Server

To start the Steel Puppeteer server:

  1. Install dependencies:

    npm install
    
  2. Build the project:

    npm run build
    
  3. Start the server:

    npm start
    
  4. Open Claude Desktop and browse away! The server will start and listen on the specified port (default: 3000).

Troubleshooting

  • If you encounter issues with Puppeteer, ensure that you have the necessary dependencies installed on your system. Refer to the Puppeteer troubleshooting guide for more information.
  • If using the Steel cloud service, make sure your Steel API key is valid and has the necessary permissions.
  • If using a local Steel instance, ensure it's running and accessible at the specified URL (if custom) or at the default local address.

For more detailed configuration options and advanced usage, refer to the Steel documentation and the Puppeteer API reference.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
ChatWiseThe second fastest AI chatbot™
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.