
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
mcp-http-to-stdio
Advanced tools
Bridge utility enabling Claude Desktop to connect to HTTP-based MCP servers via stdio transport
A Python bridge utility that enables Claude Desktop to connect to HTTP-based MCP (Model Context Protocol) servers via stdio transport.
Claude Desktop uses stdio (stdin/stdout) to communicate with MCP servers, but many MCP servers expose HTTP endpoints. This bridge translates between the two protocols, allowing Claude Desktop to use HTTP-based MCP servers.
Architecture:
Claude Desktop (stdio/JSON-RPC) ←→ mcp-http-to-stdio (bridge) ←→ HTTP MCP Server
pip install mcp-http-to-stdio
This installs the package globally and makes the mcp-http-to-stdio command available system-wide.
git clone https://github.com/your-org/agentic-enterprise.git
cd agentic-enterprise/packages/mcp-http-to-stdio
pip install -e .
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"my-http-mcp-server": {
"command": "mcp-http-to-stdio",
"args": [
"--url",
"http://localhost:8080/mcp"
],
"env": {
"AUTH_TOKEN": "your-auth-token-here"
}
}
}
}
{
"mcpServers": {
"remote-mcp-server": {
"command": "mcp-http-to-stdio",
"args": [
"--url",
"https://mcp-server.example.com/mcp"
],
"env": {
"AUTH_TOKEN": "your-auth-token-here"
}
}
}
}
{
"mcpServers": {
"my-http-mcp-server": {
"command": "mcp-http-to-stdio",
"args": [
"--url",
"http://localhost:8080/mcp",
"--timeout",
"600"
],
"env": {
"AUTH_TOKEN": "your-auth-token-here"
}
}
}
}
mcp-http-to-stdio --help
--url: HTTP MCP server endpoint URL (e.g., http://localhost:8080/mcp)--share-key: Authentication key (alternative to environment variable)--timeout: Request timeout in seconds (default: 300 = 5 minutes)Authentication tokens can be passed via:
env section of Claude Desktop config--share-key flagThe bridge adds the authentication token to the x-ally-share-key HTTP header when making requests to the MCP server.
pip install mcp-http-to-stdioLogs are written to two locations:
mcp_http_to_stdio.log (in the current directory)# Follow log file
tail -f mcp_http_to_stdio.log
# View Claude Desktop logs
# Enable developer mode in Claude Desktop settings
# Open developer console and look for MCP-related messages
Cause: HTTP MCP server is not running or URL is incorrect
Solution:
curl http://localhost:8080/mcpCause: Authentication token is missing, incorrect, or expired
Solution:
env sectionCause: Configuration file is malformed or in wrong location
Solution:
Cause: MCP server queries can take time, especially for complex operations
Expected behavior:
The bridge logs warnings for requests taking longer than 10 seconds.
The bridge supports all standard MCP JSON-RPC methods:
initialize: Protocol handshaketools/list: List available toolstools/call: Execute a toolPOST /mcp HTTP/1.1
Host: localhost:8080
x-ally-share-key: <auth-token>
Content-Type: application/json
{"jsonrpc": "2.0", "method": "tools/list", "id": 1}
The bridge uses optimized HTTP connection pooling:
This bridge was originally created for MyAlly's workspace sharing feature. Here's an example configuration:
{
"mcpServers": {
"myally-workspace": {
"command": "mcp-http-to-stdio",
"args": [
"--url",
"http://localhost:8081/share/mcp"
],
"env": {
"ALLY_SHARE_KEY": "ally_share_xxxxxxxxxxxxxxxx"
}
}
}
}
For MyAlly-specific documentation, see the MyAlly repository.
Contributions are welcome! This is a simple bridge utility, but improvements to error handling, logging, or protocol support are always appreciated.
MIT License - See LICENSE file for details
FAQs
Bridge utility enabling Claude Desktop to connect to HTTP-based MCP servers via stdio transport
We found that mcp-http-to-stdio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.