AST MCP Server

MCP server for Abstract Syntax Tree (AST) analysis of source code. Enables AI agents to parse source code into ASTs, query code structure, extract function definitions and class hierarchies, analyze code patterns, and perform structural code analysis — supporting AI-driven code understanding and refactoring workflows.

Evaluated Mar 06, 2026 (0d ago) vcurrent
Homepage ↗ Repo ↗ Developer Tools ast abstract-syntax-tree code-analysis parsing mcp-server static-analysis
⚙ Agent Friendliness
72
/ 100
Can an agent use this?
🔒 Security
73
/ 100
Is it safe for agents?
⚡ Reliability
64
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
63
Documentation
63
Error Messages
62
Auth Simplicity
96
Rate Limits
93

🔒 Security

TLS Enforcement
72
Auth Strength
75
Scope Granularity
68
Dep. Hygiene
68
Secret Handling
80

Local parsing. No credentials. Source code stays local. Low risk.

⚡ Reliability

Uptime/SLA
68
Version Stability
63
Breaking Changes
62
Error Recovery
63
AF Security Reliability

Best When

A developer building code analysis or refactoring agents needs structural understanding of source code — using AST parsing to extract code structure beyond simple text search.

Avoid When

Simple grep/regex-based code search satisfies your needs. AST parsing adds complexity — evaluate whether structural analysis is actually required.

Use Cases

  • Parsing source code into ASTs from code analysis agents
  • Extracting function signatures and class structures from codebase understanding agents
  • Analyzing code patterns and dependencies from refactoring agents
  • Supporting AI code review with structural code analysis

Not For

  • Runtime debugging (AST is static analysis)
  • Binary/compiled code analysis without source
  • Teams with existing LSP-based tools covering the same functionality

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: none
OAuth: No Scopes: No

Local code analysis — no authentication required.

Pricing

Model: free
Free tier: Yes
Requires CC: No

Free open source AST analysis tool.

Agent Metadata

Pagination
none
Idempotent
Full
Retry Guidance
Not documented

Known Gotchas

  • Language support varies — verify which programming languages the AST parser supports
  • AST structure differs by language and parser version — agents must understand language-specific AST
  • Large codebases can be slow to parse — implement caching or selective file parsing
  • Community tool at 30 stars — evaluate maintenance before production dependency

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for AST MCP Server.

$99

Scores are editorial opinions as of 2026-03-06.

5226
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered