Code Scanner Server MCP Server

A CLI tool and MCP server that scans code files for definitions (classes, functions, etc.), respects .gitignore, provides line numbers, and outputs

Local serverstdioPython

What is the Code Scanner Server MCP Server?

A CLI tool and MCP server that scans code files for definitions (classes, functions, etc.), respects .gitignore, provides line numbers, and outputs LLM-friendly

The short version

This project provides a versatile code scanning tool built with TypeScript and Node.js. It leverages the Tree-sitter parsing library to analyze source code and extract structural information. It can operate both as a command-line interface (CLI) tool and as an MCP (Model Context Protocol) server.

  • Code Definition Extraction: — Identifies functions, classes, variables, interfaces, methods, etc
  • Multi-Language Support: — Parses JavaScript (.js, .jsx), TypeScript (.ts, .tsx), C# (.cs), PHP (.php), CSS (.css), and Python (.py) via Tree-sitter
  • .gitignore Aware: — Automatically respects rules defined in .gitignore files
  • Flexible Filtering: — Filter results by definition type, modifiers (public, private), name patterns (regex), and file path patterns
  • Multiple Output Formats: — Generates results in Markdown (default), XML, or JSON
  • Configurable Detail Levels: — Output verbosity: minimal, standard (default), detailed

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Frequently asked questions

A CLI tool and MCP server that scans code files for definitions (classes, functions, etc.), respects .gitignore, provides line numbers, and outputs LLM-friendly Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.