1. Conduid
  2. Developer Tools
  3. Tree Sitter
MCP server · Developer Tools

Tree Sitter

MCP Server for Tree-sitter

Unclaimed MIT last commit 6 months ago cincrementalparserparsingrusttree-sitterwasm
65Good

Scored 20 hours ago · breakdown

About Tree Sitter

Tree Sitter is an MCP server published by wrale in the Developer Tools category: mCP Server for Tree-sitter. Conduid read 26 tools from its source: adapt_query, analyze_complexity, analyze_project, build_query, check_language_available, clear_cache and 20 more. It is published to PyPI as mcp-server-tree-sitter and runs with uvx.

The repository has 311 stars and 45 forks, is licensed MIT, and its last commit was on 21 May 2026. The latest release is v0.7.0 (9 Apr 2026): What's Changed since v0.6.0 Features feat: multi-language template listing, capture name filter, and compact query results (#42) — closes #19, #20, #21 feat: AST-based f… The release before it was v0.6.0 (9 Apr 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include c, incremental, parser, parsing, tree-sitter and wasm.

Install

uvx
uvx mcp-server-tree-sitter
pip
pip install mcp-server-tree-sitter
From source
git clone https://github.com/wrale/mcp-server-tree-sitter

Tools (26)

adapt_queryAdapt a query from one language to another.
ParameterTypeDescription
from_language *stringSource language
query *stringOriginal query string
to_language *stringTarget language
analyze_complexityAnalyze code complexity.
ParameterTypeDescription
file_path *stringPath to the file
project *stringProject name
analyze_projectAnalyze overall project structure.
ParameterTypeDescription
project *stringProject name
scan_depthintegerDepth of detailed analysis (higher is slower)
build_queryBuild a tree-sitter query from templates or patterns.
ParameterTypeDescription
combinestringHow to combine patterns ("or" or "and")
language *stringLanguage name
patterns *arrayList of template names or custom patterns
check_language_availableCheck if a tree-sitter language parser is available.
ParameterTypeDescription
language *stringLanguage to check
clear_cacheClear the parse tree cache.
ParameterTypeDescription
file_pathstringOptional specific file to clear cache for
projectstringOptional project to clear cache for
configureConfigure the server.
ParameterTypeDescription
cache_enabledbooleanWhether to enable parse tree caching
config_pathstringPath to YAML config file
log_levelstringLogging level (DEBUG, INFO, WARNING, ERROR)
max_file_size_mbintegerMaximum file size in MB
diagnose_configDiagnose issues with YAML configuration loading.
ParameterTypeDescription
config_path *stringPath to YAML config file
find_similar_codeFind code structurally similar to a snippet using AST fingerprinting.
ParameterTypeDescription
languagestringLanguage of the snippet (required)
max_resultsintegerMaximum number of results
project *stringProject name
snippet *stringCode snippet to find similar code for
thresholdnumberMinimum Jaccard similarity (0.0-1.0, default 0.6)
find_textSearch for text pattern in project files.
ParameterTypeDescription
case_sensitivebooleanWhether to do case-sensitive matching
context_linesintegerNumber of context lines to include
file_patternstringOptional glob pattern (e.g., "**/*.py")
max_resultsintegerMaximum number of results
pattern *stringText pattern to search for
project *stringProject name
use_regexbooleanWhether to treat pattern as a regular expression
whole_wordbooleanWhether to match whole words only
find_usageFind usage of a symbol.
ParameterTypeDescription
file_pathstringOptional file to look in (for local symbols)
languagestringLanguage to search in
project *stringProject name
symbol *stringSymbol name to find
get_astGet abstract syntax tree for a file.
ParameterTypeDescription
include_textbooleanWhether to include node text
max_depthintegerMaximum depth of the tree (default: 5)
path *stringFile path relative to project root
project *stringProject name
get_dependenciesFind dependencies of a file.
ParameterTypeDescription
file_path *stringPath to the file
project *stringProject name
get_fileGet content of a file.
ParameterTypeDescription
max_linesintegerMaximum number of lines to return
path *stringFile path relative to project root
project *stringProject name
start_lineintegerFirst line to include (0-based)
get_file_metadataGet metadata for a file.
ParameterTypeDescription
path *stringFile path relative to project root
project *stringProject name
get_node_at_positionFind the AST node at a specific position.
ParameterTypeDescription
column *integerColumn number (0-based)
path *stringFile path relative to project root
project *stringProject name
row *integerLine number (0-based)
get_node_typesGet descriptions of common node types for a language.
ParameterTypeDescription
language *stringLanguage name
get_query_template_toolGet a predefined tree-sitter query template.
ParameterTypeDescription
language *stringLanguage name
template_name *stringTemplate name (e.g., "functions", "classes")
get_symbolsExtract symbols from a file.
ParameterTypeDescription
file_path *stringPath to the file
project *stringProject name
symbol_typesarrayTypes of symbols to extract (functions, classes, imports, etc.)
list_filesList files in a project.
ParameterTypeDescription
extensionsarrayList of file extensions to include (without dot)
max_depthintegerMaximum directory depth
patternstringOptional glob pattern (e.g., "**/*.py")
project *stringProject name
list_languagesList available languages.
list_projects_toolList all registered projects.
list_query_templates_toolList available query templates.
ParameterTypeDescription
languagestringOptional language to filter by
register_project_toolRegister a project directory for code exploration.
ParameterTypeDescription
descriptionstringOptional description of the project
namestringOptional name for the project (defaults to directory name)
path *stringPath to the project directory
remove_project_toolRemove a registered project.
ParameterTypeDescription
name *stringProject name
run_queryRun a tree-sitter query on project files.
ParameterTypeDescription
capture_filterstringOptional capture name to filter results (e.g. "class.name")
compactbooleanIf true, return only {capture, text} per match
file_pathstringOptional specific file to query
languagestringLanguage to use (required if file_path not provided)
max_resultsintegerMaximum number of results
project *stringProject name
query *stringTree-sitter query string

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.6K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by uv.lock.
  • ✓No dynamic code executionScanned 55 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiosrc/mcp_server_tree_sitter/server.py:166
