Search, navigate, and extract structured content from local Markdown files through MCP tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent ā or use 1-click editor setup below.
š” Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Server Markdown.
list_filesList all .md files in a directory recursively. Returns relative paths sorted alphabetically.
search_docsFull-text search across all .md files in a directory. Returns file, line number, and matching line. Limited to 50 results.
get_sectionExtract a section by heading from a markdown file. Returns content from that heading until the next heading of same or higher level.
list_headingsList all headings (# through ######) in a markdown file as a table of contents.
find_code_blocksFind all fenced code blocks in a markdown file. Optionally filter by language (e.g. typescript, python).
get_frontmatterParse YAML frontmatter (between --- delimiters) at the start of a markdown file. Returns key-value metadata.
Search, navigate, and extract content from local markdown files. Full-text search, section extraction, heading navigation, code block discovery, and frontmatter parsing.
Works with Claude Desktop, Cursor, VS Code Copilot, and any MCP client. Reads local
.mdfiles, no auth needed.

Demo built with remotion-readme-kit
Tools like Context7 are great for looking up library docs from npm, but they don't help with your own documentation. Project wikis, internal knowledge bases, architecture decision records, onboarding guides: they all live as markdown files in your repo or on disk. The filesystem MCP server can read those files, but it treats them as raw text. It doesn't understand headings, sections, or code blocks. This server does. Point it at a directory and your assistant can search across all your docs, pull out a specific section by heading, list the table of contents, or find every TypeScript code example in your knowledge base.
| Tool | What it does |
|---|---|
list_files | List all .md files in a directory recursively (sorted alphabetically) |
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 (e.g. typescript) |
get_frontmatter | Parse YAML frontmatter metadata at the start of a file |
Add to .cursor/mcp.json:
Add to claude_desktop_config.json:
Add to user settings or .vscode/mcp.json:
This repo is an Agent Plugins 1.0.0 package: plugin.json, portable mcp.json, and skills/ ship together with the MCP server.
For Cursor, clone the repo and copy or symlink it to ~/.cursor/plugins/local/mcp-server-markdown, then reload the window. Skills and MCP show up under Customize > Plugins.
The Cursor and VS Code install buttons above still work: they add the same npx -y mcp-server-markdown stdio server as manual JSON.
An MCP server that searches and navigates local .md files: full-text search, sections by heading, TOC, code blocks, and YAML frontmatter.
Context7 pulls published library docs from npm. This server indexes markdown already on your disk (wikis, ADRs, internal guides).
Filesystem tools read raw files. This server understands headings, sections, fenced code, and frontmatter.
Yes. Use ~/.cursor/plugins/local/mcp-server-markdown so the bundled markdown-search skill loads with the MCP config.
No. Paths are local; the agent passes directory and file paths to the tools.
More MCP servers and developer tools on my portfolio.
README built with README Builder
MIT Ā© 2026 Ofer Shapira
Factual signals from GitHub, npm, and our automated checks ā not a rating.
No reviews yet ā be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ofershap-mcp-server-markdown)<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>