@mukundakatta/markdowntoc-mcp
v0.1.0
Published
MCP server: generate a table of contents from Markdown headings.
Maintainers
Readme
markdowntoc-mcp
MCP server: generate a table of contents from Markdown headings. Skips
headings inside fenced code blocks. Uses GitHub-style slug anchors with
duplicate-slug disambiguation (-1, -2, …).
Tool
toc
{ "markdown": "# Intro\n## Setup\n## Usage", "max_level": 3 }→
{
"headings": [
{ "level": 1, "text": "Intro", "slug": "intro" },
{ "level": 2, "text": "Setup", "slug": "setup" },
{ "level": 2, "text": "Usage", "slug": "usage" }
],
"toc": "- [Intro](#intro)\n - [Setup](#setup)\n - [Usage](#usage)"
}Configure
{ "mcpServers": { "markdowntoc": { "command": "npx", "args": ["-y", "@mukundakatta/markdowntoc-mcp"] } } }License
MIT.
