MCP Server Markdown logo

MCP Server Markdown

by ofershap

Search and navigate local Markdown files with heading-aware extraction, code-block discovery, full-text search, and frontmatter parsing.

Install MCP Server Markdown

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ofershap-mcp-server-markdown": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-markdown"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y mcp-server-markdown

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

ofershap/mcp-server-markdown MCP server gives AI assistants structured access to local Markdown files through search, navigation, extraction, and metadata tools. It runs as an npm-based stdio server, reads paths supplied by the agent, and requires no API keys. Reach for it when project documentation, wikis, ADRs, onboarding guides, or other local `.md` files need heading-aware lookup rather than raw file reading.

Use cases

  • Search internal documentation for a term
  • Extract a named section from a README
  • List headings in an architecture document
  • Find language-specific code examples
  • Read YAML metadata from Markdown files

Key features

  • Recursive Markdown file listing
  • Case-insensitive full-text search
  • Heading-based section extraction
  • Table-of-contents generation
  • Fenced code-block discovery
  • YAML frontmatter parsing

Tools6

What MCP Server Markdown lets your agent do. Expand a tool for its parameters.

Verified live~562 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/27 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · mcp-server-markdown (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars8Stargazers on the source repository.
npm downloads394Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed6Callable tools this server registers over MCP.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Server Markdown works

What the ofershap/mcp-server-markdown MCP server does

ofershap/mcp-server-markdown MCP server exposes tools for searching and navigating local Markdown documentation. It works with .md files on disk and can inspect an individual file or search recursively through a directory. The tool results are structured around Markdown concepts such as headings, sections, fenced code blocks, and YAML frontmatter.

Typical uses include locating references to a term across a documentation tree, retrieving a named section from a README, generating a table of contents from a file, finding examples written in a particular programming language, or reading metadata stored at the beginning of a Markdown document.

How it works

The server is launched through npm with npx mcp-server-markdown. An MCP client starts the process and supplies directory or file paths when calling the tools.

list_files recursively finds .md files under a directory and returns relative paths in alphabetical order. search_docs performs a case-insensitive full-text search and returns the matching file, line number, and line; its result set is limited to 50 matches.

For file structure, list_headings returns headings from level one through level six as a table of contents. get_section accepts a heading and returns its content through the next heading at the same or a higher level. find_code_blocks detects fenced code blocks and can filter them by a language such as TypeScript or Python. get_frontmatter parses YAML metadata enclosed by --- delimiters at the start of a file.

Setup and configuration

The ofershap/mcp-server-markdown MCP server can be configured as a stdio process in supported clients. The basic command is:

Terminal
npx mcp-server-markdown

Cursor and Claude Desktop configurations use npx with -y and mcp-server-markdown as the package argument. VS Code can use the same command and arguments in user settings or a workspace .vscode/mcp.json file. The repository also documents an Agent Plugin installation for Cursor: clone the repository and copy or symlink it to ~/.cursor/plugins/local/mcp-server-markdown, then reload Cursor.

No environment variables or remote service credentials are documented as required. For local development, the repository instructions use npm install, npm test, and npm run build after cloning.

Tools and capabilities

The six MCP tools are:

  • list_files: recursively lists Markdown files.
  • search_docs: searches all Markdown files in a directory, with up to 50 results.
  • get_section: extracts a heading-defined section from one file.
  • list_headings: produces a heading table of contents.
  • find_code_blocks: finds fenced blocks, optionally by language.
  • get_frontmatter: reads YAML frontmatter metadata.

These capabilities make the ofershap/mcp-server-markdown MCP server suitable for documentation assistants that need targeted retrieval from local content instead of treating every file as undifferentiated text.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Server Markdown

ofershap/mcp-server-markdown is an MCP server that connects AI assistants to local Markdown files and provides list_files, search_docs, get_section, list_headings, find_code_blocks, and get_frontmatter tools for searching, navigating, extracting, and reading YAML frontmatter without API keys.

Install it by configuring your MCP client to run `npx -y mcp-server-markdown`. The README provides JSON examples for Cursor, Claude Desktop, and VS Code. For local development, clone the repository, run `npm install`, and use the documented test and build commands.

Yes, it works with Cursor as a standard stdio MCP server. Add an `mcpServers` entry that runs `npx` with `-y` and `mcp-server-markdown`, or install the repository as a local Agent Plugin under `~/.cursor/plugins/local/mcp-server-markdown`.

No, it does not require an API key.

Use `search_docs` with a directory and search term. It performs a case-insensitive full-text search across `.md` files and returns the matching file, line number, and line, with a maximum of 50 results.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Server Markdown AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ofershap-mcp-server-markdown?style=directory)](https://allmcps.com/mcp/ofershap-mcp-server-markdown)
HTML Embed
<a href="https://allmcps.com/mcp/ofershap-mcp-server-markdown"><img src="https://allmcps.com/api/badge/ofershap-mcp-server-markdown?style=directory" alt="MCP Server Markdown on AllMCPs" /></a>