Skip to content

trose/mcp-registry-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

51 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MCP Registry CLI

A pleasant-to-use command-line tool for the MCP Registry

CI Version Downloads License Platform Powered by Cursor/Claude

Table of Contents

Overview

mcpreg is a command-line interface for the MCP Registry, providing easy access to discover, search, and manage Model Context Protocol (MCP) servers. Built with simplicity and user experience in mind, it offers seamless authentication, intelligent caching, and graceful error handling.

Web Access

You can also browse the MCP Registry through the web interface at https://registry.fastmcp.cloud/. This public website provides a browseable view of the entire official MCP registry, updated every 30 minutes, with deduplication by domain for a clean browsing experience.

Features

  • Search & Discovery - Find MCP servers by name or description
  • Server Listing - Browse available servers with pagination
  • Detailed Information - Get comprehensive server details including packages and remotes
  • Seamless Authentication - Automatic GitHub token detection with browser fallback
  • Smart Caching - Local caching with configurable TTL for faster responses
  • Configuration Management - Easy setup and cache management
  • Cross-Platform - Works on macOS, Linux, and Windows (WSL)
  • Fast & Reliable - Graceful degradation when API is unavailable

Installation

Homebrew (Recommended)

brew tap trose/mcpreg
brew install mcpreg

Manual Installation

  1. Download the latest release:
curl -L https://github.com/trose/mcp-registry-cli/releases/latest/download/mcpreg -o mcpreg
chmod +x mcpreg
sudo mv mcpreg /usr/local/bin/
  1. Install dependencies:
# macOS
brew install curl jq

# Ubuntu/Debian
sudo apt-get install curl jq

# CentOS/RHEL
sudo yum install curl jq

Quick Start

Basic Usage

# Search for servers
mcpreg search filesystem

# List available servers
mcpreg list

# Get detailed server information
mcpreg info io.modelcontextprotocol/filesystem

# Show configuration
mcpreg config

# Clear cache
mcpreg config clear-cache

Authentication Setup

For seamless authentication, set up a GitHub token:

# Add to your shell profile (~/.bashrc, ~/.zshrc, etc.)
export GITHUB_TOKEN="your_github_token_here"

# Or use the alternative variable name
export GITHUB_AUTH_TOKEN="your_github_token_here"

Create a token at: https://github.com/settings/tokens

Commands

Command Description Example
search <query> Search for MCP servers (supports fuzzy matching) mcpreg search filesystem
list [limit] List available servers mcpreg list 50
installed List installed MCP servers mcpreg installed
install <name> Install an MCP server (supports fuzzy matching) mcpreg install filesystem
info <name> Get server details (supports fuzzy matching) mcpreg info filesystem
uninstall <name> Uninstall an MCP server (supports fuzzy matching) mcpreg uninstall filesystem
update [name] Update installed servers (all or specific) mcpreg update filesystem
config [action] Manage configuration mcpreg config show
auth Authenticate with GitHub CLI mcpreg auth
commands List all available commands mcpreg commands
--help, -h Show help message mcpreg --help
--version, -v Show version information mcpreg --version

πŸ“– For detailed usage instructions, see USAGE.md

Publishing to the Registry

Want to publish your own MCP server to the registry? The MCP Registry team provides comprehensive documentation on how to publish servers.

πŸ“š Official Publishing Guide

The publishing process typically involves:

  1. Preparing your MCP server for distribution
  2. Publishing to npm or PyPI package registries
  3. Submitting your server to the MCP Registry
  4. Following the registry's guidelines and requirements

For the most up-to-date publishing instructions, requirements, and best practices, please refer to the official documentation linked above.

Configuration

Environment Variables

Variable Description Default
GITHUB_TOKEN GitHub authentication token -
GITHUB_AUTH_TOKEN Alternative GitHub token -
MCP_REGISTRY_BASE_URL Registry base URL https://registry.modelcontextprotocol.io
MCP_CACHE_DIR Cache directory ~/.cache/mcpreg
MCP_CONFIG_DIR Config directory ~/.config/mcpreg

πŸ“– For detailed configuration and usage examples, see USAGE.md

Development

Running Tests

# Install bats testing framework
# macOS
brew install bats-core

# Ubuntu/Debian
sudo apt-get install bats

# Run tests
bats tests/

Building from Source

git clone https://github.com/your-org/mcp-registry-cli.git
cd mcp-registry-cli
chmod +x src/mcpreg
./src/mcpreg --help

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run tests: bats tests/
  5. Commit your changes: git commit -m 'Add amazing feature'
  6. Push to the branch: git push origin feature/amazing-feature
  7. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Support


Made with love for the MCP community

About

A pleasant-to-use command-line tool for the MCP Registry

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •