View the Smithery CLI on GitHub
The Smithery CLI is a registry installer and manager for Model Context
Protocol (MCP) servers, designed to be client-agnostic.
- Install MCP servers from the registry
- Debug your MCP servers in Smithery Chat
- Build your MCP servers for production
Examples
Reference
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 clientlogin- Login with an API key (interactive)dev [entryFile]- Start development server with hot-reload and tunnel--port <port>- Port to run the server on (default: 8181)--key <apikey>- Provide an API key--no-open- Don’t automatically open Chat--prompt <prompt>- Initial message to start Chat with-c, --config <path>- Path to config file (default: auto-detect smithery.config.js)
build [entryFile]- Build MCP server for production-o, --out <outfile>- Output file path (default: .smithery/bundle/module.js)--transport <type>- Transport type: shttp or stdio (default: shttp)-c, --config <path>- Path to config file (default: auto-detect smithery.config.ts)
deploy- Deploy MCP server to Smithery Registry-n, --name <name>- Server qualified name (e.g., @org/server)--key <apikey>- Smithery API key-c, --config <path>- Path to config file
playground- Open Smithery Chat in browser--port <port>- Port to expose (default: 3000)--key <apikey>- Provide an API key- Can pass command after
--separator
--help- Show help message--verbose- Show detailed logs for debugging
Examples
Important Notes
- Use
logincommand to set your Smithery API key (required for some operations) - 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 - The
devcommand provides hot-reload for MCP server development - Use
playgroundto test your MCP servers in Smithery Chat