ofershap/mcp-server-markdown · Archived

markdown-search

Search and navigate local markdown via MCP. Use when the user asks to search docs, find a README section, list headings/TOC, extract code examples by language, read frontmatter, or grep internal wikis and ADRs on disk.

First seen Mar 5, 2026

Installation

$ npx skills add ofershap/mcp-server-markdown --skill markdown-search

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 5
License LICENSE
Default branch main
Open issues 1
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,410 B
  • docs SUMMARY.md 241 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Markdown Search via MCP

Use this skill when you need to search documentation, extract sections, list headings, or find code blocks across local markdown files.

Available Tools

Tool What it does
list_files List all .md files in a directory recursively
search_docs Full-text search across all .md files (case-insensitive, up to 50 results)
get_section Extract a section by heading until the next heading of same/higher level
list_headings List all headings as a table of contents
findcodeblocks Find fenced code blocks, optionally filter by language
get_frontmatter Parse YAML frontmatter metadata from a file

Workflow

  1. list_files to discover documentation files in the project
  2. search_docs for full-text search across all docs
  3. list_headings to get the table of contents for a specific file
  4. get_section to extract a specific section by its heading text
  5. findcodeblocks to find code examples, optionally filtered by language

Key Patterns

  • get_section extracts everything under a heading until the next heading of same or higher level
  • findcodeblocks with language: "typescript" filters to only TS examples
  • search_docs is case-insensitive and returns up to 50 matches with surrounding context
  • Unlike the filesystem MCP, this server understands markdown structure (headings, sections, code fences)

Error Scenarios

  • No matches from search_docs: widen the query, check the directory path, or confirm files use .md extension
  • getsection not found: heading text must match (including # level); use listheadings first
  • Permission or missing path errors: verify the directory exists and is readable on the host running the MCP server
  • More than 50 search hits: refine the query or search a smaller subdirectory