Skip to main content
Glama
dylantirandaz

Tailscale Compute MCP

Tailscale Compute MCP

Run builds, tests, and benchmarks on your own remote compute node from an MCP coding agent.

The coding agent edits files on your local computer. This MCP server copies the project through rsync and runs a command through SSH only when the agent calls compute_run.

This is an independent project. It is not an official Tailscale product and is not endorsed by Tailscale Inc. Tailscale is a trademark of Tailscale Inc.

Release status

This package is a beta.

  • The full path has run on a Mac laptop and an Apple M4 Mac mini.

  • The server includes Linux probes and NVIDIA inventory support.

  • Linux parsing has automated coverage.

  • This release has not run on a real NVIDIA DGX Spark. Do not treat the Linux or NVIDIA result as DGX Spark validation yet.

Related MCP server: mcp-ssh-remote

How it works

MCP coding agent
    |
    | local stdio
    v
Tailscale Compute MCP
    |
    | rsync and SSH through the user's tailnet
    v
Mac or Linux compute node

The package runs on the local computer. No MCP service runs on the remote node. The project author does not receive your code, credentials, command output, or Tailscale traffic.

Security warning

compute_run can run any non-interactive command with the permissions of the remote SSH user. Treat it as remote code execution.

  • Use a dedicated non-root account on the remote node.

  • Do not auto-approve compute_run calls.

  • Do not put passwords, SSH private keys, or Tailscale auth keys in MCP configuration.

  • Use an SSH agent or Tailscale SSH.

  • Limit access with Tailscale policy rules.

  • Review SECURITY.md before use.

Requirements

Local computer

  • Node.js 20 or later.

  • Tailscale connected to the same tailnet as the remote node.

  • OpenSSH client.

  • rsync with filter support.

  • An MCP host that supports local stdio servers.

macOS and Linux are the supported local systems for this beta.

Remote node

  • Darwin or Linux.

  • Tailscale connected.

  • SSH server.

  • rsync available on PATH.

  • A known SSH host key.

  • The toolchain required by the project.

The MCP package does not need Node.js on the remote node unless the remote workload uses Node.js.

Set up a Mac mini

  1. Install and connect Tailscale on both Macs.

  2. On the Mac mini, open System Settings, select General, select Sharing, and turn on Remote Login.

  3. Add the local public key to the remote account:

ssh-copy-id -i ~/.ssh/id_ed25519.pub user@mac-mini.example.ts.net
  1. Verify the host key and non-interactive access:

ssh user@mac-mini.example.ts.net /usr/bin/true
  1. Check the remote tools:

ssh user@mac-mini.example.ts.net '/bin/zsh -lc "rsync --version"'

A sleeping or powered-off Mac might not accept a Tailscale connection. Configure macOS network wake when required. This MCP server does not send wake packets.

Set up a Linux node

Install and connect Tailscale by using the official Tailscale instructions for your Linux distribution. Then install an SSH server and rsync.

For Ubuntu or Debian:

sudo apt-get update
sudo apt-get install --yes openssh-server rsync
sudo systemctl enable --now ssh

Use a standard SSH key:

ssh-copy-id -i ~/.ssh/id_ed25519.pub user@compute-node.example.ts.net
ssh user@compute-node.example.ts.net /usr/bin/true

You can use Tailscale SSH on supported Linux nodes instead of distributing SSH keys. Your Tailscale policy must permit both the network connection and SSH connection.

Install in an MCP host

Pin the package version. Do not use an unpinned package for agent command execution.

VS Code

Create .vscode/mcp.json:

{
  "servers": {
    "tailscale-compute": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dylantirandaz/tailscale-compute-mcp@0.1.0-beta.1"
      ],
      "env": {
        "TAILSCALE_COMPUTE_HOST": "user@compute-node.example.ts.net"
      }
    }
  }
}

Cursor

Create .cursor/mcp.json:

{
  "mcpServers": {
    "tailscale-compute": {
      "command": "npx",
      "args": [
        "-y",
        "@dylantirandaz/tailscale-compute-mcp@0.1.0-beta.1"
      ],
      "env": {
        "TAILSCALE_COMPUTE_HOST": "user@compute-node.example.ts.net"
      }
    }
  }
}

Claude Code

claude mcp add tailscale-compute \
  -e TAILSCALE_COMPUTE_HOST=user@compute-node.example.ts.net \
  -- npx -y @dylantirandaz/tailscale-compute-mcp@0.1.0-beta.1

Check the connection

Run the package outside the MCP host first:

TAILSCALE_COMPUTE_HOST=user@compute-node.example.ts.net \
npx -y @dylantirandaz/tailscale-compute-mcp@0.1.0-beta.1 --check

