Skip to content

Installation

CVMI is distributed as an NPM package and can be run directly using npx without requiring a global installation.

  • Node.js 18 or higher
  • A package manager (npm, yarn, pnpm, or bun)

The easiest way to use CVMI is with npx, which downloads and runs the latest version on demand:

Terminal window
# Install ContextVM skills interactively
npx cvmi add
# Install a specific skill
npx cvmi add --skill overview

Using npx ensures you always have the latest version without managing global installations.

Browse and install skills interactively:

Terminal window
npx cvmi add

Install a specific skill directly:

Terminal window
npx cvmi add --skill overview
npx cvmi add --skill typescript-sdk
npx cvmi add --skill server-dev

Expose an MCP server to the Nostr network:

Terminal window
# Expose a local filesystem server
npx cvmi serve -- npx -y @modelcontextprotocol/server-filesystem /tmp
# Or with a remote HTTP MCP server
npx cvmi serve

Connect to a Nostr-based MCP server:

Terminal window
npx cvmi use npub1q...

To verify CVMI is working correctly, try running the help command:

Terminal window
npx cvmi --help

You should see a list of available commands and options.

List all installed skills:

Terminal window
npx cvmi list

This will show you which skills are currently available in your environment.

If you prefer, you can install CVMI globally:

Terminal window
# Using npm
npm install -g cvmi
# Using yarn
yarn global add cvmi
# Using pnpm
pnpm add -g cvmi

After global installation, you can use cvmi directly without npx:

Terminal window
cvmi add
cvmi serve -- npx -y @modelcontextprotocol/server-filesystem /tmp

Now that you have CVMI installed, explore: