smithery-ai

cli

Built by smithery-ai 609 stars

What is cli?

Install, manage and develop MCP servers and skills for agents

How to use cli?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add cli using the following command: npx @modelcontextprotocol/cli 4. Restart the client and verify the new tools are active.
🛡️ Scoped (Restricted)
npx @modelcontextprotocol/cli --scope restricted
🔓 Unrestricted Access
npx @modelcontextprotocol/cli

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

cli FAQ

Q

Is cli safe?

Yes, cli follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is cli up to date?

cli is currently active in the registry with 609 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for cli?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub

Smithery CLI NPM Version NPM Downloads

Smithery CLI connects your agents to thousands of skills and MCP servers directly from the command line. To get started, simply run npx skills add smithery/cli.

Installation

npm install -g @smithery/cli@latest

Requires Node.js 20+.

Commands

MCP Servers

smithery mcp search [term]              # Search the Smithery registry
smithery mcp add <url>                  # Add an MCP server connection
smithery mcp list                       # List your connections
smithery mcp remove <ids...>            # Remove connections

Tools

Interact with tools from MCP servers connected via smithery mcp.

smithery tool list [connection]        # List tools from your connected MCP servers
smithery tool find [query]             # Search tools by name or intent
smithery tool get <connection> <tool>  # Show full details for one tool
smithery tool call <connection> <tool> [args]  # Call a tool

Skills

Browse and install skills from the Smithery Skills Registry.

smithery skill search [query]                        # Search skills
smithery skill add <skill> --agent <name>             # Add a skill
smithery skill upvote <skill>                        # Upvote a skill
smithery skill downvote <skill>                      # Downvote a skill

# Reviews
smithery skill review list <skill>                   # List reviews
smithery skill review add <skill> --up -b "text"     # Add review + vote
smithery skill review remove <skill>                 # Remove your review
smithery skill review upvote <skill> <review-id>     # Upvote a review
smithery skill review downvote <skill> <review-id>   # Downvote a review

Auth

smithery auth login                     # Login with Smithery (OAuth)
smithery auth logout                    # Log out
smithery auth whoami                    # Check current user
smithery auth token                     # Mint a service token
smithery auth token --policy '<json>'   # Mint a restricted token

Namespaces

smithery namespace list                 # List your namespaces
smithery namespace use <name>           # Set current namespace

Publishing

smithery mcp publish <url> -n <org/server>  # Publish an MCP server URL

Examples

# Search and connect to an MCP server
smithery mcp search "github"
smithery mcp add https://server.smithery.ai/github --id github

# Find and call tools from your connected MCP servers
smithery tool find "create issue"
smithery tool call github create_issue '{"title":"Bug fix","body":"..."}'

# Browse and install skills
smithery skill search "frontend" --json --page 2
smithery skill add anthropics/frontend-design --agent claude-code

# Publish your MCP server URL
smithery mcp publish "https://my-mcp-server.com" -n myorg/my-server

Development

git clone https://github.com/smithery-ai/cli
cd cli && pnpm install && pnpm run build
npx . --help

Contributing

Contributions welcome! Please submit a Pull Request.

Global Ranking

-
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "cli": { "command": "npx", "args": ["cli"] } } }