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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mcpcn/computer-volume-control

v1.0.3

Published

Model Context Protocol Server via Cross-Platform (Mac, Windows & Linux) Computer Audio Control

Readme

Computer Volume Control MCP Server

A Model Context Protocol (MCP) server that provides cross-platform computer volume control capabilities for AI assistants. Available as an npm package for easy installation and use.

Features

  • Cross-platform support: Works on Windows and macOS

  • Volume control: Get, set, increase, and decrease system volume

  • Mute control: Mute and unmute system audio

  • MCP integration: Exposes audio control as tools for AI assistants

Installation

Install the npm package:

npm install computer-volume-control-mcp

Or install locally for development:

git clone <repository-url>
cd computer-volume-control-mcp
npm install

Usage

Run the standalone audio control module:

npm start

Run the MCP server:

npm run mcp

Available Functions

Core Audio Control Functions (index.js):

  • getCurrentVolume() - Get current system volume (0-100%)
  • setVolume(volume) - Set system volume to specific percentage
  • getMuteStatus() - Check if system is muted
  • mute() - Mute the system
  • unmute() - Unmute the system
  • increaseVolume() - Increase volume by 10%
  • decreaseVolume() - Decrease volume by 10%

MCP Tools (mcp-server.js):

  • get_current_volume - Get current system volume
  • set_volume - Set volume to specific percentage (0-100)
  • get_mute_status - Check if system is muted
  • mute_system - Mute the system
  • unmute_system - Unmute the system
  • increase_volume - Increase volume by 10%
  • decrease_volume - Decrease volume by 10%

MCP Configuration

Use the provided mcp-config.json to connect this server to MCP-compatible AI assistants:

{
  "mcpServers": {
    "computer-audio-control": {
      "command": "npx",
      "args": ["computer-volume-control-mcp"],
      "env": {}
    }
  }
}

Dependencies

  • loudness - Cross-platform audio control library

Project Structure

computer-volume-control-mcp/
├── index.js           # Core audio control functions
├── mcp-server.js      # MCP server implementation (executable)
├── mcp-config.json    # MCP configuration
├── package.json       # Project configuration
└── README.md         # This file

Example Usage

As a Node.js module:

const { getCurrentVolume, setVolume, mute } = require('./index.js');

// Get current volume
const volume = await getCurrentVolume();
console.log(`Current volume: ${volume}%`);

// Set volume to 50%
await setVolume(50);

// Mute the system
await mute();

As MCP tools (for AI assistants):

  • "What's the current volume?"
  • "Set volume to 75%"
  • "Mute the system"
  • "Increase volume by 10%"
  • "Unmute the system"

License

ISC