Search Tools MCP Server logo

Search Tools MCP Server

Community
voxmenthe

An MCP server that enhances code analysis with advanced search and dependency mapping capabilities.

Publishervoxmenthe
Repositorysearch-tools-mcp
LanguagePython
Forks
3
Stars
32
Available tools
0
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Search Tools MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    32 stars and 3 forks from the linked repository.

🔍 Search Tools MCP Server

⚡ An intelligent Model Context Protocol (MCP) server that supercharges code analysis with advanced search capabilities and dependency mapping

🌟 Overview

The Search Tools MCP Server is a powerful toolkit that combines traditional code search with intelligent analysis algorithms. It leverages the CodeRank algorithm (inspired by PageRank) to identify the most critical modules in your codebase and provides sophisticated search capabilities that go beyond simple text matching.

🎯 Key Features

🔎 Smart Search Capabilities

  • Contextual Keyword Search: Ripgrep-powered search with configurable context lines
  • Symbol Discovery: Extract and analyze functions, classes, methods, and modules
  • Usage Tracking: Find where symbols are used across your codebase
  • Priority-Ranked Results: Search results ranked by code importance

🧠 Intelligence & Analysis

  • CodeRank Algorithm: Identify the most critical modules using network analysis
  • Dependency Mapping: Trace complex dependency chains and impact analysis
  • Hotspot Detection: Find code areas that are both highly connected and frequently used
  • Refactoring Impact: Analyze the potential impact of code changes

🎨 Advanced Filtering

  • Symbol type filtering (functions, methods, classes)
  • File inclusion/exclusion patterns
  • External module dependency tracking
  • Markdown documentation analysis

🛠️ Installation

Prerequisites

  • Python 3.13+
  • uv package manager
  • kit CLI tool (for symbol analysis)
  • ripgrep (for fast text search)

Setup

bash
# Clone the repository
git clone <repository-url>
cd search-tools

# Install dependencies
uv sync

⚙️ Configuration

Adding to Cursor/Windsurf

Add the following configuration to your mcp.json file:

json
{
  "mcpServers": {
    "search-tools": {
      "command": "/path/to/uv",
      "args": [
        "run",
        "--directory",
        "/path/to/search-tools",
        "main.py"
      ]
    }
  }
}

For macOS users with Homebrew:

json
{
  "mcpServers": {
    "search-tools": {
      "command": "/Users/yourusername/.local/bin/uv",
      "args": [
        "run",
        "--directory",
        "/path/to/your/search-tools/directory",
        "main.py"
      ]
    }
  }
}

To add to claude code:

bash
claude mcp add-json search-tools '{"type":"stdio","command":"/Users/yourusername/.local/bin/uv","args":[ "run", "--directory", "/path/to/your/search-tools/directory", "main.py"]}'

📍 Finding Your Paths

To find the correct paths for your system:

bash
# Find uv location
which uv

# Get absolute path to search-tools directory  
pwd  # (run this from the search-tools directory)

🚀 Available Tools

🔍 contextual_keyword_search

Search for keywords with configurable context lines around matches.

Parameters:

  • keyword: Search term (case insensitive)
  • working_directory: Absolute path to search directory
  • num_context_lines: Lines of context (default: 2)

🏗️ get_repo_symbols

Extract symbols (functions, classes, methods) from your codebase.

Parameters:

  • repo: Repository path
  • working_directory: Command execution directory
  • keep_types: Filter by symbol types
  • file_must_contain/file_must_not_contain: File filtering

📊 get_symbol_usages

Find where specific symbols are used throughout your codebase.

Parameters:

  • repo: Repository path
  • symbol_name_or_substring: Symbol to search for
  • working_directory: Command execution directory
  • symbol_type: Optional type filter

🎯 coderank_analysis

Analyze repository importance using the CodeRank algorithm.

Parameters:

  • repo_path: Repository to analyze
  • external_modules: Comma-separated external dependencies
  • top_n: Number of top modules to return (default: 10)
  • analyze_markdown: Include markdown files
  • output_format: "summary", "detailed", or "json"

🔥 find_code_hotspots

Identify critical code areas combining connectivity and usage frequency.

Parameters:

  • repo_path: Repository path
  • working_directory: Command execution directory
  • min_connections: Minimum import connections (default: 5)
  • include_external: Include external dependencies
  • top_n: Number of hotspots to return (default: 20)

🌐 trace_dependency_impact

Trace dependency chains and analyze refactoring impact.

Parameters:

  • repo_path: Repository path
  • target_module: Module to analyze
  • working_directory: Command execution directory
  • analysis_type: "dependency", "refactoring", or "both"
  • max_depth: Maximum trace depth (default: 3)
  • change_type: "modify", "split", "merge", or "remove"

🎪 smart_code_search

Enhanced search combining ripgrep with CodeRank prioritization.

Parameters:

  • keyword: Search term (supports regex)
  • repo_path: Repository path
  • working_directory: Command execution directory
  • rank_results: Sort by module importance
  • context_lines: Context lines around matches (default: 3)
  • max_results: Maximum results to return (default: 20)

🧪 Development & Testing

Running the Server

bash
# Development mode
uv run mcp dev main.py

# Testing with MCP Inspector
npx @modelcontextprotocol/inspector python main.py

🔧 Dependencies

  • mcp[cli]: Model Context Protocol framework
  • cased-kit: Symbol analysis toolkit
  • networkx: Graph analysis for CodeRank algorithm

🎨 Algorithm Details

CodeRank Algorithm

The CodeRank algorithm treats your codebase as a directed graph where:

  • Nodes: Python modules, classes, functions, methods
  • Edges: Import relationships and dependencies
  • Weights: Different weights for internal vs external dependencies

This creates a ranking system that identifies the most "central" and important parts of your codebase, similar to how PageRank identifies important web pages.

💡 Use Cases

  • 🔍 Code Exploration: Quickly understand large codebases
  • 🏗️ Refactoring Planning: Identify high-impact areas before changes
  • 📚 Documentation: Find the most important modules to document first
  • 🐛 Bug Investigation: Focus on critical code paths
  • 👥 Code Review: Prioritize review efforts on important modules

🤝 Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

📄 License

This project is open source. Please check the license file for details.


🔮 Powered by the CodeRank Algorithm & Model Context Protocol

Making code search intelligent, one repository at a time

Use Search Tools MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Search Tools MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Search Tools MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Search Tools MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "search-tools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Search Tools MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Search Tools MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Search Tools MCP Server to help me with this task?
Search Tools MCP Server
Sure. I read it.
Here is what I found using Search Tools MCP Server.

Frequently asked questions

What is the Search Tools MCP Server MCP server used for?

Search Tools MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Search Tools MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Search Tools MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Search Tools MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Search Tools MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Search Tools MCP Server MCP to TypingMind?

Search Tools MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Search Tools MCP Server MCP provide in TypingMind?

Search Tools MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Search Tools MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Search Tools MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