markdown
v1.0.1Markdown 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.
| Parameter | Type | Description |
|---|---|---|
directory * | string | Path 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.
| Parameter | Type | Description |
|---|---|---|
directory * | string | Path to the directory to search (e.g. ./docs) |
query * | string | Search 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.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the markdown file |
heading * | string | Heading text to find (case-insensitive) |
list_headings
List all headings (# through ######) in a markdown file as a table of contents.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the markdown file |
find_code_blocks
Find all fenced code blocks in a markdown file. Optionally filter by language (e.g. typescript, python).
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the markdown file |
language | string | Optional: 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.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the markdown file |