TurboMCP CLI
CLI for MCP servers with complete protocol support
Table of Contents
Overview
turbomcp-cli is a command-line interface for the Model Context Protocol, built on the turbomcp-client library. It provides complete MCP protocol coverage with rich, multi-format output and smart transport auto-detection.
Features
- 🎯 Complete MCP Protocol - All operations: tools, resources, prompts, completions, sampling, logging
- 🔧 Tool Management - List, call, and export tool schemas
- 📦 Resource Access - List, read, and subscribe to MCP resources
- 💬 Prompt Operations - List and execute prompts with arguments
- 🌐 Multi-Transport - STDIO (child process), TCP, Unix sockets, HTTP SSE, WebSocket
- 🚀 Smart Auto-Detection - Automatically detects transport from URL format
- 🎨 Rich Output - Human, JSON, YAML, and table formats with colored output
- 🛡️ Built on Core Libraries - Uses
turbomcp-clientandturbomcp-transport - ⚡ Error Handling - Comprehensive error handling with actionable suggestions
Installation
From Crates.io
# Install latest stable version
# Install specific version
From Source
Quick Start
# List tools from a server
# Call a tool with arguments
# Get server information
# List resources
# Work with prompts
Usage
)
)
)
)
)
Connection Options
All commands support these connection options:
--url <URL>- Server URL for HTTP/WebSocket or command path for STDIO (default:http://localhost:8080/mcp)--command <COMMAND>- Command to execute for STDIO transport (overrides--url)--auth <AUTH>- Bearer token or API key for authentication--json- Output results in JSON format
Commands
tools list - List Available Tools
List all tools available from an MCP server.
# List tools from HTTP server
# List tools from WebSocket server
# List tools from STDIO server
Example Output:
Available Tools:
- calculator_add: Add two numbers together
- file_read: Read contents of a file
- search_web: Search the web for information
Total: 3 tools
tools call - Call a Tool
Execute a specific tool on the MCP server.
# Call a tool with JSON parameters (HTTP)
# Call a tool via WebSocket
# Call a tool via STDIO
Example Output:
tools schema - Export Tool Schemas
Export JSON schemas for all tools from an MCP server.
# Export schemas to stdout (HTTP)
# Export schemas to file (HTTP)
# Export schemas from STDIO server
Example Output:
Transport Support
The CLI supports three transport methods:
HTTP/HTTPS
WebSocket
STDIO (Standard Input/Output)
# Using --command option
# Or specify path in --url (auto-detected)
Transport Auto-Detection:
- URLs starting with
http://,https://→ HTTP transport - URLs starting with
ws://,wss://→ WebSocket transport --commandoption or executable paths → STDIO transport
Examples
# List tools from HTTP server
# Call calculator tool via STDIO
# Export all schemas to file via WebSocket
# Test STDIO server with authentication
Related Tools
- turbomcp - Main TurboMCP framework
- turbomcp-server - Server implementation
- turbomcp-client - Client implementation
- turbomcp-transport - Transport protocols
License
Licensed under the MIT License.
Part of the TurboMCP Rust SDK for the Model Context Protocol.