A successful check returns kind: "ready". It also reports:

  • Operating system.

  • CPU architecture and model.

  • Logical processor count.

  • Memory.

  • Selected remote shell.

  • rsync version.

  • NVIDIA GPU inventory when nvidia-smi is available.

MCP tools

compute_status

Checks SSH access and reports the remote platform and hardware.

compute_run

Copies the local workspace and runs one non-interactive remote command.

Example:

{
  "program": "npm",
  "arguments": ["test"],
  "syncMode": "incremental",
  "timeoutSeconds": 900
}

For shell syntax, call a supported remote shell explicitly:

{
  "program": "/bin/bash",
  "arguments": ["-lc", "npm ci && npm test"],
  "syncMode": "clean",
  "timeoutSeconds": 1800
}

compute_run returns the remote exit code, standard output, standard error, sync time, and command time. Output is limited to protect the MCP connection. When output is too large, the result keeps its start and end and reports the omitted byte count.

Sync modes

  • incremental: Update the managed remote workspace and delete remote files that no longer exist locally.

  • clean: Delete only the hashed managed workspace, create it again, and copy the project.

  • none: Reuse the last remote snapshot without copying local files.

Each local workspace maps to a stable remote directory under:

.cache/tailscale-compute-mcp

The server runs commands for one workspace in sequence. Different workspaces can run at the same time.

Excluded files

The sync reads .gitignore and .tailscale-compute-ignore files. It also excludes these patterns by default:

.git/
.env
.env.*
.npmrc
.pypirc
*.pem
*.key
*.p12
*.pfx
node_modules/
.venv/
venv/
target/
__pycache__/
.next/cache/

Add project-specific secrets and large outputs to .tailscale-compute-ignore.

Ignored files are not copied. If a required file is ignored, create it on the remote node or provide its value through an explicit compute_run.environment entry. Remember that tool arguments are visible to the MCP host and model.

Configuration

Variable

Required

Default

Purpose

TAILSCALE_COMPUTE_HOST

Yes

None

SSH user and direct Tailscale IP address or full MagicDNS name.

TAILSCALE_COMPUTE_LOCAL_ROOT

No

MCP process directory

Absolute local project path.

TAILSCALE_COMPUTE_REMOTE_ROOT

No

.cache/tailscale-compute-mcp

Managed remote workspace root.

TAILSCALE_COMPUTE_REMOTE_SHELL

No

auto

auto, /bin/sh, /bin/bash, or /bin/zsh.

TAILSCALE_COMPUTE_CONNECT_TIMEOUT_SECONDS

No

10

SSH connection timeout from 1 through 60 seconds.

Automatic shell selection uses /bin/zsh on Darwin. It uses /bin/bash on Linux when available and /bin/sh otherwise.

Multiple compute nodes

Register the package more than once with a different name and host. Keep one target per MCP server instance.

{
  "mcpServers": {
    "compute-mac-mini": {
      "command": "npx",
      "args": ["-y", "@dylantirandaz/tailscale-compute-mcp@0.1.0-beta.1"],
      "env": {
        "TAILSCALE_COMPUTE_HOST": "developer@mac-mini.example.ts.net"
      }
    },
    "compute-linux": {
      "command": "npx",
      "args": ["-y", "@dylantirandaz/tailscale-compute-mcp@0.1.0-beta.1"],
      "env": {
        "TAILSCALE_COMPUTE_HOST": "developer@linux-node.example.ts.net",
        "TAILSCALE_COMPUTE_REMOTE_SHELL": "/bin/bash"
      }
    }
  }
}

NVIDIA workloads

compute_status reports NVIDIA devices through nvidia-smi. This inventory does not prove that a workload used a GPU.

A GPU workload must select the intended device and verify the placement of its model, inputs, computation, and outputs. Do not treat a successful nvidia-smi call as functional validation. The server does not fall back to CPU on behalf of the remote command.

Development

npm ci
npm run check

Run a connection check against a real remote node:

TAILSCALE_COMPUTE_HOST=user@100.64.0.1 node dist/main.js --check

Test the package contents before release:

npm pack --dry-run

License

MIT. See LICENSE.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    Enables remote file operations and command execution across multiple machines via SSH. Supports reading files, listing directories, and running commands on any host configured in your SSH config.
  • A
    license
    -
    quality
    D
    maintenance
    Enables executing commands on remote SSH hosts, with full support for bastion/jump hosts and ~/.ssh/config, plus Slurm job management and rsync.
    3
    MIT

View all related MCP servers

Related MCP Connectors

  • Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.

  • Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.

  • Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dylantirandaz/tailscale-compute-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server