# harehare/mq

A jq-like Markdown query language for command-line processing

Repository: https://github.com/harehare/mq
Canonical: https://ross.abutalabs.com/products/mq
Homepage: https://mqlang.org
Language: Rust
License: MIT
License Family: permissive
Topics: cli, jq, markdown, rust, repl, md, query, mcp, interpreter, language-server, scripting-language, html-to-markdown, mqlang, markdown-processor, markdown-parser
Last push: 2026-09-02T23:16:29+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 100, release rhythm 87, longevity 39
- inputs: {"age_days": 555, "days_push": 0, "days_rel": 7, "gap_med": 6.5, "n_releases_24m": 79}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1023, forks 21 (observed 2026-09-03T02:15:12.623034+00:00)

## What it is
mq is a jq-like command-line tool and query language for slicing, filtering, and transforming Markdown via its AST, written in Rust as a single native binary. It includes a REPL, LSP support, a debugger, and companion tools such as an MCP server for AI assistants.

## Use cases
- extract all headings from markdown files
- filter and transform markdown documents from the command line
- prepare structured markdown input for LLM prompts
- batch process documentation files
- convert html to markdown
- query markdown like jq queries json

## When to choose
- you already know jq and want the same workflow for Markdown
- you need fast, structural (AST-based) Markdown manipulation without regex
- you process Markdown for LLM pipelines or documentation at scale

## When to avoid
- you need rich-text or WYSIWYG Markdown editing rather than programmatic querying
- your documents are not Markdown and you don't want format conversion
- you need a fully stable, long-term-supported tool given active development

## Facets
- artifact type: cli-tool
- maturity: active
- function: parser, cli, interpreter, markdown, mcp, llm-inference, developer-tools
- domain: developer-tools, large-language-models, documentation
- platform: cli, windows, rust, cross-platform
- tags: jq-like, query-language, markdown-ast, repl, lsp, scripting-language, html-to-markdown, markdown, command-line, natural-language-processing, linux, macos

## Member repositories
- harehare/mq (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:12.623034+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:08:44.279764+00:00, confidence not recorded.
  - readme: https://github.com/harehare/mq (fetched 2026-09-03T02:15:12.623034+00:00, sha 766300f9341b)
  - homepage: https://mqlang.org (fetched 2026-08-29T13:08:56.482722+00:00, sha 6b0e70fca31d)
  - site_page: https://mqlang.org/book (fetched 2026-08-29T13:08:56.485511+00:00, sha a7f6c744e00c)
  - site_page: https://mqlang.org/book/start/external_subcommands (fetched 2026-08-29T13:08:56.487325+00:00, sha cd73a5c10bb6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
