mcphub-cli
v1.1.72
Published
A NPX command to install and list Model Context Protocols from mcphub
Downloads
10
Readme
mcphub CLI

The mcphub registry installer and manager for Model Context Protocol (MCP) servers, designed to be client-agnostic.
Requirements
- NodeJS version 18 or above
Usage
npx mcphub-cli <command>Available Commands
install <package>- Install a package--client <name>- Specify the AI client--config <json>- Provide configuration data as JSON (skips prompts)
uninstall <package>- Uninstall a package--client <name>- Specify the AI client
inspect <server-id>- Inspect a server interactivelyrun <server-id>- Run a server--config <json>- Provide configuration for the server
list clients- List available clientslist servers --client <name>- List installed servers for specific AI client--help- Show help message--verbose- Show detailed logs for debugging
Examples
# Install a server (requires --client flag)
npx mcphub-cli install mcp-obsidian --client claude
# Install a server with pre-configured data (skips prompts)
npx mcphub-cli install mcp-obsidian --client claude --config '{"vaultPath":"path/to/vault"}'
# Remove a server
npx mcphub-cli uninstall mcp-obsidian --client claude
# List available clients
npx mcphub-cli list clients
# List installed servers for claude
npx mcphub-cli list servers --client claude
# Inspect a specific server from mcphub's registry
npx mcphub-cli inspect mcp-obsidian
# Run a server with configuration
npx mcphub-cli run mcp-obsidian --config '"{\\"key\\":\\"value\\"}"'
# Show help menu
npx mcphub-cli --help
# Install with verbose logging for debugging
npx mcphub-cli install mcp-obsidian --client claude --verboseImportant Notes
- Remember to restart your AI client after installing or uninstalling servers
- Use the
inspectcommand for interactive server testing - Run without arguments to see the help menu
- Use
--verboseflag for detailed logs when troubleshooting
Development
This guide will help you get started with developing for mcphub-cli.
Getting Started
Clone the repository:
git clone https://github.com/mcphub-ai/cli cd cliInstall dependencies:
npm installBuild the project:
npm run build
Development Commands
# List all servers
npx . <command>
# Inspect a specific server
npx . inspect <server-id>
# Install a server
npx . install <server-name> --client <client-name>
# Run with verbose logging
npx . <command> --verboseContributing
Contributions are welcome! Please feel free to submit a Pull Request.
