Heuristic

v1.0.0Search & Data Extractionstable

Enhanced MCP server for semantic code search with call-graph proximity, recency ranking, and find-similar-code. Built for AI coding assistants.

ai-codingai-coding-toolscode-searchembeddingsmcp
Share:
21
Stars
0
Downloads
0
Weekly
0/5

What is Heuristic?

Heuristic is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enhanced mcp server for semantic code search with call-graph proximity, recency ranking, and find-similar-code. built for ai coding assistants.

Enhanced MCP server for semantic code search with call-graph proximity, recency ranking, and find-similar-code. Built for AI coding assistants.

This server falls under the Search & Data Extraction and Developer Tools categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enhanced MCP server for semantic code search with call-graph

Use Cases

Search code semantically using call-graph proximity and recency ranking.
Find similar code patterns for AI-assisted coding and refactoring.
softerist

Maintainer

LicenseMIT
Languagejavascript
Versionv1.0.0
UpdatedFeb 25, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx heuristic

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Heuristic

Heuristic MCP Server is a Node.js MCP server that brings semantic code search to AI coding assistants by indexing your codebase with vector embeddings and ranking results using call-graph proximity and file recency. Unlike simple text search, it understands the meaning of code queries and surfaces the most contextually relevant functions, classes, and modules — including similar code patterns useful for refactoring. Developers using Claude, Cursor, or other MCP-compatible assistants can connect Heuristic to any local repository and ask plain-language questions about their codebase to navigate large projects faster.

Prerequisites

  • Node.js 18 or higher (64-bit build recommended for optimal ONNX performance)
  • npm package manager
  • Internet connectivity for the initial embedding model download (model is cached locally after first run)
  • Windows users: Microsoft Visual C++ 2015-2022 Redistributable (x64) if native ONNX bindings fail
  • An MCP-compatible client such as Claude Desktop or VS Code with MCP support
1

Install Heuristic MCP globally

Install the package from npm. The global install makes the heuristic-mcp command available system-wide.

npm install -g @softerist/heuristic-mcp
2

Start the server and index your codebase

Run the start command from within (or pointing to) the repository you want to search. The server will download the embedding model on first run and build the index.

heuristic-mcp --start
3

Verify the server is running

Check the server status to confirm it is healthy and the index build has completed.

heuristic-mcp --status
4

Add to Claude Desktop configuration

Register the Heuristic MCP server in claude_desktop_config.json so Claude Desktop can connect to it automatically.

5

Monitor the cache and index

Use the cache command to watch indexing progress for large repositories or to verify that newly added files have been indexed.

heuristic-mcp --cache

Heuristic Examples

Client configuration

Claude Desktop configuration that connects to the locally running Heuristic MCP server.

{
  "mcpServers": {
    "heuristic": {
      "command": "heuristic-mcp",
      "args": ["--start"],
      "env": {}
    }
  }
}

Prompts to try

Example prompts that use semantic code search, call-graph proximity ranking, and similar-code discovery.

- "Find the function that handles user authentication in this codebase"
- "Search for all code that performs database connection pooling"
- "Show me code similar to the parseConfig function in src/config.ts"
- "Which modules call the sendEmail utility and how is it used?"
- "Find recently modified code related to error handling and logging"

Troubleshooting Heuristic

heuristic-mcp command not found after npm install -g

The npm global bin directory may not be on your PATH. Run 'npm config get prefix' to find it, then add <prefix>/bin to your PATH. On macOS with Homebrew Node: export PATH="$(npm config get prefix)/bin:$PATH"

Native ONNX binding errors on Windows

Install the Microsoft Visual C++ 2015-2022 Redistributable (x64) from the Microsoft website, then reinstall: npm install -g @softerist/heuristic-mcp

Search returns empty or irrelevant results

The embedding index may still be building. Run 'heuristic-mcp --cache' to check progress. For large repositories, allow several minutes for the initial index. Also confirm you started the server from the correct project root directory.

Frequently Asked Questions about Heuristic

What is Heuristic?

Heuristic is a Model Context Protocol (MCP) server that enhanced mcp server for semantic code search with call-graph proximity, recency ranking, and find-similar-code. built for ai coding assistants. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Heuristic?

Follow the installation instructions on the Heuristic GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Heuristic?

Heuristic works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Heuristic free to use?

Yes, Heuristic is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "heuristic": { "command": "npx", "args": ["-y", "heuristic"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Heuristic?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides