Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Fetched from the repository for this visit.
A comprehensive LLM CLI plugin for Model Context Protocol (MCP) integration, enabling seamless interaction between the LLM command-line tool and MCP servers.
pip install llm-mcp-cli
@modelcontextprotocol/server-filesystem)llm mcp add filesystem npx @modelcontextprotocol/server-filesystem /path/to/directory
llm mcp tools --format list
llm -m gpt-4 "List all files in my directory" $(llm mcp tools --format commands)
if you want to add specific server commands
llm -m gpt-4 "List all files in my directory" $(llm mcp tools --server fetch --format commands)
llm mcp addRegister a new MCP server.
Syntax:
llm mcp add <name> <command> [args...] [options]
Parameters:
name (required) - Unique identifier for the servercommand (required) - Command to execute the server (e.g., npx, python)args (optional) - Additional arguments for the server commandOptions:
--env KEY=value - Set environment variables (can be used multiple times)--description - Add a description for the serverExamples:
# Add filesystem server
llm mcp add filesystem npx @modelcontextprotocol/server-filesystem /Users/docs
# First store your GitHub token (one-time setup)
llm keys set GITHUB_PERSONAL_ACCESS_TOKEN
# Add GitHub server (API key automatically resolved from LLM storage)
llm mcp add github npx @modelcontextprotocol/server-github
# Add server with description
llm mcp add myserver python /path/to/server.py \
--description "Custom MCP server for data processing"
# Multiple environment variables
llm mcp add api-server ./server \
--env API_KEY=secret \
--env DEBUG=true \
--env PORT=8080
llm mcp removeRemove a registered MCP server.
Syntax:
llm mcp remove <name>
Example:
llm mcp remove filesystem
llm mcp listList all registered MCP servers.
Syntax:
llm mcp list [options]
Options:
--enabled-only - Show only enabled servers--with-status - Include connection status informationOutput includes:
--with-status)--with-status)Examples:
# List all servers
llm mcp list
# List only enabled servers with status
llm mcp list --enabled-only --with-status
llm mcp enableEnable a disabled MCP server.
Syntax:
llm mcp enable <name>
Example:
llm mcp enable filesystem
llm mcp disableDisable an MCP server without removing it.
Syntax:
llm mcp disable <name>
Example:
llm mcp disable filesystem
llm mcp testTest connectivity to an MCP server.
Syntax:
llm mcp test <name>
Output includes:
Example:
llm mcp test filesystem
llm mcp describeShow detailed information about a specific MCP server.
Syntax:
llm mcp describe <name>
Output includes:
Example:
llm mcp describe filesystem
llm mcp startManually start an MCP server connection.
Syntax:
llm mcp start <name>
Example:
llm mcp start filesystem
llm mcp stopStop an active MCP server connection.
Syntax:
llm mcp stop <name>
Example:
llm mcp stop filesystem
llm mcp toolsList all available MCP tools from enabled servers.
Syntax:
llm mcp tools [options]
Options:
--server <name> - Filter tools by specific server--format <type> - Output format (default: list)
list - Detailed format with descriptionsnames - Tool names only, one per linecommands - As -T flags ready for use with llm--names-only - (Deprecated) Equivalent to --format namesExamples:
# List all tools with descriptions
llm mcp tools
# Get tools from specific server
llm mcp tools --server filesystem
# Get tool names only
llm mcp tools --format names
# Get ready-to-use command flags
llm mcp tools --format commands
# Output: -T filesystem__read_file -T filesystem__write_file ...
llm mcp call-toolCall a specific MCP tool directly.
Syntax:
llm mcp call-tool <tool_name> [options]
Parameters:
tool_name (required) - Tool name in format server__toolOptions:
--args <json> - JSON object with tool arguments (default: "{}")Examples:
# Read a file
llm mcp call-tool filesystem__read_file \
--args '{"path": "/tmp/example.txt"}'
# List directory contents
llm mcp call-tool filesystem__list_directory \
--args '{"path": "/Users/docs"}'
# Call with complex arguments
llm mcp call-tool github__search_repositories \
--args '{"query": "language:python stars:>1000", "limit": 10}'
llm mcp statusShow overall MCP plugin status and statistics.
Syntax:
llm mcp status
Output includes:
Example:
llm mcp status
# 1. Add a filesystem server for your documents
llm mcp add docs npx @modelcontextprotocol/server-filesystem ~/Documents
# 2. Store API keys securely (one-time setup)
llm keys set GITHUB_PERSONAL_ACCESS_TOKEN
# 3. Add a GitHub server (API key automatically resolved)
llm mcp add github npx @modelcontextprotocol/server-github
# 4. Verify servers are working
llm mcp test docs
llm mcp test github
# 5. List all available tools
llm mcp tools
# Method 1: Use the tools in a conversation
llm -m gpt-4 \
$(llm mcp tools --server docs --format commands) \
"What markdown files are in my Documents folder?"
# Method 2: Specify individual tools
llm -m claude-3-opus \
-T docs__read_file \
-T docs__write_file \
"Update the README.md file to include installation instructions"
# Method 3: Use all available tools
llm -m gpt-4 $(llm mcp tools --format commands) \
"Analyze the project structure and create a summary"
# List files in a directory
llm mcp call-tool docs__list_directory \
--args '{"path": "/Users/me/Documents"}'
# Read a specific file
llm mcp call-tool docs__read_file \
--args '{"path": "/Users/me/Documents/notes.md"}'
# Search GitHub repositories
llm mcp call-tool github__search_repositories \
--args '{"query": "mcp server", "limit": 5}'
# Setup filesystem server for documents
llm mcp add documents npx @modelcontextprotocol/server-filesystem \
~/Documents ~/Projects
# Use with LLM to organize files
llm -m gpt-4 $(llm mcp tools --server documents --format commands) \
"Create a summary of all README files in my Projects folder"
# Add server for code directory
llm mcp add codebase npx @modelcontextprotocol/server-filesystem \
/path/to/codebase
# Analyze code structure
llm -m claude-3-opus $(llm mcp tools --server codebase --format commands) \
"Analyze the Python files and identify potential refactoring opportunities"
# Store API keys once
llm keys set GITHUB_PERSONAL_ACCESS_TOKEN
# Add multiple servers (API keys automatically resolved)
llm mcp add docs npx @modelcontextprotocol/server-filesystem ~/Documents
llm mcp add code npx @modelcontextprotocol/server-filesystem ~/Code
llm mcp add github npx @modelcontextprotocol/server-github
# Use all tools together
llm -m gpt-4 $(llm mcp tools --format commands) \
"Compare my local documentation with similar projects on GitHub"
The plugin automatically resolves common API keys from LLM's secure storage, eliminating the need for --env flags:
# 1. Store API keys securely using LLM's key storage (one-time setup)
llm keys set FIRECRAWL_API_KEY
llm keys set GITHUB_PERSONAL_ACCESS_TOKEN
llm keys set OPENAI_API_KEY
# 2. Add servers without needing to specify --env flags
llm mcp add firecrawl npx -- -y firecrawl-mcp
llm mcp add github npx @modelcontextprotocol/server-github
# 3. Test servers - API keys are automatically resolved
llm mcp test firecrawl # ✓ Uses FIRECRAWL_API_KEY from storage
llm mcp test github # ✓ Uses GITHUB_PERSONAL_ACCESS_TOKEN from storage
Resolution Priority:
llm keys get KEY_NAME)# Check overall status
llm mcp status
# List all servers with their status
llm mcp list --with-status
# Disable unused servers
llm mcp disable old-server
# Test specific server
llm mcp test docs
# Get detailed information
llm mcp describe docs
# Test the connection
llm mcp test servername
# Check server status
llm mcp describe servername
# Try restarting the server
llm mcp stop servername
llm mcp start servername
# Ensure server is enabled
llm mcp enable servername
# List tools for specific server
llm mcp tools --server servername
# Check server has tools available
llm mcp test servername
# Get detailed server information
llm mcp describe servername
# Check overall plugin status
llm mcp status
# View server list with connection status
llm mcp list --with-status
# Test individual server connectivity
llm mcp test servername
This is an open-source project. Contributions are welcome!
# Clone the repository
git clone https://github.com/eugenepyvovarov/llm-mcp.git
cd llm-mcp
Apache 2.0 License - see LICENSE file for details.
For issues, questions, or suggestions:
GitHub checked 160h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.