markdown

v1.0.1
io.github.ofershap/markdown Checked 1 day ago Published 8 months ago

Markdown MCP — search, extract sections, list headings, find code blocks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_files

List all .md files in a directory recursively. Returns relative paths sorted alphabetically.

ParameterTypeDescription
directory *stringPath to the directory to scan (e.g. ./docs)

search_docs

Full-text search across all .md files in a directory. Returns file, line number, and matching line. Limited to 50 results.

ParameterTypeDescription
directory *stringPath to the directory to search (e.g. ./docs)
query *stringSearch string (case-insensitive)

get_section

Extract a section by heading from a markdown file. Returns content from that heading until the next heading of same or higher level.

ParameterTypeDescription
file *stringPath to the markdown file
heading *stringHeading text to find (case-insensitive)

list_headings

List all headings (# through ######) in a markdown file as a table of contents.

ParameterTypeDescription
file *stringPath to the markdown file

find_code_blocks

Find all fenced code blocks in a markdown file. Optionally filter by language (e.g. typescript, python).

ParameterTypeDescription
file *stringPath to the markdown file
languagestringOptional: filter by language (e.g. typescript, python)

get_frontmatter

Parse YAML frontmatter (between --- delimiters) at the start of a markdown file. Returns key-value metadata.

ParameterTypeDescription
file *stringPath to the markdown file