remote_port_forward_local
Listen on a local port and forward connections to a remote server port, enabling secure local access to remote services like databases.
Instructions
Start a LOCAL port forward (SSH -L style).
Listens on a local port and forwards connections to a port on the remote server.
Example: Access a database running on the remote server:
localPort: 5433
remoteHost: localhost
remotePort: 5432 ā Connect to localhost:5433 to access the remote PostgreSQL
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"localPort": "<localPort>",
"remotePort": "<remotePort>"
},
"name": "remote_port_forward_local"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPort | Yes | Local port to listen on | |
| sessionId | No | Session ID (optional) | |
| remoteHost | No | Remote host to forward to (default: localhost) | |
| remotePort | Yes | Remote port to forward to |