Back to Home
mcp-use icon

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

Run Command
mcp-use

Environment 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

Stats

Interest Score48
Security Score4
Cost ClassMedium
Avg Tokens500
Stars47
Forks6
Last Update2025-11-24

Tags

CLIAI AgentModel Context ProtocolLLMNatural Language Interface