Manage MCP servers effortlessly with Smithery CLI install, uninstall, inspect, and run commands for easy AI server management
Smithery CLI is the registry installer and manager for Model Context Protocol (MCP) servers, designed to be client-agnostic. This server acts as a universal adapter that allows various AI applications like Claude Desktop, Continue, Cursor, and more to connect to specific data sources and tools using a standardized protocol. By leveraging MCP, developers can ensure seamless integration across different AI clients and environments.
Smithery CLI provides several key features for managing MCP servers:
install
command enables the installation of new servers, while the uninstall
command facilitates their removal.inspect
command allows interactive testing and diagnostics of installed servers.run
command supports configuring and running AI servers with specific settings.list clients
command provides a list of available AI clients, while the list servers --client <name>
command lists servers associated with a specific client.These features ensure that developers have full control over their AI application's setup and configuration, promoting flexibility and ease of use.
The Smithery CLI MCP server is built on top of Model Context Protocol (MCP), which standardizes communication between AI applications and backend services. The architecture follows a client-server model where:
The MCP protocol flow is managed through a series of well-defined messages and actions, ensuring robust and consistent interactions between all parties involved.
To get started with the Smithery CLI MCP server, follow these steps:
Clone the Repository:
git clone https://github.com/smithery-ai/cli
cd cli
Install Dependencies:
npm install
Build the Project:
npm run build
Once installed, you can use various commands to manage your MCP servers, ensuring they are compatible with different AI clients and environments.
A user wants to integrate their personal finance manager into an AI application for better financial planning. Using Smithery CLI, the user can:
Install the Required MCP Server:
npx @smithery/cli install mcp-finance --client claude
Configure the Server with API Key:
{
"mcpServers": {
"finance-server": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-finance"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Run the Server and Connect to AI Client:
npx @smithery/cli run mcp-finance --client claude
By following these steps, the user can securely integrate their personal finance data into an AI application, enhancing its functionality.
A developer is building a smart home automation system and wants to integrate it with various AI clients. Using Smithery CLI, they can:
Install Compatibility with Different Clients:
npx @smithery/cli install mcp-smart-home --client continue
Configure the Smart Home MCP Server:
{
"mcpServers": {
"smart-home-server": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-smart-home"],
"env": {
"API_TOKEN": "your-api-token"
}
}
}
}
Run the Server and Ensure Compatibility:
npx @smithery/cli run mcp-smart-home --client continue
By leveraging Smithery CLI, the developer ensures that their smart home system works seamlessly across multiple AI clients.
Smithery CLI supports integration with several AI clients, including Claude Desktop, Continue, and Cursor. Each client has specific requirements for data handling and configuration. The compatibility matrix below details which clients support various resources:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
By ensuring compatibility, developers can maintain robust and reliable AI application integrations.
For comprehensive performance metrics and cross-client compatibility testing results, refer to the official documentation. The compatibility matrix provided earlier offers a summary of which clients support specific resources and prompts. Developers should review these details before configuring their MCP servers.
{
"mcpServers": {
"[server-id]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
By adhering to these best practices, developers can ensure that their MCP servers are both functional and secure.
npx @smithery/cli install mcp-obsidian --client claude --config '{"vaultPath":"path/to/vault"}'
Yes, the uninstall
command can remove installed servers:
npx @smithery/cli uninstall mcp-obsidian --client claude
--verbose
flag do?The --verbose
flag provides detailed logs for debugging purposes:
npx @smithery/cli install mcp-obsidian --client claude --verbose
Use the following command to see a list of available clients:
npx @smithery/cli list clients
Yes, run inspect
with an ID to test your MCP server interactively:
npx @smithery/cli inspect mcp-obsidian
To contribute to the development of @smithery/cli, please follow these steps:
Fork the Repository:
Set Up Your Environment:
git clone https://github.com/yournamehere/cli
cd cli
npm install
npm run build
Make Changes: Modify the source code as needed.
Run Tests: Ensure your changes do not break existing functionality by running tests.
npm test
Commit and Push Changes: Commit your changes and push them to a new branch in your forked repository:
git commit -am "your message"
git push origin feature-branch
Create a Pull Request: Open a pull request (PR) on the original repo.
For more information on the Model Context Protocol and its ecosystem, visit the following resources:
By engaging with these resources, developers can stay up-to-date on the latest MCP developments and best practices.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
This comprehensive documentation positions Smithery CLI as a valuable tool for developers seeking to integrate AI applications with MCP servers. By emphasizing the technical details and real-world use cases, it demonstrates how this server enhances AI application functionality through MCP.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods