T

cli

...
Created 12/22/2024bysmithery-ai

Language:

TypeScript

Stars:

101

Forks:

13

Smithery CLI NPM Version NPM Downloads

The Smithery registry installer and manager for Model Context Protocol (MCP) servers, designed to be client-agnostic.

Requirements

  • NodeJS version 18 or above

Usage

npx @smithery/cli 

Available Commands

  • install - Install a package
  • --client - Specify the AI client
    • --config - Provide configuration data as JSON (skips prompts)
  • uninstall - Uninstall a package
    • --client - Specify the AI client
  • inspect - Inspect a server interactively
  • run - Run a server
    • --config - Provide configuration for the server
  • list clients - List available clients
  • --help - Show help message
  • --verbose - Show detailed logs for debugging

Examples

# Install a server (requires --client flag)
npx @smithery/cli install mcp-obsidian --client claude

# Install a server with pre-configured data (skips prompts)
npx @smithery/cli install mcp-obsidian --client claude --config '{"vaultPath":"path/to/vault"}'

# Remove a server
npx @smithery/cli uninstall mcp-obsidian --client claude

# List available clients
npx @smithery/cli list clients

# Inspect a specific server from smithery's registry
npx @smithery/cli inspect mcp-obsidian

# Run a server with configuration
npx @smithery/cli run mcp-obsidian --config '"{\\"key\\":\\"value\\"}"'

# Show help menu
npx @smithery/cli --help

# Install with verbose logging for debugging
npx @smithery/cli install mcp-obsidian --client claude --verbose

Important Notes

  • Remember to restart your AI client after installing or uninstalling servers
  • Use the inspect command for interactive server testing
  • Run without arguments to see the help menu
  • Use --verbose flag for detailed logs when troubleshooting

Development

            This guide will help you get started with developing for @smithery/cli.

Getting Started

  1. Clone the repository:

    git clone https://github.com/smithery-ai/cli
    cd cli
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

Development Commands

# List all servers
npx . 

# Inspect a specific server
npx . inspect 

# Install a server
npx . install  --client 

# Run with verbose logging
npx .  --verbose

Contributing

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

Last updated: 3/7/2025

Publisher info

smithery-ai's avatar

Smithery

United States of America
289
followers
0
following
487
repos

More MCP servers built with TypeScript

docbase-mcp-server

MCP Server Implementation for DocBase

By f4401
aapi-mcp-server

Advanced API MCP Server

By Asphere-xyz1
DBX-MCP-Server

MCP Server for Dropbox

By amgadabdelhafez1