Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Markdowntoc

FreeNot checked

MCP server: generate a table of contents from Markdown headings.

GitHubEmbed

About

MCP server: generate a table of contents from Markdown headings.

README

npm 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.

from github.com/MukundaKatta/markdowntoc-mcp

Installing Markdowntoc

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/MukundaKatta/markdowntoc-mcp

FAQ

Is Markdowntoc MCP free?

Yes, Markdowntoc MCP is free — one-click install via Unyly at no cost.

Does Markdowntoc need an API key?

No, Markdowntoc runs without API keys or environment variables.

Is Markdowntoc hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Markdowntoc in Claude Desktop, Claude Code or Cursor?

Open Markdowntoc on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Markdowntoc with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs