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

portable-mcp

v0.0.5

Published

A CLI tool to manage MCP configurations across different environments (Cursor, Claude Desktop)

Downloads

12

Readme

Portable MCP Manager

A CLI tool to manage MCP (Model Context Protocol) configurations across different environments like Cursor and Claude Desktop.

Features

  • 🔄 Replace or merge configurations from various sources
  • 🔗 Download from direct URLs or GitHub Gists (public/private)
  • 📱 Support for Cursor and Claude Desktop
  • 🖥️ Cross-platform support (Windows and macOS)
  • 📤 Upload configurations to GitHub Gists
  • 🎯 Interactive mode for easy usage
  • Caching for faster repeated operations
  • 🛠️ GitHub CLI integration when available

Installation

npm install -g portable-mcp

Or run directly with npx:

npx portable-mcp --help

Quick Start

Interactive Mode (Recommended for beginners)

Simply run the command without arguments to enter interactive mode:

portable-mcp

or

portable-mcp prompt

Replace Configuration

Replace your Cursor configuration from a GitHub Gist:

portable-mcp replace --type cursor --gist 50007c6cd60db13cf8477b3b5caa96f0

Replace from a direct URL:

portable-mcp replace --type cursor --json-url https://gist.githubusercontent.com/niradler/50007c6cd60db13cf8477b3b5caa96f0/raw/1c4229a9ac141f2a5530d98540ae67845b08a3be/cursor.json

Merge Configuration

Merge new settings with your existing configuration:

portable-mcp merge --type claude --gist abc123def456

Upload to Gist

Upload your current configuration to a new public Gist:

portable-mcp store --type cursor

Upload to a private Gist:

portable-mcp store --type cursor --private

Update an existing Gist:

portable-mcp store --type cursor --gist abc123def456

Get Default Paths

Check where your configuration files should be located:

portable-mcp path --type cursor
portable-mcp path --type claude

Command Reference

Commands

replace

Replace the entire configuration file.

Options:

  • --type <type> - Target application (cursor | claude)
  • --json-url <url> - Direct URL to JSON configuration
  • --gist <gist> - GitHub Gist ID or ID/filename for multi-file Gists
  • --destination <path> - Custom destination path

merge

Merge configuration with existing file (deep merge).

Options: Same as replace

store

Upload configuration to GitHub Gist.

Options:

  • --type <type> - Source application (cursor | claude)
  • --gist <gist> - Existing Gist ID to update (optional)
  • --private - Create private Gist (default: public)
  • --source <path> - Custom source path

path

Show default configuration path for a type.

Options:

  • --type <type> - Application type (default: cursor)

prompt

Interactive mode - asks questions to guide you through the process.

Environment Variables

  • PORTABLE_MCP_TMP - Custom temporary directory for cache (default: ~/.tmp/portable-mcp)
  • GITHUB_TOKEN - GitHub personal access token (required for private Gists and API uploads)

Configuration Paths

Cursor

  • Windows: C:\\Users\\<username>\\.cursor\\mcp.json
  • macOS: ~/Library/Application Support/Cursor/User/mcp.json

Claude Desktop

  • Windows: C:\\Users\\<username>\\.claude\\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

GitHub Integration

GitHub CLI (Recommended)

If you have GitHub CLI installed and authenticated, the tool will automatically use it for Gist operations. This provides the best experience and doesn't require additional tokens.

GitHub API

If GitHub CLI is not available, you can use the GitHub API directly by setting the GITHUB_TOKEN environment variable:

export GITHUB_TOKEN=ghp_your_personal_access_token_here

Get a token from: https://github.com/settings/tokens

Required scopes: gist

Examples

Example 1: Complete Workflow

# Check current configuration location
portable-mcp path --type cursor

# Replace with a configuration from Gist
portable-mcp replace --type cursor --gist abc123def456

# Upload your modified configuration back
portable-mcp store --type cursor --private

Example 2: Working with Multi-file Gists

# Download specific file from multi-file Gist
portable-mcp replace --type cursor --gist abc123def456/cursor-config.json

Example 3: Custom Paths

# Use custom source and destination
portable-mcp replace --json-url https://example.com/config.json --destination ./my-config.json

Example 4: Merge Configurations

# Merge remote config with local (useful for partial updates)
portable-mcp merge --type cursor --gist abc123def456

Caching

Downloaded configurations are cached in the temp directory for 1 hour to speed up repeated operations. Cache location:

  • Default: ~/.tmp/portable-mcp/
  • Custom: Set PORTABLE_MCP_TMP environment variable

License

MIT License - see LICENSE file for details.