TurboMCP CLI
Command-line interface for interacting with MCP servers - list tools, call tools, and export schemas.
Overview
turbomcp-cli
provides essential tools for working with MCP (Model Context Protocol) servers. Connect to any MCP server via HTTP or WebSocket to explore available tools, execute them, and export their schemas.
Features
- 🔧 Tool Management - List and call tools on running MCP servers
- 📋 Schema Export - Export tool schemas for documentation and validation
- 🌐 Multi-Transport - Support for HTTP and WebSocket connections
- 📊 JSON Output - Machine-readable output for automation
Installation
From Crates.io
# Install latest stable version
# Install specific version
From Source
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:
schema-export
- 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 --command
option 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 high-performance Rust SDK for the Model Context Protocol.