ast-graph

ast-graph is an MCP server for Claude Code from davenportjw/agent-skills. Its token cost is not measured, scanned A, original, Apache-2.0.

An MCP server that builds a graph from a program's abstract syntax tree, the structured representation of source code used to understand its parts and relationships.

In plain words
What is it for?
Use it where an MCP-compatible coding agent needs access to relationships in TypeScript source code.
Why use it?
It can provide a structured view of code instead of treating source files as plain text, although the supplied description does not state which queries it supports.

MCP server for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: listed in a Claude config.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ast-graph plugin — 1 skill, 2 hooks, 1 MCP server shipped together

Good fit Use it where an MCP-compatible coding agent needs access to relationships in TypeScript source code.

Compare 6 mcp servers from other repositories ↓

Installing this writes the configuration, not the program: `sh` has to be on your PATH already, or the server will not start.

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add davenportjw/agent-skills
Claude Code
/plugin install ast-graph

Installing this writes the configuration, not the program: `sh` has to be on your PATH already, or the server will not start.

Made for: Claude Code.

Or install ast-graph, the plugin that ships this one along with the rest of its 1 skill, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ast-graph

README.md
[![agentmods](https://agentmods.dev/badge/mcp/davenportjw/agent-skills/ast-graph-ast-graph/github.svg)](https://agentmods.dev/mcp/davenportjw/agent-skills/ast-graph-ast-graph)
Your own site
<a href="https://agentmods.dev/mcp/davenportjw/agent-skills/ast-graph-ast-graph"><img src="https://agentmods.dev/badge/mcp/davenportjw/agent-skills/ast-graph-ast-graph/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ast-graph

Your own site · 80×15
<a href="https://agentmods.dev/mcp/davenportjw/agent-skills/ast-graph-ast-graph"><img src="https://agentmods.dev/badge/mcp/davenportjw/agent-skills/ast-graph-ast-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

ast-graph scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ast-graph/.mcp.json · 9 lines

What it actually says

{
  "ast-graph": {
    "command": "sh",
    "args": [
      "-c",
      "R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -d \"$R/node_modules/typescript\" ] || (cd \"$R\" && npm install --omit=dev --no-audit --no-fund --silent) >&2; exec node --no-warnings \"$R/dist/mcp.js\""
    ]
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 9 lines scan A fe07ef573e7b

Subscribe to this mod's changes

ast-graph is an MCP server published in the GitHub repository davenportjw/agent-skills (4 stars, last pushed 2d ago), licensed Apache-2.0. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.

Related

ast-graph compared with mcp servers from other repositories

ast-graph next to 6 mcp servers from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ast-graphdavenportjw/agent-skillsMCP server42d agoApache-2.0A—Claude Code
dbgprobe-mcp-serveres617/dbgprobe-mcp-serverMCP server118mo agoMITA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode
repo-lens-mcpYohannHommet/repo-lens-mcpMCP server07mo agononeA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode
broken-link-checker-mcpdavinoishi/BLC-groundMCP server01y agononeA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode
docs-langchainlangchain-ai/langchainMCP server149ktodayMITA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode
component-explorermicrosoft/vscodeMCP server195ktodayMITA—Claude Code, Codex, Cursor, Gemini CLI, OpenCode
codex_message_boardopenai/codexMCP server135ktodayApache-2.0A—Claude Code, Codex, Cursor, Gemini CLI, OpenCode