markdown-search

markdown-search is a skill for Claude Code, Codex from ofershap/mcp-server-markdown. It costs 52 tokens per session (494 once invoked), scanned A, original, MIT.

A set of tools for searching and navigating Markdown files stored on a computer. Markdown is a plain-text format often used for READMEs, internal documentation, and architecture decisions.

In plain words
What is it for?
Use it to find text, headings, code examples, metadata, and specific sections across local Markdown documents.
Why use it?
It makes scattered documentation easier to search and inspect without opening files one by one.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ofershap/mcp-server-markdown/markdown-search
Any agent
npx skills add ofershap/mcp-server-markdown --skill markdown-search
Clone the repo
git clone --depth 1 https://github.com/ofershap/mcp-server-markdown

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for markdown-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/ofershap/mcp-server-markdown/markdown-search.svg)](https://agentmods.dev/skills/ofershap/mcp-server-markdown/markdown-search)
Your own site
<a href="https://agentmods.dev/skills/ofershap/mcp-server-markdown/markdown-search"><img src="https://agentmods.dev/badge/skills/ofershap/mcp-server-markdown/markdown-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 494 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00052 $0.00494
Opus 5 $0.00026 $0.00247
Sonnet 5 $0.00010 $0.00099
Haiku 4.5 $0.00005 $0.00049

Measured 3d ago against content hash ec41d932c7a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

markdown-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/markdown-search/SKILL.md · 42 lines

How it starts

The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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
find_code_blocks 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. find_code_blocks 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
  • find_code_blocks 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
  • get_section not found: heading text must match (including # level); use list_headings 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

Read the full file on GitHub · 42 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 42 lines · 52 tokens per session scan A ec41d932c7a0

Subscribe to this mod's changes

markdown-search is a skill published in the GitHub repository ofershap/mcp-server-markdown (5 stars, last pushed 25d ago), licensed MIT. It adds 52 tokens to every session and 494 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ingest-l1

L1 analysis loop for the abapwiki knowledge base: for each batch it launches the abap-analyzer sub-agent in parallel, then the adversarial judge abap-deepcheck (separate session), applies only the analyses that pass the fail-closed gate, and commits. Resumes exactly after an interruption. Use this skill to document…

Gixsy95/abap_wiki · 91 tokens

Incident Postmortem Writer

Writes a blameless incident postmortem document from an incident timeline or Slack thread.

Notysoty/openagentskills · 24 tokens

write-gitbook

A comprehensive guide for editing GitBook documentation in external environments like Cursor, Claude Code, or other text editors. This skill provides all the formatting syntax, configuration options, and best practices needed to create and maintain GitBook content outside the GitBook web interface.

argos-ci/docs · 56 tokens

autoscaffold-content

Generate real starter content for a project's What-L2 (requirements) and How-L2 (architecture/conventions) CEP layers once ult-repo-layout has resolved their paths but found them empty — an honest, minimal, YAML-frontmatter-first overview document per layer for small/single targets, or graphify-informed per-module…

linkpranay-ai/context-engineering-protocol · 212 tokens

policy-drift-audit

Run the policy/process drift audit. Surfaces stale, superseded, duplicate, non-canonical, and conflicting policy documents using DocGraph's built-in drift engine. Presents findings and optional remediation suggestions without writing governance decisions.

Detective-XH/DocGraph · 50 tokens

vault

Generate an Obsidian LLM wiki vault from a project's source code and any static documents in raw/.

burakolgun/vault-anything · 23 tokens