Tool search tools MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Tool search tools MCP
English | Русский
A tool for searching and using MCP tools. This project implements an MCP server that acts as an aggregator and proxy for other servers.
What problem does the project solve?
Modern LLMs (e.g., Claude) have context limits. When you connect multiple MCP servers directly:
Context Overflow: All tool descriptions are passed in the system prompt with every request. If there are dozens or hundreds of tools, they "eat up" the useful context volume and increase the cost of each message.
Reduced Response Quality: Due to the abundance of available functions, the model may get confused when choosing a suitable tool or ignore important instructions.
Client Limitations: Many clients (e.g., Claude Desktop) have limits on the number of simultaneously active tools.
Tool search tools MCP solves these problems by acting as a "tool for tools":
It hides all real tools behind two universal ones:
search_toolsandcall_tool.The model sees only these two tools, leaving the context clean.
When the model needs something, it first searches for a suitable tool by keywords, gets its schema, and then calls it via the proxy.
Related MCP server: fastmcp-gateway
Key Features
Aggregation: Access tools from different MCP servers (e.g., filesystem, git, sqlite) through a single server.
Smart Search: A dedicated
search_toolstool for filtering available functions. Uses fuzzy search and considers tool names, descriptions, and parameters.Skills (Macros): Define custom composite tools (skills) via YAML that chain multiple tool calls into a single action.
Keyword Generation: Automatic keyword extraction from tool definitions for improved search accuracy.
Hybrid Search: Support for both fuzzy search (
fuse.js) and semantic vector search (transformers.js) for better understanding of user intent.Context Saving: Instead of hundreds of tools, the model sees only two, which is critical for long dialogues.
Multilingual Support: Improved text processing with support for Cyrillic and other characters.
Embedding Caching: Persistent storage for tool embeddings to ensure fast startup and minimize CPU usage.
Dynamic Calling: The
call_tooltool for executing commands from found servers.Improved Logging: Support for file output, scope-based logging, and detailed log level configuration.
Security: Validation of responses from connected servers using Zod.
Installation
Clone the repository:
git clone https://github.com/fussraider/tool-search-tools-mcp.git cd tool-search-tools-mcpOr download the latest release.
Install dependencies:
pnpm install # or npm install, yarn
Usage
Running the Server
For development (with auto-reload):
pnpm dev # or npm run dev, yarn devFor production (build and run):
pnpm build # or npm run build, yarn build
pnpm start # or npm start, yarn startCLI Testing Utility
You can test the tool search directly from the command line:
pnpm search_tools "list directory contents"This will connect to all servers defined in your mcp-config.json, load their tools, and display the search results in your terminal.
Connecting to Claude Desktop or Other Clients
Add this server to your MCP client configuration. For example, for Claude Desktop:
Method 1: Using Node.js (recommended)
{
"mcpServers": {
"tool-search-tools-mcp": {
"command": "node",
"args": [
"/path/to/tool-search-tools-mcp/dist/server.js"
],
"env": {
"MCP_CONFIG_PATH": "/path/to/your/mcp-config.json",
"MCP_SKILLS_PATH": "/path/to/your/skills.yaml",
"MCP_SEARCH_MODE": "vector"
}
}
}
}Method 2: Using tsx (for development)
{
"mcpServers": {
"tool-search-tools-mcp": {
"command": "npx",
"args": [
"tsx",
"/path/to/tool-search-tools-mcp/src/server.ts"
],
"env": {
"MCP_CONFIG_PATH": "/path/to/your/mcp-config.json",
"MCP_SEARCH_MODE": "vector"
}
}
}
}Cursor / Antigravity / LM Studio / Other Clients
Most clients that support MCP via stdio follow the same pattern. You need to provide:
Command:
nodeArguments:
["/path/to/tool-search-tools-mcp/dist/server.js"]Environment Variables:
MCP_CONFIG_PATH(mandatory if not in default location),MCP_SEARCH_MODE(optional).
Configuration
The list of connected servers is configured in the mcp-config.json file in the project root or at the path specified
in the MCP_CONFIG_PATH environment variable.
Example mcp-config.json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"@modelcontextprotocol/server-filesystem",
"/your/path"
],
"env": {
"SOME_VAR": "value"
}
}
}
}Skills Configuration (Macros)
You can define custom "skills" that combine multiple tool calls into a single operation. Create a skills.yaml file (default location in project root, or set MCP_SKILLS_PATH).
Example skills.yaml:
skills:
- name: "research_topic"
description: "Searches for a topic and saves the summary to a file"
parameters:
topic: string
steps:
- tool: "search_google" # Tool from another connected server
args:
query: "{{topic}}"
result_var: "search_result"
- tool: "write_file"
args:
path: "./research/{{topic}}.txt"
content: "{{search_result}}"These skills will appear as regular tools in search results and can be called by the LLM.
Environment Variables
MCP_CONFIG_PATH: Path to the configuration file (default:mcp-config.jsonin the project directory).MCP_SKILLS_PATH: Path to the skills definition file (default:skills.yamlin the project directory).LOG_LEVEL: Logging level (DEBUG,INFO,WARN,ERROR). Default:INFO.LOG_FILE_PATH: Path to the file for writing logs. If not set, logs are output tostderr.LOG_SHOW_TIMESTAMP: Enables displaying date and time in logs. Default:false. Supported values to enable:true,1,yes(case-insensitive).MCP_SEARCH_MODE: Search mode. Options:fuse(default) orvector(semantic search).MCP_EMBEDDING_MODEL: The model used for generating embeddings. Default:Xenova/all-MiniLM-L6-v2.MCP_CACHE_DIR: Directory for storing cached embeddings. Default:.cache/embeddings.
Troubleshooting
Installation issues with sharp
The project uses transformers.js, which depends on the sharp library. On some systems (especially macOS Apple
Silicon), pnpm might block the installation of native dependencies for security reasons. If you see errors related to
sharp, ensure that you are using the latest package.json with the pnpm.onlyBuiltDependencies section, or run:
pnpm installIf the issue persists, you may need to explicitly allow building dependencies or reinstall them:
rm -rf node_modules pnpm-lock.yaml
pnpm installFAQ
The cache is only created and used in vector search mode. It is automatically updated when tool definitions change, and any outdated or unused entries are removed. To force a full re-index, simply delete this directory.
Project Structure
src/server.ts— Main MCP server file. Entry point that initializes the server and registered tools.src/cli.ts— CLI utility for testing tool search directly from the terminal.src/mcp/— MCP logic:registry.ts— Connection management for other servers, tool extraction, and keyword generation for search.skills.ts— Skills (macros) loading and execution engine.search.ts— Fuzzy search algorithm usingfuse.jsand semantic vector search.executor.ts— Proxy logic for calling tools on connected servers.
src/utils/— Utilities:logger.ts— Custom logger with file support and log levels.embeddings.ts— Service for generating and caching vector embeddings.text.ts— Text processing and normalization utilities.
mcp-config.json— Configuration file for connected MCP servers.skills.yaml— Configuration file for defining custom skills.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Search, vet & assemble MCP servers from your agent: verified tools, risk labels, and trust scores.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAggregates multiple Model Context Protocol servers into a single gateway to provide unified search, description, and execution of tools. It reduces context limit issues by dynamically fetching specific tool schemas only when needed rather than loading all available tools at once.22MIT
- AlicenseNot gradedqualityBmaintenanceAggregates tools from multiple upstream MCP servers and exposes them through 4 meta-tools, enabling LLMs to discover and use hundreds of tools without loading all schemas upfront.5Apache 2.0
- AlicenseAqualityDmaintenanceAggregates tools from multiple MCP servers, acting as a proxy to provide unified access to various AI agents and tools.1034 npm3MIT
- FlicenseNot gradedqualityDmaintenanceAggregates multiple MCP servers and custom Python tools behind a single endpoint, with intelligent context and tool discovery for AI agents.-