Mantic

v1.0.0Developer Toolsstable

A structural code search engine for Al agents.

ai-agentclaudecode-searchcontext-retrievalcursor
Share:
548
Stars
0
Downloads
0
Weekly
0/5

What is Mantic?

Mantic is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to structural code search engine for al agents.

A structural code search engine for Al agents.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A structural code search engine for Al agents.

Use Cases

Search codebases structurally with AI-powered code search.
Retrieve relevant code context for agents and editors quickly.
marcoaapfortes

Maintainer

LicenseNOASSERTION
Languagetypescript
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mantic-sh

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 Mantic

Mantic is a structural code search engine designed for AI agents that enables intelligent retrieval of relevant code context from large codebases. By connecting Mantic to Claude or Cursor, you gain the ability to search and understand code structure at scale, making it easier to provide agents with the precise context needed for code comprehension and modification tasks.

Prerequisites

  • Node.js 18+ installed on your system
  • An MCP client (Claude Desktop, Cursor, or VS Code with MCP support)
  • Access to your codebase for indexing
1

Install Mantic via npx

Run the Mantic server using npx, which will start the structural code search engine on your system.

npx mantic-sh
2

Add Mantic to your MCP client configuration

Update your client config file to include the Mantic server. Add a new entry under mcpServers with the Mantic command.

{
  "mcpServers": {
    "mantic": {
      "command": "npx",
      "args": ["mantic-sh"]
    }
  }
}
3

Index your codebase

Point Mantic to your codebase directory so it can build an index for structural searches.

# Configure Mantic to index your project
# See repository README for exact indexing command
4

Restart your MCP client

Restart Claude Desktop, Cursor, or your MCP client to load the Mantic server connection.

5

Verify Mantic is connected

Test that Mantic is working by asking your AI agent to search for code patterns in your indexed codebase.

Mantic Examples

Client Configuration

How to add Mantic to your claude_desktop_config.json

{
  "mcpServers": {
    "mantic": {
      "command": "npx",
      "args": ["mantic-sh"]
    }
  }
}

Prompts to try

Example prompts for using Mantic with your AI agent

1. "Search for all function definitions that use async/await patterns in my codebase"
2. "Find all imports of the React library and show me how they're being used"
3. "Locate all error handling blocks and suggest improvements"

Troubleshooting Mantic

Mantic server fails to start with 'command not found'

Ensure Node.js 18+ is installed and npx is in your PATH. Try running 'npx mantic-sh' directly in terminal to verify installation.

AI agent cannot find code patterns in search results

Verify that your codebase has been properly indexed. Consult the Mantic repository README for indexing setup and configuration options.

Frequently Asked Questions about Mantic

What is Mantic?

Mantic is a Model Context Protocol (MCP) server that structural code search engine for al agents. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Mantic?

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

Which AI clients work with Mantic?

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

Is Mantic free to use?

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

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

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

Read the full setup guide →

Ready to use Mantic?

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