3,400+ MCP servers ready to use
Vinkius

ScreenshotAPI MCP Server for Mastra AIGive Mastra AI instant access to 12 tools to Capture Clean Screenshot No Ads, Capture Dark Mode Screenshot, Capture Delayed Screenshot, and more

Built by Vinkius GDPR 12 Tools SDK

Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect ScreenshotAPI through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.

Ask AI about this App Connector for Mastra AI

The ScreenshotAPI app connector for Mastra AI is a standout in the Industry Titans category — giving your AI agent 12 tools to work with, ready to go from day one.

Vinkius delivers Streamable HTTP and SSE to any MCP client

typescript
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";

async function main() {
  // Your Vinkius token. get it at cloud.vinkius.com
  const mcpClient = await createMCPClient({
    servers: {
      "screenshotapi": {
        url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
      },
    },
  });

  const tools = await mcpClient.getTools();
  const agent = new Agent({
    name: "ScreenshotAPI Agent",
    instructions:
      "You help users interact with ScreenshotAPI " +
      "using 12 tools.",
    model: openai("gpt-4o"),
    tools,
  });

  const result = await agent.generate(
    "What can I do with ScreenshotAPI?"
  );
  console.log(result.text);
}

main();
ScreenshotAPI
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

About ScreenshotAPI MCP Server

Connect your ScreenshotAPI.net account to any AI agent and take full control of your website rendering and visual orchestration through natural conversation. ScreenshotAPI provides a high-performance API for capturing pixel-perfect screenshots, generating PDFs, and simulating various devices directly from your chat interface.

Mastra's agent abstraction provides a clean separation between LLM logic and ScreenshotAPI tool infrastructure. Connect 12 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.

What you can do

  • Visual Orchestration — Capture high-quality screenshots of any URL with support for lazy-loading and dynamic content programmatically.
  • Full-Page & PDF Intelligence — Generate comprehensive full-page captures or professional PDF documents from web pages directly from the AI interface.
  • Mobile & Device Emulation — Simulate specific devices (e.g., iPhone, Android) and viewports to monitor responsive designs via natural language.
  • Stealth & Ad-Block Control — Automatically block ads and cookie banners to ensure clean visual results without manual intervention.
  • Operational Monitoring — Track system health and manage rendering options like dark mode and custom CSS injection using simple AI commands.

The ScreenshotAPI MCP Server exposes 12 tools through the Vinkius. Connect it to Mastra AI in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.

All 12 ScreenshotAPI tools available for Mastra AI

When Mastra AI connects to ScreenshotAPI through Vinkius, your AI agent gets direct access to every tool listed below — spanning screenshotapi, website-screenshot, pdf-generation, and more. Every call is secured with network, filesystem, subprocess, and code evaluation entitlements inside a sandboxed runtime. Beyond a simple connection, you get a full AI Gateway with real-time visibility into agent activity, enterprise governance, and optimized token usage.

capture_clean_screenshot_no_ads

Capture screenshot without ads or cookies

capture_dark_mode_screenshot

Capture screenshot in dark mode

capture_delayed_screenshot

Useful for lazy-loading elements. Capture screenshot after a delay

capture_full_length_screenshot

Capture the entire length of a webpage

capture_mobile_view_screenshot

Capture a screenshot using a mobile viewport

capture_new_screenshot_no_cache

Force a fresh screenshot bypass cache

capture_specific_element

Capture a screenshot of a specific CSS element

capture_webp_format_screenshot

Capture screenshot in WebP format

capture_website_screenshot

Returns a hosted image link. Capture a standard screenshot of a URL

check_api_health

net service. Verify Screenshot API status

convert_webpage_to_pdf

Save a webpage as a PDF file

get_api_quota_info

Get account API usage information

Connect ScreenshotAPI to Mastra AI via MCP

Follow these steps to wire ScreenshotAPI into Mastra AI. The entire setup takes under two minutes — your credentials stay safe behind the Vinkius.

01

Install dependencies

Run npm install @mastra/core @mastra/mcp @ai-sdk/openai
02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token
03

Run the agent

Save to agent.ts and run with npx tsx agent.ts
04

Explore tools

Mastra discovers 12 tools from ScreenshotAPI via MCP

Why Use Mastra AI with the ScreenshotAPI MCP Server

Mastra AI provides unique advantages when paired with ScreenshotAPI through the Model Context Protocol.

01

Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add ScreenshotAPI without touching business code

02

Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation

03

TypeScript-native: full type inference for every ScreenshotAPI tool response with IDE autocomplete and compile-time checks

04

One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure

ScreenshotAPI + Mastra AI Use Cases

Practical scenarios where Mastra AI combined with the ScreenshotAPI MCP Server delivers measurable value.

01

Automated workflows: build multi-step agents that query ScreenshotAPI, process results, and trigger downstream actions in a typed pipeline

02

SaaS integrations: embed ScreenshotAPI as a first-class tool in your product's AI features with Mastra's clean agent API

03

Background jobs: schedule Mastra agents to query ScreenshotAPI on a cron and store results in your database automatically

04

Multi-agent systems: create specialist agents that collaborate using ScreenshotAPI tools alongside other MCP servers

Example Prompts for ScreenshotAPI in Mastra AI

Ready-to-use prompts you can give your Mastra AI agent to start working with ScreenshotAPI immediately.

01

"Take a clean mobile screenshot of the Apple homepage (https://www.apple.com) without any cookie banners or ads."

02

"Capture a full-length screenshot of the Stripe pricing page (https://stripe.com/pricing) to check their new tier layout."

03

"Generate a professional PDF export of the latest Y Combinator blog post at https://blog.ycombinator.com/yc-top-companies-2024."

Troubleshooting ScreenshotAPI MCP Server with Mastra AI

Common issues when connecting ScreenshotAPI to Mastra AI through the Vinkius, and how to resolve them.

01

createMCPClient not exported

Install: npm install @mastra/mcp

ScreenshotAPI + Mastra AI FAQ

Common questions about integrating ScreenshotAPI MCP Server with Mastra AI.

01

How does Mastra AI connect to MCP servers?

Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
02

Can Mastra agents use tools from multiple servers?

Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
03

Does Mastra support workflow orchestration?

Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.