October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Pass Environment Variables to a Website Screenshot MCP Server

For a local screenshot MCP server, pass documented credentials in the MCP client’s env setting. Hosted servers may use headers or OAuth instead.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a screenshot MCP server running locally over stdio, put the server’s required variables in the MCP client’s server configuration under env. Use the exact names the server documents. In VS Code, you can also load values from an envFile or prompt for a masked secret. A hosted MCP server may use an HTTP authorization header or OAuth instead, so first identify whether your setup is local or remote.

Choose the right authentication pattern

Environment variables are for a process the MCP client launches, typically a local server using stdio. The client starts the process and supplies its environment. A hosted server runs remotely, so its credentials are configured through the client’s remote-server and authentication features instead; it may not accept local environment variables at all.

As an Amazon Associate I earn from qualifying purchases.

  • Local stdio: configure the server’s command and arguments, then pass its required variables in env.
  • Hosted endpoint: follow that provider’s documented transport and authentication method, such as an Authorization header or browser OAuth.

Do not assume variable names or credentials are interchangeable between screenshot servers. Confirm which keys are required, whether any are optional, and whether the server reads them at startup.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure a local stdio server

The configuration file and outer structure depend on the MCP client. The following is a generic VS Code-style example, not a verified configuration for any unnamed package. Replace the command, package, and variable name with the values in your server’s documentation.

#1 Best Overall
Dell PowerEdge R730xd Server 24B SFF 2U, 2X Intel Xeon E5-2690 v4 2.6Ghz (28-cores Total), 128GB DDR4 RAM, 4X 1.2TB 10K SAS 2.5” 12Gb/s HDD, H730P 2GB RAID, NIC 10Gb + I350 1Gb (Renewed)
  • Dell PowerEdge R730xd 24B SFF 2U Server
  • 2x Intel Xeon E5-2690 v4 2.6Ghz 14-Core (28-cores Total)
  • 128GB DDR4 RAM – 4x 1.2TB 10K SAS 2.5” 12Gb/s
  • Dell H730P mini 2GB 12Gb/s RAID
  • 2x 750W PSU - 2x 10Gb SFP+ 2x 1Gb (RJ45) NIC
{
  "servers": {
    "screenshotServer": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "your-screenshot-mcp-package"],
      "env": {
        "SERVICE_API_KEY": "YOUR_KEY"
      }
    }
  }
}

VS Code’s reference documents command, args, env, and envFile for stdio entries. It supports workspace configuration in .vscode/mcp.json and portable configuration in .mcp.json; choose the scope appropriate to where you want the server available. See the VS Code MCP configuration reference.

Example: Screenshot Scout

Screenshot Scout’s local npm server requires SCREENSHOTSCOUT_ACCESS_KEY. It uses SCREENSHOTSCOUT_SECRET_KEY only when signed requests are enabled. Its Claude Desktop example is:

Rank #2
Dell PowerEdge R440 Server, Intel Xeon Silver 4112 2.60GHz, 16GB DDR4 RAM, 32TB (4X 8TB SAS 7.2K 12 GB/s) Storage, PERC H740P RAID, Dual 550W PSU (Renewed)
  • PROCESSOR & MEMORY: Powered by an Intel Xeon Silver 4112 2.60GHz CPU and 16GB DDR4 RAM for reliable server-grade performance
  • STORAGE CAPACITY: Equipped with 32TB total storage via four 8TB 12Gb/s SAS hard drives for high-throughput data handling
  • RAID CONTROLLER: Features the PERC H740P RAID controller, enabling advanced data protection and flexible storage configuration
  • POWER SUPPLY: Dual 550W redundant power supply units ensure continuous uptime and protection against single power source failure
  • FLEXIBLE DEPLOYMENT: Ships with no OS installed, allowing administrators to install their preferred operating system or hypervisor
{
  "mcpServers": {
    "screenshotscout": {
      "command": "npx",
      "args": ["-y", "@screenshotscout/mcp"],
      "env": {
        "SCREENSHOTSCOUT_ACCESS_KEY": "YOUR_ACCESS_KEY"
      }
    }
  }
}

Add the secret-key variable only if your account and server configuration require signed requests. The variable names above belong to Screenshot Scout; do not copy them into another server’s configuration unless its documentation specifies them. Screenshot Scout also provides separate examples for Cursor, Claude Code, and VS Code in its MCP server guide.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep secrets out of shared configuration

