All pages
Powered by GitBook
1 of 1

Loading...

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 3000 -l 3001

Example:

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

To learn more about NPT

Desktop Application

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

3000

Profile Name

My MCP Connection

Device atSign

@alice_device

Device Name

my_server

Relay

@rv_am

Local Port

3001

Local Host

localhost

Remote Host

npt Usage

Remote Port

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