Skip to main content
Glama
alphaparkinc

Document AST Parser & Compiler Skill

Document AST Parser & Compiler Skill for Autonomous Agents

MCP Compatible Python 3.9+ License: MIT Zero External Dependencies

Enterprise Document Abstract Syntax Tree (AST) engine enabling autonomous agents to parse unstructured markdown documents into structured AST nodes and serialize nodes back into standard formatting.

Core Capabilities

  • Hierarchical Node Extraction: Accurately recognizes headings (H1-H6), nested lists, markdown tables, and code blocks.

  • Bi-directional Compilation: Deconstructs raw markdown to AST and serializes modified AST back to clean canonical text.

  • Zero Third-Party Dependencies: Pure Python standard library implementation.

Related MCP server: nodiom-mcp

MCP Server Integration

Run standard stdio MCP server:

python mcp_server.py

Available MCP Tools

  • parse_markdown_ast: Parse markdown string into structured AST node list.

  • compile_ast_markdown: Serialize AST node array back into formatted markdown.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Converts documents (PDF, DOCX, images, etc.) to Markdown using Microsoft's Markitdown library, with no local setup required. Integrates with AI agents via MCP for seamless document conversion.
    1
    -
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to read, write, append, and delete content in Markdown files using structural selectors, without regex or string hacking.
    7
    209 npm
    5
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to parse, create, update, delete, and search natural language specification elements in markdown files via MCP tools.
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Convert PDF, DOCX, HTML, and URLs into clean, LLM-ready markdown with tables preserved and boilerplate stripped, through three MCP tools (URL, local file, or raw bytes). Hosted API with no local dependencies; 50 free conversions with a self-serve key, then $0.002 per call.
    3
    59 npm
    MIT