Wrap MCP servers with a WebSocket.
Project description
ws-mcp
Wrap MCP stdio servers with a WebSocket. For use with llm-chat.
Prerequisites
- uv
Usage
# Example using fetch
uvx ws-mcp --command "uvx mcp-server-fetch" --port 3002
# Example using wcgw
## On macOS
uvx ws-mcp --command "uvx --from wcgw@latest --python 3.12 wcgw_mcp" --port 3001
## On Linux (or if you have issues on macOS with wcgw)
cd /tmp
git clone https://github.com/nick1udwig/wcgw.git
cd wcgw
git submodule update --init --recursive
git checkout hf/fix-wcgw-on-ubuntu
cd ..
uvx ws-mcp --command "uvx --from /tmp/wcgw --with /tmp/wcgw/src/mcp_wcgw --python 3.12 wcgw_mcp" --port 3001
# Example using Brave search
export BRAVE_API_KEY=YOUR_API_KEY_HERE
uvx ws-mcp --env BRAVE_API_KEY=$BRAVE_API_KEY --command "npx -y @modelcontextprotocol/server-brave-search" --port 3003
# Or, with a .env file:
uvx ws-mcp --env-file path/to/.env --command "npx -y @modelcontextprotocol/server-brave-search" --port 3003
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ws_mcp-0.1.2.tar.gz
(12.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ws_mcp-0.1.2.tar.gz.
File metadata
- Download URL: ws_mcp-0.1.2.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d88b26300f0af55df8ef8c5aea7c731e22dc1a630d13fc88b144415af0a3171
|
|
| MD5 |
af48bc4803bad1f7f24a9d05d2e6f1a5
|
|
| BLAKE2b-256 |
fa0a0202630577f3e2cf0dcc79e795b5c2784a14680402c2afd005b1a4df6c13
|
File details
Details for the file ws_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ws_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd6c39b8a080c7b1b445a848198cd7b2828d97a842d9bfc34e84211ee36b8829
|
|
| MD5 |
b605ac2a5b29331eddb791b1627491db
|
|
| BLAKE2b-256 |
0952b5b04c00526c66faaef38c1c469d8badb0d6d82d191b6ade554cc43182c7
|