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

install-mcp

v1.10.0

Published

A CLI tool to install and manage MCP servers.

Downloads

1,027

Readme

Install MCP CLI

A CLI tool to install and manage MCP servers.

Installing MCPs is a huge pain, so I made a CLI tool to make it easier.

Usage

The CLI now supports multiple installation methods with automatic detection:

Simple package names

npx install-mcp mcp-package-name --client claude

Scoped packages

npx install-mcp @org/mcp-server --client claude

Full commands (for custom arguments)

npx install-mcp 'npx some-mcp-server --custom-args' --client claude

Remote URLs (with automatic naming)

npx install-mcp https://mcp.example.com/server --client claude

The tool automatically:

  • Converts simple package names to npx package-name
  • Preserves full commands as-is
  • Infers server names from package names or URLs (e.g., mcp.example.commcp-example-com)
  • Handles OAuth authentication for remote servers

Supermemory project support

When installing a server hosted on https://api.supermemory.ai/*, you can pass a project name via --project. This is a convenience alias for adding the header x-sm-project: <value>.

Rules:

  • Only applies to URL installs targeting https://api.supermemory.ai/*.
  • Values must not contain spaces.
  • If you omit --project for these URLs, you'll be prompted. Pressing Enter uses default.
  • The value is injected as a header alongside any --header flags.

Examples:

# Explicit project
npx install-mcp https://api.supermemory.ai/servers/my-server \
  --client cursor \
  --project myproj

# Prompted for project (Enter defaults to "default")
npx install-mcp https://api.supermemory.ai/servers/my-server --client cursor

Warp users: the generated config will include --header "x-sm-project: <value>" in the args array when installing Supermemory URLs.

Headers Support

You can pass headers for authentication or other purposes using the --header flag:

# Single header
npx install-mcp https://api.example.com/mcp --client claude --header "Authorization: Bearer token123"

# Multiple headers
npx install-mcp https://api.example.com/mcp --client claude \
  --header "Authorization: Bearer token123" \
  --header "X-API-Key: secret-key"

OAuth Authentication for Remote Servers

When installing remote servers (URLs), the CLI will ask if the server uses OAuth authentication:

npx install-mcp https://api.example.com/mcp --client claude
# Output: Does this server use OAuth authentication? (Y/n)

You can bypass this prompt using the --oauth flag:

# Automatically run OAuth authentication
npx install-mcp https://api.example.com/mcp --client claude --oauth yes

# Skip OAuth authentication entirely
npx install-mcp https://api.example.com/mcp --client claude --oauth no

If you answer yes, the authentication flow:

  • Runs automatically before installation
  • Handles OAuth flows seamlessly in the background
  • Authentication state is shared globally - once you authenticate with a server, that authentication is automatically available to all MCP clients
  • No need to re-authenticate when using the same server in different clients
# Output: Running authentication for https://api.example.com/mcp

If authentication fails, you'll see:

Authentication failed. Use the client to authenticate.

If the server doesn't use OAuth (you answer no), the installation proceeds directly without authentication.

This ensures secure access to remote servers while maintaining flexibility for servers that don't require OAuth.

Supported Clients

The --client flag specifies which MCP client you're installing for:

  • claude
  • cline
  • roo-cline
  • windsurf
  • witsy
  • enconvo
  • cursor
  • vscode
  • gemini-cli
  • claude-code
  • goose
  • zed
  • warp (outputs config to copy/paste into Warp's cloud-based settings)
  • codex (OpenAI's Codex CLI tool)

License

MIT