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
# `--command` can be supplied multiple times!
# Example serving multiple servers at once:
uvx ws-mcp --env-file path/to/.env --command "npx -y @modelcontextprotocol/server-brave-search" --command "uvx mcp-server-fetch" --port 3004
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.3.tar.gz
(13.5 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.3.tar.gz.
File metadata
- Download URL: ws_mcp-0.1.3.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1b2f02b88847120ce9a26f32a5a902ebb6b451da2b55bdcc06b85f4cc74dc5a
|
|
| MD5 |
8553704a69fa2b871bf01b38c8820a35
|
|
| BLAKE2b-256 |
83f51fd74e24f4f4f1bf097ce46ba844c79cfca1f7afb438b02bcac5c38781f5
|
File details
Details for the file ws_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ws_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4adbaac1762ffa477cb32ef7ceb2c05c78bbf28b566c035beda7626ee697ec3f
|
|
| MD5 |
e1e3bad5679fac639a68b187ee7d9ecd
|
|
| BLAKE2b-256 |
10cb9e1256a6672343b44d158acabf394e52c678f0af5fdcaf4e09addf7560ed
|