The MCP Tree-sitter Server provides code analysis capabilities through abstract syntax tree (AST) parsing, enabling AI assistants to intelligently explore and understand codebases across multiple programming languages including Python, JavaScript, TypeScript, Go, Rust, and others. It offers tools for flexible code examination at various levels of granularity, symbol extraction for functions and classes, dependency analysis, searchable tree-sitter queries, and parse tree caching to optimize context window usage. The server solves the problem of giving language models structured, context-aware access to code repositories while managing information density to avoid overwhelming token limits.
claude mcp add --transport stdio wrale-mcp-server-tree-sitter uvx mcp-server-tree-sitter