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

@iflow-mcp/stat-guy-terminal

v0.1.0

Published

MCP server for terminal command execution

Readme

Terminal MCP Server

A Model Context Protocol (MCP) server that enables execution of terminal commands through Claude Desktop.

Features

  • Execute any terminal command with arguments and options
  • Navigate between directories while maintaining state
  • Get terminal environment information
  • Full output capture (stdout, stderr, exit codes)
  • Proper error handling and formatting

Prerequisites

  • Node.js v18 or higher
  • TypeScript
  • Claude Desktop

Installation

  1. Clone the repository:
git clone https://github.com/stat-guy/terminal.git
cd terminal
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Local Development Setup

  1. Create or edit your Claude Desktop configuration file:

    • On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • On Windows: %APPDATA%\\Claude\\claude_desktop_config.json

Add the following configuration:

{
  "mcpServers": {
    "terminal": {
      "command": "node",
      "args": [
        "[PATH_TO_REPO]/dist/index.js"
      ],
      "env": {
        "PERMISSION_REQUIRED": "true"
      }
    }
  }
}

Replace [PATH_TO_REPO] with the actual path to your cloned repository.

  1. Restart Claude Desktop

Available Tools

execute_command

  • Execute any terminal command
  • Supports command arguments and options
  • Captures full output and exit codes

change_directory

  • Change the current working directory
  • Maintains state between commands
  • Supports relative and absolute paths

get_current_directory

  • Get the current working directory path

get_terminal_info

  • Get information about the terminal environment
  • Shows shell, user, platform, and recent command history

Usage Examples

Ask Claude to execute terminal commands like:

Can you check what's in my current directory?
-> Executes: ls -la

Can you tell me the current directory?
-> Executes: pwd

Can you change to the Downloads folder?
-> Executes: cd ~/Downloads

Security Considerations

  • The server requires explicit user permission through Claude Desktop for command execution
  • Environment variables can be controlled through the configuration
  • Command execution includes timeouts and error handling

Development

  1. Watch for changes:
npm run watch
  1. Test changes:
  • Make changes to source files in src/
  • Rebuild using npm run build
  • Restart Claude Desktop to load changes

Project Structure

/
├── src/
│   └── index.ts    # Main server implementation
├── package.json    # Project configuration and dependencies
├── tsconfig.json  # TypeScript configuration
└── README.md      # This file

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License