Starts other programs
No calls that start other programs
Outbound network calls
No outbound network calls
Writes or deletes files
No file writes or deletes
Lockfile
uv.lock

Pattern matches on the source text of 55 files: places to read, not proof of what the code does at run time.

Releases

v0.7.0v0.7.0 · 9 Apr 2026What's Changed since v0.6.0 Features feat: multi-language template listing, capture name filter, and compact query results (#42) — closes #19, #20, #21 feat: AST-based `find_similar_code` using structural fingerprinting (#47) — fixes #45…
v0.6.0v0.6.0 · 9 Apr 2026What's Changed Bug Fixes fix: language loading on startup — circular import broke all language pre-loading (#28) by @damonswayn fix: register csharp language — `c_sharp` → `csharp` to match tree-sitter-language-pack (#18) by @vlamai fix:…

README

The repository's README runs to about 1.6K words, fetched yesterday. The original in the repository is authoritative.

Read full README
Questions

About Tree Sitter

How do I install Tree Sitter?

Run uvx mcp-server-tree-sitter, then add the server to your MCP client's configuration.

Is Tree Sitter safe to use with an AI agent?

Its trust score is 65 out of 100 (good). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 55 source files found that it serves MCP over stdio. Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Tree Sitter still maintained?

The last commit was 6 months ago and 4 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Tree Sitter provide?

Conduid read 26 tools from the source: adapt_query, analyze_complexity, analyze_project, build_query, check_language_available, clear_cache, configure, diagnose_config and 18 more. 24 of them publish their parameters, listed under Tools above.

What license is Tree Sitter released under?

The repository declares the MIT license. That applies to the latest release, v0.7.0, as well.