npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

zerotier-mcp

v0.1.0

Published

MCP server for managing ZeroTier networks

Readme

ZeroTier MCP Server

A Model Context Protocol (MCP) server for managing ZeroTier networks via the ZeroTier Central API.

⚠️ Vibe Coding Warning

This is a vibe coding project - it was built with enthusiasm and minimal testing. It probably works, but it might not. Use at your own risk. Pull requests for tests and bug fixes welcome.

Features

This MCP server provides tools to:

  • Status Management: Get account status and information
  • Network Management:
    • List all networks
    • Get network details
    • Create new networks with custom configurations
    • Update network settings
    • Delete networks
  • Member Management:
    • List all members of a network
    • Get member details
    • Authorize/deauthorize members
    • Update member configuration (IP assignments, bridge mode, etc.)
    • Delete members from networks
  • User Management: Get user information
  • Utilities: Generate random API tokens

Prerequisites

  • Node.js 18+
  • A ZeroTier account with API access
  • A ZeroTier API token (generate at ZeroTier Central)

Installation

The package is published on NPM and can be run directly with npx:

npx zerotier-mcp

No installation required - npx will download and execute the package automatically.

For development, you can also build from source:

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Set your ZeroTier API token as an environment variable:

export ZEROTIER_TOKEN="your_api_token_here"

You can generate an API token by logging into ZeroTier Central and navigating to the Account page.

Usage

Running the Server

npm start

MCP Tools

Status Tools

get_status

  • Get the overall status of the ZeroTier account tied to the API token

Network Tools

list_networks

  • Returns a list of all networks you have access to

get_network

  • Get details of a specific network
  • Parameters: networkId (string, required)

create_network

  • Create a new ZeroTier network
  • Parameters (all optional):
    • name (string): Network name
    • description (string): Network description
    • private (boolean): Whether network is private (default: true)
    • ipAssignmentPools (array): IP pools for auto-assignment
    • routes (array): Network routes
    • v4AssignMode (object): IPv4 assignment settings
    • dns (object): DNS configuration

update_network

  • Update an existing network configuration
  • Parameters:
    • networkId (string, required): Network ID
    • name (string, optional): New display name for the network
    • description (string, optional): New description for the network
    • private (boolean, optional): Change network privacy setting
    • config (object, optional): Network configuration object to update (includes routes, DNS, IP pools, etc.)

delete_network

  • Delete a network
  • Parameters: networkId (string, required)

Member Tools

list_members

  • List all members of a network
  • Parameters: networkId (string, required)

get_member

  • Get details of a specific network member
  • Parameters:
    • networkId (string, required): Network ID
    • memberId (string, required): Member/node ID

update_member

  • Update a network member (authorize, set IPs, etc.)
  • Parameters:
    • networkId (string, required): Network ID
    • memberId (string, required): Member ID
    • Optional:
      • name (string): Member name
      • description (string): Member description
      • authorized (boolean): Authorization status
      • ipAssignments (array): Assigned IP addresses
      • noAutoAssignIps (boolean): Exempt from auto-assignment
      • activeBridge (boolean): Allow as bridge

delete_member

  • Delete a member from a network
  • Parameters:
    • networkId (string, required): Network ID
    • memberId (string, required): Member ID

User Tools

get_user

  • Get user record by ID
  • Parameters: userId (string, required)

Utility Tools

get_random_token

  • Generate a random 32-character token (useful for creating API keys)

Example Usage

Creating a Network

{
  "name": "create_network",
  "arguments": {
    "name": "My Network",
    "description": "A private network for my devices",
    "private": true,
    "ipAssignmentPools": [
      {
        "ipRangeStart": "10.0.0.1",
        "ipRangeEnd": "10.0.0.254"
      }
    ],
    "v4AssignMode": {
      "zt": true
    }
  }
}

Authorizing a Member

{
  "name": "update_member",
  "arguments": {
    "networkId": "8056c2e21c000001",
    "memberId": "abcdef0123",
    "authorized": true,
    "ipAssignments": [
      "10.0.0.5"
    ]
  }
}

Tested Examples

These examples have been tested with Gemini 3 Pro model:

1. List Network Members

Prompt: "list my zerotier network members"

Response:

Here are the members of your Example network (1219ee0a41aae33b):

| Name     | Node ID    | IP Address       | Status  | Last Seen    |
|----------|-------------|------------------|---------|--------------|
| MyLapTop | 1d3c71e6ea | 10.147.11.100   | Offline  | ~17 days ago |
| HomeLab  | a22cd2a7ba | 10.147.11.101   | Online   | Just now     |

2. Check for Unauthorized Members

Prompt: "is there any unauthorized member on my network"

Response:

All members on your networks are currently authorized.

Example (1219ee0a41aae33b):
All 9 members are authorized.

ecstatic_morse (1219ee0a41aae33c):
No members found.

MCP Configuration

To use this server with an MCP client, add it to your MCP configuration file (typically ~/.config/claude/claude_desktop_config.json for Claude Desktop):

{
  "mcpServers": {
    "zerotier": {
      "command": "npx",
      "args": ["zerotier-mcp"],
      "env": {
        "ZEROTIER_TOKEN": "your_api_token_here"
      }
    }
  }
}

API Reference

This server is based on the ZeroTier Central API v1. For detailed information about the API endpoints and data structures, refer to the official documentation.

Rate Limits

  • Free users: 20 requests per second
  • Paid users: 100 requests per second

License

MIT

Publishing

Automated Publishing

This repository uses GitHub Actions for automated publishing to NPM. When you push a version tag, the workflow will automatically:

  1. Build the project
  2. Publish to NPM using the stored NPM_TOKEN secret

Setting up NPM_TOKEN

  1. Generate an NPM access token:

    • Go to npmjs.com
    • Create a new Automation token
    • Copy the token
  2. Add to GitHub Secrets:

    • Go to your repository Settings → Secrets and variables → Actions
    • Click "New repository secret"
    • Name: NPM_TOKEN
    • Value: Paste your NPM access token

Creating a Release

To publish a new version:

# Update version in package.json
npm version patch  # or minor, or major

# Commit the change
git commit -am "Bump version to X.Y.Z"
git push

# Create and push a tag
git tag vX.Y.Z
git push origin vX.Y.Z

The GitHub Action will automatically trigger on the tag push and publish to NPM.

Example Release Process

# Patch release (1.0.0 → 1.0.1)
npm version patch
git add package.json package-lock.json
git commit -m "Bump version to 1.0.1"
git push
git tag v1.0.1
git push origin v1.0.1

# Minor release (1.0.1 → 1.1.0)
npm version minor
git add package.json package-lock.json
git commit -m "Bump version to 1.1.0"
git push
git tag v1.1.0
git push origin v1.1.0

# Major release (1.1.0 → 2.0.0)
npm version major
git add package.json package-lock.json
git commit -m "Bump version to 2.0.0"
git push
git tag v2.0.0
git push origin v2.0.0