Back to Home
seanepping icon

mcp-cross

Verified Safe

by seanepping

Overview

Acts as a cross-platform bridge for Model Context Protocol (MCP) servers, facilitating seamless stdio communication and path translation between different environments, especially Windows and WSL2, and providing an HTTP proxy mode for accessing HTTP-based MCP servers with environment variable expansion.

Installation

Run Command
npx mcp-cross -- node example-server.js

Environment Variables

  • MCP_CROSS_DEBUG

Security Notes

The project demonstrates a strong focus on security, particularly in handling shell command execution and environment variable propagation across Windows and WSL. Key measures include robust argument escaping for `wsl.exe` and login shells, a WSL runner script (`wsl-runner.sh`) that sanitizes the PATH to prevent unintended Windows binary execution, and careful handling of environment variables via `WSLENV` with a Windows environment variable blacklist. Header parsing includes validation against CRLF injection, and sensitive header values are masked in debug logs. The HTTP proxy mode also warns against using insecure HTTP for non-localhost endpoints. There are no apparent hardcoded secrets or malicious patterns.

Similar Servers

Stats

Interest Score31
Security Score9
Cost ClassLow
Avg Tokens200
Stars1
Forks0
Last Update2025-12-05

Tags

cross-platformwslbridgestdiomcpai-toolingnode.js