mcp-use-cli
by mcp-use
Overview
An interactive command-line interface (CLI) tool for connecting to and interacting with Model Context Protocol (MCP) servers using natural language, acting as an AI client that orchestrates LLM responses with external tools.
Installation
mcp-useEnvironment Variables
- OPENAI_API_KEY
- ANTHROPIC_API_KEY
- GOOGLE_API_KEY
- MISTRAL_API_KEY
- GROQ_API_KEY
- COHERE_API_KEY
- AZURE_OPENAI_API_KEY
- GOOGLE_APPLICATION_CREDENTIALS
- FIREWORKS_API_KEY
- PERPLEXITY_API_KEY
- OLLAMA_HOST
- TOGETHER_API_KEY
- DEEPSEEK_API_KEY
- XAI_API_KEY
- SCARF_ANALYTICS
- DO_NOT_TRACK
Security Notes
The CLI stores API keys and server configurations in a local file (`~/.mcp-use-cli/config.json`) with client-side encryption. However, the encryption key is deterministically derived from hardcoded strings, making it vulnerable to decryption by anyone with access to the source code. A critical risk lies in the core functionality allowing users to add 'Local Server' configurations that specify arbitrary commands and arguments (e.g., `npx @modelcontextprotocol/server-filesystem`). While intended for tool integration, this design means that loading a malicious server configuration could lead to arbitrary code execution on the user's machine, requiring users to fully trust the source of all added MCP server configurations. Telemetry is collected via Scarf, with opt-out options.
Similar Servers
mcpm.sh
This server provides a command-line interface to manage Model Context Protocol (MCP) servers, allowing users to discover, install, configure, run, share, and monitor them.
mcp-interviewer
A Python CLI tool designed to evaluate, test, and generate reports on Model Context Protocol (MCP) servers to ensure compatibility and quality for LLM agent use cases.
mcp-kit
A CLI tool for scaffolding Model Context Protocol (MCP) applications, either as servers providing tools, resources, and prompts, or clients consuming them.
mcp-server-dump
Extracts and documents MCP (Model Context Protocol) server capabilities, tools, resources, and prompts in various formats.