MCP

In this guide, we demonstrate how to use the NoPorts Tunnel to securely access an MCP server running on a remote device, making it accessible via localhost:3001 on your local machine

In this example, we assume the OpenAPI-based MCP Server is listening on port 3000. These instructions apply to other MCP server types as well, not just OpenAPI-based deployments.

Command Line

The command should look like:

npt -f @<client> -t @<device> -d <device name> -r @<relay> -p 3001 -l 3000

Example:

npt -f @alice_client -t @alice_device -d my_server -r @rv_am -p 3001 -l 3000

Now you can interact with your OpenAPI-based MCP server by connecting to http://localhost:3001 .

To learn more about NPT

npt Usage

Desktop Application

When using the NoPorts desktop application, your connection profile should look something like this:

Profile Name

My MCP Connection

Device atSign

@alice_device

Device Name

my_server

Relay

@rv_am

Local Port

3001

Remote Host

localhost

Remote Port

3000

Last updated