A literal key in a project configuration can be exposed if that file is shared or committed. Prefer the client’s secret-input or environment-file feature where available, and restrict access to any file containing credentials. Never put credentials in a URL or prompt.

VS Code masked input

VS Code supports an inputs entry of type promptString with password set to true. The server entry can then refer to the prompted value using ${input:variable-id} under env. VS Code says the value is securely stored for later use after the first prompt. Alternatively, use envFile to load additional values. Follow the configuration reference for the exact JSON structure and supported scope.

Environment file considerations

An envFile is useful when you want values outside the main MCP configuration, but it is still a credential-bearing file: keep it private and ensure it is not inadvertently included in a shared repository. Check your client’s documentation for the accepted file format and path rules.

Rank #4
Sale
StarTech 1-Port USB 2.0 Network Print Server, 10/100Mbps, TAA (PM1115U2)
  • WIRED NETWORK USB PRINT SERVER: Connect a single USB 2.0 printer to a wired Ethernet LAN (RJ45); 10Base-T, 100Base-TX auto-sensing to ensure a reliable connection, letting you print from any network computer, across the office or over the Internet
  • MANUAL NETWORK SETUP REQUIRED: Configuration via web interface (static IP or DHCP) using LPR queue “LP1"; Not plug-and-play, requires intermediate network knowledge for installation; Access our online FAQs for additional helpful tips and instructions
  • USB PRINTER COMPATIBILITY: Works with most USB 2.0 printers using standard drivers; Not compatible with USB hubs, multi-function printers with proprietary drivers, or printers requiring full bi-directional communication
  • COMPATIBILITY: The USB to Ethernet print server is USB 2.0 compliant and works with macOS and Windows; It also supports LPR network printing and Bonjour Print Services for broad compatibility; Included software is compatible with Windows only
  • PRINT FROM ANYWHERE: Print from any computer connected to the Ethernet; This print server doesn’t require a wired connection to a computer, however it must be connected to your networking device (eg. router or switch) with the included RJ45 network cable

Hosted screenshot MCP servers use different auth

Do not add a local env object to a remote endpoint unless the client or provider specifically documents that pattern. For example, Screenshot Scout’s hosted endpoint uses a Bearer Authorization header and says not to send the secret key to that endpoint. ScreenshotOne describes a hosted MCP server at https://mcp.screenshotone.com that connects through browser OAuth, with no local process to run or API key to paste into the client.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use the provider’s instructions for the endpoint URL, transport, and authentication supported by your MCP client. See the relevant vendor documentation for Screenshot Scout or ScreenshotOne.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Verify the configuration and diagnose failures

  1. Check the server’s credential requirements. Confirm exact variable spelling, whether each value is required, and whether it is read at startup.
  2. Check the client’s configuration location and schema. Workspace and user-level files differ, and a server’s example for one client may not be valid in another.
  3. Restart or reconnect the server. A local process may not see changed variables until it is relaunched. Screenshot Scout specifically instructs Claude Desktop users to restart after saving its local configuration.
  4. Inspect server state in VS Code. Run MCP: List Servers to inspect or manage configured servers.
  5. Keep stdio processes attached. For Docker-based stdio servers in VS Code, do not detach the container with -d; the process must remain in the foreground to communicate over stdio.
Symptom Likely cause What to check
Server reports a missing or invalid key The variable name is misspelled, the value is not available to the process, or the wrong key was supplied. Compare the configured name and required/optional status with the server’s own docs; confirm the client is launching the expected entry.
Changes to a key have no effect The running server process has not reloaded its environment. Restart or reconnect the MCP server in the client.
A local server does not connect over stdio The process may be exiting or running detached. Check the command and arguments, and for VS Code Docker setups keep the container in the foreground rather than using -d.
A hosted endpoint rejects credentials The endpoint expects a different authentication method or credential than the local server. Follow the provider’s hosted-endpoint instructions; do not put secrets in URLs or prompts.

Or skip the browser setup

If your goal is simply to get website screenshots, ScreenshotNeo offers a one-request screenshot API as well as an MCP server for AI agents. Its API can return a PNG, JPEG, WebP, or PDF; the code below saves the response as WebP. See the ScreenshotNeo documentation for API and MCP setup details.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response identifies the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.