Back to Home
smithery-ai icon

cli

Verified Safe

by smithery-ai

Overview

The Smithery CLI is a developer tool for installing, managing, building, running, and deploying Model Context Protocol (MCP) servers and integrating them with various AI clients.

Installation

Run Command
npx @smithery/cli <command>

Environment Variables

  • SMITHERY_API_KEY
  • REGISTRY_ENDPOINT
  • ANALYTICS_ENDPOINT
  • SMITHERY_CONFIG_PATH
  • LIBRECHAT_CONFIG_DIR
  • SMITHERY_BEARER_AUTH
  • NODE_ENV

Security Notes

The CLI dynamically loads and executes server configurations, including `stdioFunction` (a deprecated feature but still present in code) using `new Function()`. If the Smithery registry is compromised, this could lead to arbitrary code execution when installing or running servers from it. The tool utilizes `keytar` for secure OS keychain storage of API keys, which is a good security practice. The `dev` and `playground` commands offer local server tunneling via `ngrok`, exposing local services to the internet, which carries inherent risks if not used carefully or with proper authentication for the exposed services.

Similar Servers

Stats

Interest Score77
Security Score6
Cost ClassMedium
Avg Tokens300
Stars468
Forks71
Last Update2026-01-16

Tags

CLIMCPAI ClientsServer ManagementDevelopment Tools