
Markdown
io.github.ofershap由 GitHub 账号 ofershap 发布v1.0.1更新于 Oct 27, 2026
Markdown MCP — search, extract sections, list headings, find code blocks.
概览
本地 MCP 服务器,让助手按标题、章节、代码块和 frontmatter 搜索并浏览磁盘上的 Markdown 文件。
- 可以做什么
- 递归列出目录下所有 .md 文件
- 在 Markdown 文件中进行不区分大小写的全文搜索,最多返回 50 条结果
- 按标题提取章节,并以目录形式列出所有标题
- 查找围栏代码块,可按语言筛选
- 解析文件开头的 YAML frontmatter 元数据
- 适用场景
- 当项目 wiki、架构决策记录、入职指南或内部文档以 Markdown 文件形式存放在仓库或磁盘上,且希望助手检索并提取结构化内容而非原始文本时适用。对于文档类工作,它是普通文件系统服务器的结构化替代方案。
- 运行要求
- 通过 stdio 在本地运行,通常以 npx mcp-server-markdown 启动,需要 Node.js 和 npm。无需 API 密钥或身份验证;由助手向工具传入目录和文件路径。需要 Claude Desktop、Cursor 或 VS Code Copilot 等桌面 MCP 客户端。
安装
在 SourceWeft 中
- 打开 控制台中的 Markdown,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-server-markdown
[npm version] [npm downloads] [CI] [TypeScript] [License: MIT] [Agent Plugins]
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.
[Install in Cursor] [Add to VS Code]
[MCP server for searching and navigating markdown documentation]
Demo built with remotion-readme-kit
Why
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.
Tools
Quick Start
Cursor
Add to .cursor/mcp.json:
Claude Desktop
Add to claude_desktop_config.json:
VS Code
Add to user settings or .vscode/mcp.json:
Examples
- "Search all docs in ./docs for mentions of 'authentication'"
- "Show me the 'API Reference' section from README.md"
- "List all headings in CONTRIBUTING.md"
- "Find all TypeScript code blocks in the docs"
- "What's the frontmatter metadata in this file?"
- "Give me the table of contents for our architecture docs"
Agent Plugins
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.
FAQ
What is mcp-server-markdown?
An MCP server that searches and navigates local .md files: full-text search, sections by heading, TOC, code blocks, and YAML frontmatter.
How is this different from Context7?
Context7 pulls published library docs from npm. This server indexes markdown already on your disk (wikis, ADRs, internal guides).
How is this different from the filesystem MCP?
Filesystem tools read raw files. This server understands headings, sections, fenced code, and frontmatter.
Can I install it as an Agent Plugin in Cursor?
Yes. Use ~/.cursor/plugins/local/mcp-server-markdown so the bundled markdown-search skill loads with the MCP config.
Do I need API keys?
No. Paths are local; the agent passes directory and file paths to the tools.
Development
See also
More MCP servers and developer tools on my portfolio.
Author
README built with README Builder
License
MIT © 2026 Ofer Shapira
来源:README.md,提交 f845545
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分