Skip to main content

Local stdio MCP proxy for the remote Drug MCP streamable-http service.

Project description

Yaozh MCP Stdio Proxy

Local stdio MCP proxy for the remote Drug MCP streamable-http service.

It is intended for MCP clients that only support stdio. The proxy runs locally and forwards MCP tool calls to the remote HTTP MCP endpoint.

MCP client
  -> local stdio proxy
  -> remote streamable-http MCP service

The proxy does not store API keys or results. Authentication, permissions, quota and audit logs are still handled by the remote MCP service.

Install And Run With uvx

After publishing this package to PyPI:

uvx yaozh-mcp-stdio --url http://<server-ip>/mcp --api-key <token>

Recommended usage with environment variables:

MCP_HTTP_URL="http://<server-ip>/mcp" \
MCP_API_KEY="<token>" \
uvx yaozh-mcp-stdio

Windows PowerShell:

$env:MCP_HTTP_URL="http://<server-ip>/mcp"
$env:MCP_API_KEY="<token>"
uvx yaozh-mcp-stdio

MCP Client Config

Pass token by environment variables:

{
  "mcpServers": {
    "drug-mcp": {
      "command": "uvx",
      "args": [
        "yaozh-mcp-stdio"
      ],
      "env": {
        "MCP_HTTP_URL": "http://<server-ip>/mcp",
        "MCP_API_KEY": "<token>"
      }
    }
  }
}

Or pass token by arguments:

{
  "mcpServers": {
    "drug-mcp": {
      "command": "uvx",
      "args": [
        "yaozh-mcp-stdio",
        "--url",
        "http://<server-ip>/mcp",
        "--api-key",
        "<token>"
      ]
    }
  }
}

Options

yaozh-mcp-stdio --help
--url       Remote streamable-http MCP URL. Default reads MCP_HTTP_URL.
--api-key   Bearer token. Default reads MCP_API_KEY.
--timeout   Remote request timeout in seconds. Default reads MCP_PROXY_TIMEOUT or 120.

Local Development

Install editable:

pip install -e .
yaozh-mcp-stdio --url http://127.0.0.1/mcp --api-key <token>

Build package:

python -m pip install --upgrade build twine
python -m build
twine check dist/*

Publish to TestPyPI:

twine upload --repository testpypi dist/*

Publish to PyPI:

twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yaozh_mcp_stdio-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yaozh_mcp_stdio-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file yaozh_mcp_stdio-0.1.0.tar.gz.

File metadata

  • Download URL: yaozh_mcp_stdio-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for yaozh_mcp_stdio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fa8db6f23550f5380dc73531177d69868124635b0cd24550e0363875ddb2d89f
MD5 cff354600112046be835bf90f088fdcb
BLAKE2b-256 f24a346c9a7f9343b507aaa1690a7e98f26b73eb5458cd4033a83651092b2b7b

See more details on using hashes here.

File details

Details for the file yaozh_mcp_stdio-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yaozh_mcp_stdio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0de9f6902956f60567846e5dbc71a97270e60f2c756087b117de293cae6ea160
MD5 3b6de1dbd97abdcb124633a5ecc3dda0
BLAKE2b-256 eff0642cf5e446d14a80f5acb276e489ecf64c8971a95134619be98255ecdda8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page