mcp-ast-explorer
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-ast-explorershow signature for process_data in app/utils.py"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-ast-explorer
MCP server for deterministic Python codebase symbol exploration.
mcp-ast-explorer indexes Python source files with LibCST and exposes focused MCP tools for codebase onboarding: definition lookup, function signatures, local references, direct call chains, and simple class hierarchy queries.
Codebase Onboarding Stack
mcp-ast-explorer is the semantic symbol layer in a three-server MCP tool stack for Project 6 wayfinder, a codebase onboarding agent.
mcp-repo-mappermaps repository structure, languages, entry points, framework evidence, and Python dependency edges.mcp-ast-explorerprovides symbol-grounded Python definition, signature, reference, call-chain, and class-hierarchy lookups.mcp-test-runnerruns local pytest/Jest checks and coverage summaries so agent claims can be verified against execution.
In wayfinder, this server feeds entry-point and symbol explanation while refusing to invent missing symbols.
Related MCP server: code-intelligence-mcp
Status
This is a Python-only v1. TypeScript is registered as an unsupported backend placeholder so the server has an explicit extension point, but TypeScript analysis is not implemented yet.
The server does not use an LLM for symbol lookup. If a requested symbol or class is not present in the parsed index, tools return a structured not-found result instead of inventing an answer.
Tools
Tool | Purpose |
| Returns |
| Finds a module, class, function, or method definition. |
| Returns the signature for a function or method symbol. |
| Returns same-module CST name references for an existing symbol. |
| Returns direct callers detected from local references. |
| Returns direct subclasses detected from simple base-class names. |
Supported Scope
Python files parsed by LibCST.
Symbol kinds: modules, classes, functions, and methods.
Same-module reference lookup for simple names.
Direct caller detection from function or method containers.
Direct subclass detection for simple
class Child(Base):inheritance.Structured error responses for unsupported languages and missing symbols.
Current Limitations
Cross-file imports and package-wide resolution are out of scope for v1.
Aliases, star imports, dynamic attribute access, and qualified references are not resolved.
call_chaincurrently returns direct callers only; recursive multi-hop expansion is not implemented.class_hierarchycurrently returns direct subclasses only and handles simple base names.TypeScript is intentionally unsupported in v1.
Local Development
Install dependencies:
uv sync --extra devRun the MCP server:
uv run mcp-ast-explorerRun verification:
uv run ruff check .
uv run mypy
uv run pytestLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LovRanRan/mcp-ast-explorer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server