
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 分