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

mcp-proxy-cli

v0.1.0

Published

CLI tool with server-client architecture for interacting with multiple MCP servers. Supports both Cursor and VS Code Copilot configurations.

Readme

mcp-proxy-cli

npm version License: MIT

A CLI tool with server-client architecture for interacting with multiple MCP servers.

For AI Agents: See AGENTS.md for automatic server startup instructions that are loaded at the beginning of each chat session.

Overview

mcp-proxy-cli consists of two components:

  1. mcp-proxy-cli-server: A background server that maintains persistent connections to MCP servers
  2. mcp-proxy-cli: A CLI client for interacting with the server

The separation allows you to avoid the overhead of initializing MCP connections on every command.

Features

  • 🔄 Server-client architecture - Persistent MCP connections for fast operations
  • 🎯 Multi-server support - Connect to multiple MCP servers simultaneously
  • 🔌 Multiple transports - Support for stdio, HTTP, and SSE connections
  • ⚙️ Dual format support - Compatible with both Cursor and VS Code Copilot configurations
  • 🤖 Agent Skills included - Automatic server startup in Cursor IDE
  • 📦 Easy to use - Simple CLI commands for all MCP operations
  • 🔒 Secure - Environment variable support for sensitive data

Installation

Via npm (Recommended)

npm install -g mcp-proxy-cli

Via npx (No installation required)

npx mcp-proxy-cli /list/servers

From Source

git clone https://github.com/yourusername/mcp-proxy-cli.git
cd mcp-proxy-cli
npm install
npm run build
npm link

Usage

1. Start the Server

mcp-proxy-cli-server start ./config.json

Optional: Specify a custom port

mcp-proxy-cli-server start ./config.json --port 3000

The server will print its URL and suggest setting an environment variable:

export MCP_PROXY_SERVER=3456

2. Use the CLI Client

List all servers

mcp-proxy-cli /list/servers

List all tools

# List tools from all servers
mcp-proxy-cli /list/tools

# List tools from a specific server
mcp-proxy-cli /list/tools --server everything

List all resources

# List resources from all servers
mcp-proxy-cli /list/resources

# List resources from a specific server
mcp-proxy-cli /list/resources --server everything

Read a resource

# Read a resource by URI
mcp-proxy-cli /resource/read "demo://resource/static/document/features.md"

# Read a resource from a specific server
mcp-proxy-cli /resource/read "demo://resource/static/document/features.md" --server everything

List all prompts

# List prompts from all servers
mcp-proxy-cli /list/prompts

# List prompts from a specific server
mcp-proxy-cli /list/prompts --server everything

Get a prompt

# Get a prompt without arguments
mcp-proxy-cli /prompt/get simple-prompt

# Get a prompt with arguments
mcp-proxy-cli /prompt/get args-prompt '{"city":"San Francisco","state":"California"}'

# Get a prompt from a specific server
mcp-proxy-cli /prompt/get simple-prompt --server everything

Call a tool

# Call a tool (auto-detect server)
mcp-proxy-cli /tool/call echo '{"message":"Hello, World!"}'

# Call a tool on a specific server
mcp-proxy-cli /tool/call echo '{"message":"Hello"}' --server everything

Stop the server

mcp-proxy-cli stop

Configuration

mcp-proxy-cli supports both Cursor and VS Code Copilot MCP configuration formats.

📖 Documentation:

Quick Start - Cursor Format

Create a config.json file with your MCP servers:

{
  "mcpServers": {
    "everything": {
      "type": "local",
      "command": "npx",
      "tools": ["*"],
      "args": ["-y", "@modelcontextprotocol/server-everything"],
      "env": {}
    },
    "custom-server": {
      "type": "local",
      "command": "python",
      "args": ["-m", "my_mcp_server"],
      "env": {
        "CUSTOM_VAR": "value"
      }
    }
  }
}

Quick Start - VS Code Copilot Format

Create a .vscode/mcp.json file:

{
  "servers": {
    "everything": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-everything"]
    },
    "custom-server": {
      "command": "python",
      "args": ["-m", "my_mcp_server"],
      "env": {
        "CUSTOM_VAR": "value"
      }
    }
  }
}

Configuration Locations

The server searches for configuration files in this priority order:

  1. ~/.cursor-tutor/mcp-proxy-config.json (Cursor user config)
  2. ~/.vscode/mcp.json (VS Code Copilot user config)
  3. ~/.copilot/mcp-proxy-config.json (Copilot alternate location)
  4. ./.cursor/mcp.json (Cursor workspace config)
  5. ./.vscode/mcp.json (VS Code workspace config)
  6. ./config.json (Project root)
  7. ~/.mcp-proxy-config.json (User home)

Configuration Options

  • type: Currently only "local" is supported (spawns a local process)
  • command: The command to run (e.g., "npx", "python", "node")
  • args: Array of command-line arguments
  • tools (optional): Array of tool names to expose, or ["*"] for all tools. If not specified, all tools are allowed
  • env: Environment variables to pass to the server process

Example with Everything Server

The Everything MCP server is a reference implementation that's perfect for testing.

  1. Start the server with the included config:
mcp-proxy-cli-server start ./config.json
  1. In another terminal, list available tools:
export MCP_PROXY_SERVER=3456
mcp-proxy-cli /list/tools
  1. Call a tool:
mcp-proxy-cli /tool/call echo '{"message":"test"}'

Development

Run in development mode:

# Terminal 1: Start server
npm run dev:server start ./config.json

# Terminal 2: Use CLI
npm run dev:cli /list/servers

Architecture

┌─────────────┐         ┌──────────────────────┐         ┌─────────────┐
│   User      │         │  mcp-proxy-cli      │         │ MCP Server  │
│  Terminal   │ ──────> │     (Client)        │         │   (e.g.,    │
└─────────────┘         └──────────────────────┘         │ Everything) │
                                  │                       └─────────────┘
                                  │ HTTP                         ▲
                                  ▼                              │
                        ┌──────────────────────┐                │
                        │  mcp-proxy-cli-      │                │
                        │     server           │ ───────────────┘
                        │  (HTTP + MCP Host)   │    stdio/MCP
                        └──────────────────────┘

Installing the Cursor Skill

To use mcp-proxy-cli with Cursor AI agents:

# Clone or download the repository
git clone https://github.com/yourusername/mcp-proxy-cli.git

# Copy skill to your project
mkdir -p .cursor/skills
cp -r mcp-proxy-cli/.cursor/skills/mcp-proxy-cli .cursor/skills/

# Or install globally
mkdir -p ~/.cursor/skills
cp -r mcp-proxy-cli/.cursor/skills/mcp-proxy-cli ~/.cursor/skills/

The skill will be automatically discovered by Cursor and agents will know how to use mcp-proxy-cli.

Documentation

Contributing

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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

Related Projects

License

MIT - see LICENSE file for details