MCP Tool Search Module
The MCP Server V2 provides a powerful tool search capability as an extension method (tools/search). This is not part of the core MCP spec but provides valuable server-side filtering.
Overview
Tool search supports:- Text query: Search in name, description, and tags
- Category filter: Filter by tool category
- Tags filter: Filter by one or more tags
- Annotation filter: Filter by
readOnlyHint - Pagination: Results are paginated like
tools/list
Code Usage
Basic Search
Search by Category
Search by Read-Only Hint
Search by Tags
Combined Filters
Paginated Search
Server Handler
The MCP server exposes search via thetools/search method:
Request Parameters
| Parameter | Type | Description |
|---|---|---|
query | string | Text to search in name, description, tags |
category | string | Filter by category |
tags | array | Filter by tags (any match) |
readOnly | boolean | Filter by readOnlyHint |
cursor | string | Pagination cursor |
Response Format
Search Algorithm
The search implementation:-
Query matching: Case-insensitive search in:
- Tool name
- Tool description
- Tool tags (if any)
- Filter application: All filters are AND-ed together
- Sorting: Results are sorted by name for deterministic ordering
- Pagination: Applied after filtering and sorting
Example: Tool Discovery
See Also
- MCP Tool Search CLI - CLI commands for tool search
- MCP Pagination - Pagination details
- MCP Tool Annotations - Annotation hints

