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

@tsparticles/mcp-server

v4.3.2

Published

MCP server for tsParticles - generate options from natural language and suggest required plugins

Readme

@tsparticles/mcp-server

MCP (Model Context Protocol) server for tsParticles. Lets AI assistants inspect package catalogs, suggest required plugins and bundles from options, and generate tsParticles configurations from natural language.

Quick Start (local)

npx @tsparticles/mcp-server

The server runs on stdio and can be connected to any MCP-compatible client:

Claude Desktop configuration

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "tsparticles": {
      "command": "npx",
      "args": ["@tsparticles/mcp-server"]
    }
  }
}

Tools

| Tool | Description | |--------------------|---------------------------------------------------------------------------------| | suggest_plugins | Given a tsParticles options object, returns the npm packages and imports needed | | list_packages | Lists available packages, optionally filtered by category or search query | | get_package_info | Returns detailed info about a specific package |

Resources

| URI | Description | |-------------------------------|-----------------------------| | tsparticles://packages | Complete package catalog | | tsparticles://options/guide | Options structure reference | | tsparticles://bundles | Bundle selection guide |

Prompt

| Name | Description | |--------------------|-------------------------------------------------------------------| | generate-options | Generates tsParticles options from a natural language description |

Deploy (remote HTTP)

The server can also run as an HTTP endpoint, accessible by any MCP client that supports SSE.

Security note: the HTTP transport has no authentication by default — it's meant for localhost/trusted-network use. If you expose it beyond your machine (tunnel, reverse proxy, port forward, etc.), always set an auth token (see below). Without one, anyone who can reach the endpoint can call every tool.

Authentication

Set a bearer token to require Authorization: Bearer <token> on every request to /mcp:

# via CLI flag
npx @tsparticles/mcp-server --port 3000 --auth-token "$(openssl rand -hex 32)"

# or via environment variable (recommended so the token doesn't end up in shell history)
MCP_AUTH_TOKEN="$(openssl rand -hex 32)" npx @tsparticles/mcp-server --port 3000

Configure your MCP client to send that token as a bearer token when connecting. If no token is set, the server prints a startup warning and falls back to allowing only local origins (localhost/127.0.0.1) by default for browser-originated requests — non-browser clients (curl, most MCP clients) aren't affected by that check, so it's not a substitute for auth.

Rate limiting

The server applies a basic in-memory per-IP rate limit (120 requests/minute by default) and caps total concurrent sessions at 500, to keep a single misbehaving client from exhausting the process. This is not a substitute for rate limiting at a reverse proxy or CDN if you're exposing the server publicly — it only protects the Node process itself.

Option 1: Direct access (no tunnel)

# Start on port 3000
npx @tsparticles/mcp-server --port 3000
# Health check: http://localhost:3000/health
# MCP endpoint:  http://localhost:3000/mcp

Option 2: Docker (pre-built image)

Pull and run directly from Docker Hub (no build needed):

docker run -d -p 3000:3000 tsparticles/mcp-server

Or use a specific version:

docker run -d -p 3000:3000 tsparticles/mcp-server:v4.3.1

With auth token:

docker run -d -p 3000:3000 -e MCP_AUTH_TOKEN="$(openssl rand -hex 32)" tsparticles/mcp-server

Option 3: Docker Compose (build from source)

# Build and start
docker compose up -d

# Or with Cloudflare Tunnel for public HTTPS access
docker compose --profile tunnel up

Set MCP_AUTH_TOKEN in your environment (or a .env file next to docker-compose.yml, see .env.example) before running this if the container is reachable from outside your machine — this is required reading before using the tunnel/reverse-proxy options below.

This prints a temporary URL like https://random.trycloudflare.com. Configure your MCP client with https://random.trycloudflare.com/mcp as the endpoint.

Option 4: Docker + Synology Reverse Proxy

If you have a Synology NAS:

  1. Build the image and start the container:
docker compose up -d
  1. On DSM, go to Control Panel > Application Portal > Reverse Proxy and add:

| Field | Value | |----------------------|-----------------------------| | Source protocol | HTTPS | | Source hostname | your-nas-domain.example.com | | Source port | 8443 | | Enable HSTS | yes | | Destination protocol | HTTP | | Destination hostname | localhost | | Destination port | 3000 |

  1. Configure your MCP client with https://your-nas-domain.example.com:8443/mcp.

Option 5: Docker + Cloudflare Tunnel (permanent)

For a permanent URL (instead of the random trycloudflare.com):

  1. Install cloudflared and log in:
docker run cloudflare/cloudflared tunnel login
  1. Create a tunnel and route your domain:
cloudflared tunnel create tsparticles-mcp
cloudflared tunnel route dns tsparticles-mcp mcp.yourdomain.com
  1. Create a config file:
# config.yml
tunnel: tsparticles-mcp
credentials-file: /root/.cloudflared/tunnel.json
ingress:
  - hostname: mcp.yourdomain.com
    service: http://localhost:3000
  - service: http_status:404
  1. Run:
docker compose up -d mcp-server
cloudflared tunnel run tsparticles-mcp

Your MCP endpoint will be https://mcp.yourdomain.com/mcp.

Client endpoint configuration

When connecting to a remote HTTP server, use the endpoint URL with /mcp path:

https://your-server.example.com/mcp

Build from source

pnpm install
pnpm run build
pnpm run start        # stdio mode
pnpm run start:http   # HTTP mode on port 3000