A pleasant-to-use command-line tool for the MCP Registry
Table of Contents
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.
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.
- 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
brew tap trose/mcpreg
brew install mcpreg
- 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/
- Install dependencies:
# macOS
brew install curl jq
# Ubuntu/Debian
sudo apt-get install curl jq
# CentOS/RHEL
sudo yum install curl jq
# 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
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
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
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:
- Preparing your MCP server for distribution
- Publishing to npm or PyPI package registries
- Submitting your server to the MCP Registry
- 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.
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
# Install bats testing framework
# macOS
brew install bats-core
# Ubuntu/Debian
sudo apt-get install bats
# Run tests
bats tests/
git clone https://github.com/your-org/mcp-registry-cli.git
cd mcp-registry-cli
chmod +x src/mcpreg
./src/mcpreg --help
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes
- Run tests:
bats tests/
- Commit your changes:
git commit -m 'Add amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built for the Model Context Protocol ecosystem
- Powered by Cursor and Claude
- Inspired by the simplicity of great CLI tools like
brew
,npm
, andpip
- MCP Registry API
- MCP Registry Web Interface - Browse servers online
Made with love for the MCP community