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

mcpdev

v0.1.0

Published

MCPIO - CLI tool for MCP (for both local and remote MCPs)

Readme

MCPIO

MCPIO is a CLI tool for MCP (Model Control Protocol), supporting both local and remote MCPs.

Installation

# Install globally
npm install -g mcpio

# Or install locally in a project
npm install mcpio

CLI Usage

# View help
mcpio --help

# Install a package
mcpio install package-name
mcpio i package-name

# Install a specific version as dev dependency
mcpio install package-name -v 1.0.0 -d

# Uninstall a package
mcpio uninstall package-name
mcpio un package-name

# List installed packages
mcpio list
mcpio ls

# Run a local MCP
mcpio local run ./path/to/mcp -p 3000 -d -e NODE_ENV=development

# Stop a local MCP
mcpio local stop ./path/to/mcp

# Connect to a remote MCP
mcpio remote connect https://example.com/mcp -k your-api-key -t 5000

# Disconnect from a remote MCP
mcpio remote disconnect https://example.com/mcp

# Send a request to a remote MCP
mcpio remote request https://example.com/mcp /api/models -m POST -b '{"name":"model-name"}'

Programmatic Usage

import { MCPIO } from 'mcpio';

// Initialize MCPIO
const mcpio = new MCPIO();

// Example: Install a package
mcpio.install('package-name')
  .then(() => console.log('Package installed successfully!'))
  .catch(err => console.error('Error installing package:', err));

// Example: Use a local MCP
const localMcp = mcpio.local('path/to/local/mcp');
await localMcp.run();

// Example: Connect to a remote MCP
const remoteMcp = mcpio.remote('https://example.com/mcp-endpoint');
await remoteMcp.connect();

Features

  • CLI interface for easy management of MCPs
  • Manage MCP packages easily
  • Support for both local and remote MCPs
  • TypeScript support
  • Simple, intuitive API

Developer Guide

Publishing to npm

This package includes a custom publish script that helps with versioning and publishing to npm.

# Run the npm publish script
npm run publish:npm

The script will:

  1. Validate your package.json
  2. Check git status and branch
  3. Prompt you to bump the version (patch, minor, major, etc.)
  4. Build the package
  5. Run tests
  6. Publish to npm with your chosen settings

Requirements for publishing

  • You must be logged in to npm (npm login)
  • Make sure all package.json fields are properly filled out
  • Ensure the bin field correctly points to the CLI entry point

API Reference

MCPIO Class

The main class for interacting with MCPIO.

Methods

  • install(packageName: string, options?: InstallOptions): Promise<void>
  • uninstall(packageName: string): Promise<void>
  • list(): Promise<Package[]>
  • local(path: string): LocalMCP
  • remote(url: string): RemoteMCP

LocalMCP Class

For working with local MCPs.

Methods

  • run(options?: RunOptions): Promise<void>
  • stop(): Promise<void>

RemoteMCP Class

For working with remote MCPs.

Methods

  • connect(options?: ConnectOptions): Promise<void>
  • disconnect(): Promise<void>
  • request<T>(endpoint: string, method?: string, body?: any): Promise<T>

License

MIT