An MCP stdio to HTTP SSE transport gateway with example server and MCP client
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add gateway-server-and-client -- npx mcp-server-and-gw http://localhost:8808/~/.codex/config.toml
[mcp_servers.gateway-server-and-client]
command = "npx"
args = ["mcp-server-and-gw", "http://localhost:8808/"]
# codex mcp add gateway-server-and-client -- npx mcp-server-and-gw http://localhost:8808/~/.cursor/mcp.json
{
"mcpServers": {
"gateway-server-and-client": {
"command": "npx",
"args": [
"mcp-server-and-gw",
"http://localhost:8808/"
]
}
}
}.vscode/mcp.json
{
"servers": {
"gateway-server-and-client": {
"type": "stdio",
"command": "npx",
"args": [
"mcp-server-and-gw",
"http://localhost:8808/"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"gateway-server-and-client": {
"command": "npx",
"args": [
"mcp-server-and-gw",
"http://localhost:8808/"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"gateway-server-and-client": {
"command": "npx",
"args": [
"mcp-server-and-gw",
"http://localhost:8808/"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"gateway-server-and-client": {
"command": "npx",
"args": [
"mcp-server-and-gw",
"http://localhost:8808/"
]
}
}
}