Skip to main content
Glama
Document AST Parser & Compiler Skill

Document AST Parser & Compiler Skill

by Alpha-Park

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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI assistants with the ability to lint, validate, and auto-fix Markdown files to ensure compliance with established Markdown standards and best practices.
      6
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to read, write, append, and delete content in Markdown files using structural selectors, without regex or string hacking.
      7
      41 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides AI agents with comprehensive document parsing capabilities including PDF text extraction, OCR, HTML-to-markdown conversion, table extraction, and summarization, optimized for agent workflows.
      57 npm
      MIT
    • A
      license
      A
      quality
      B
      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
      51 npm
      MIT