独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
A

angrysky56/ast-mcp-server

Query a semantic graph and AST of a codebase

装之前:没有可直接复制的命令 · 许可证未标注 · 链接可访问

第一步:git clone https://github.com/angrysky56/ast-mcp-server.git

在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网

我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →

来源明细
收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
评分构成
综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

# AST MCP Server

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

An MCP (Model Context Protocol) server that provides code structure and semantic analysis capabilities through Abstract Syntax Trees (AST) and Abstract Semantic Graphs (ASG).
## Features
Parse code into Abstract Syntax Trees (AST)
Generate Abstract Semantic Graphs (ASG) from code
Analyze code structure and complexity
Support for multiple programming languages (Python, JavaScript, TypeScript, Go, Rust, C/C++, Java)
Compatible with Claude Desktop and other MCP clients
Incremental parsing for faster processing of large files
Enhanced scope handling and more complete semantic analysis
AST diffing to identify changes between code versions
Resource caching for improved performance
## Installation
### Prerequisites
Python 3.9 or higher
uv package manager (recommended) or pip
### Using uv (Recommended)
1. Clone this repository:
bash
git clone https://github.com/angrysky56/ast-mcp-server.git
cd ast-mcp-server
2. Install the project and dependencies:
bash
# Install the project in development mode with all dependencies
uv sync
# Or install with specific optional dependencies
uv sync --extra dev # Development tools
uv sync --extra testing # Testing dependencies
uv sync --extra docs # Documentation tools
3. Build the tree-sitter parsers:
bash
uv run build-parsers
### Using pip (Alternative)
bash
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install -e .
# Build parsers
python buildparsers.py
## Usage with Claude Desktop
1. Configure Claude Desktop to use the server by editing your configuration file:
Location of config file:
macOS: ~/Library/Application Support/claude-desktop/claudedesktopconfig.json
Linux: ~/.config/claude-desktop/claudedesktopconfig.json
Windows: %APPDATA%\claude-desktop\claudedesktopconfig.json
2. Add the AST MCP server configuration:
json
"mcpServers": {
"AstAnalyzer": {
"command": "uv",
"args": [
"--directory",
"/home/ty/Repositories/aiworkspace/ast-mcp-server/astmcpserver",
"run",
"server.py"
Important: Replace /absolute/path/to/ast-mcp-server with the actual absolute path on your system.
3. Restart Claude Desktop to load the new MCP server.
4. In Claude Desktop, you can now use the AST-based code analysis tools by referencing code files or pasting code snippets.
## Development
### Development Environment Setup
bash
# Install with development dependencies
uv sync --extra dev
# Install pre-commit hooks (optional)
uv run pre-commit install
### Running in Development Mode
To run the server in development mode with the MCP inspector:
bash
# Using uv
uv run --extra dev -- -m mcp dev server.py
# Or using the development script
./devserver.sh
### Testing
bash
# Run all tests
uv run --extra testing pytest
# Run tests with coverage
uv run --extra testing pytest --cov=astmcpserver --cov-report=html
# Run specific tests
uv run --extra testing pytest tests/testspecific.py
### Code Quality
bash
# Format code
uv run black .
uv run isort .
# Lint code
uv run flake8 .
# Type checking
uv run mypy astmcpserver/
## Available Tools
The server provides the following tools for code analysis:
### Basic Tools
parsetoast: Parse code into an Abstract Syntax Tree
generateasg: Generate an Abstract Semantic Graph from code
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/angrysky56-ast-mcp-server/)
来源
awesome · https://github.com/angrysky56/ast-mcp-server
按领域浏览
MCP 服务
收录来源
10 个独立来源
收录于
今天

同类推荐

全部 6,229 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引