MCP Tool Search CLI
Command-line interface for searching and filtering MCP server tools.Command Overview
Options
| Option | Description | Example |
|---|---|---|
<query> | Text to search in name/description | "memory" |
--category <cat> | Filter by category | --category file |
--tag <tag> | Filter by tag (repeatable) | --tag search --tag web |
--read-only | Show only read-only tools | --read-only |
--json | Output in JSON format | --json |
--limit <n> | Max results per page | --limit 10 |
--cursor <cursor> | Pagination cursor | --cursor NTA |
Basic Usage
Search by Query
Search by Category
Search Read-Only Tools
Combined Filters
JSON Output
Basic JSON
JSON with Pagination
Pagination
First Page
Next Page
Iterate All Pages
Examples
Find Destructive Tools
Export Search Results
Count Results
Search with jq Processing
Build Tool Inventory
Error Handling
No Results
Invalid Cursor
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success (even with no results) |
| 1 | Error (invalid cursor, etc.) |
Comparison with list-tools
| Feature | list-tools | tools search |
|---|---|---|
| List all tools | ✓ | ✓ |
| Query filter | ✗ | ✓ |
| Category filter | ✗ | ✓ |
| Tag filter | ✗ | ✓ |
| Read-only filter | ✗ | ✓ |
| Pagination | ✓ | ✓ |
| JSON output | ✓ | ✓ |
| Total count | ✗ | ✓ |
list-tools for simple listing, tools search for filtering.
See Also
- MCP Tool Search Module - Code-based search usage
- MCP Pagination CLI - Pagination details
- MCP Tool Annotations CLI - View tool annotations
- MCP CLI Overview - All MCP CLI commands

