npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jkumonpm/markdown-utils-mcp

v1.0.2

Published

Markdown Utils MCP server — convert to HTML, extract headings/links, word count

Downloads

88

Readme

markdown-utils-mcp

Markdown Utils MCP server. Convert to HTML, extract headings/links, word count.

No external dependencies. Pure Regex processing.

Install

npm install -g markdown-utils-mcp

Usage

Claude Desktop / Cursor / OpenCode

Add to your MCP config:

{
  "mcpServers": {
    "markdown-utils": {
      "command": "npx",
      "args": ["-y", "markdown-utils-mcp"]
    }
  }
}

Tools

to_html — Markdown to HTML

Convert Markdown text to HTML.

Input:

{
  "markdown": "# Hello\n\nThis is **bold** and *italic*.\n\n[Link](https://example.com)"
}

Output:

<h1>Hello</h1>
<p>This is <strong>bold</strong> and <em>italic</em>.</p>
<p><a href="https://example.com">Link</a></p>

extract_headings — Extract Headings

Extract all headings (H1-H6) from Markdown text.

Input:

{
  "markdown": "# Title\n## Section\n### Subsection"
}

Output:

{
  "count": 3,
  "headings": [
    { "level": 1, "text": "Title" },
    { "level": 2, "text": "Section" },
    { "level": 3, "text": "Subsection" }
  ]
}

extract_links — Extract Links

Extract all links from Markdown text.

Input:

{
  "markdown": "[Google](https://google.com)\n[GitHub](https://github.com)"
}

Output:

{
  "count": 2,
  "links": [
    { "text": "Google", "url": "https://google.com" },
    { "text": "GitHub", "url": "https://github.com" }
  ]
}

word_count — Word Count

Count words, characters, paragraphs, and lines in Markdown text.

Input:

{
  "markdown": "# Hello World\n\nThis is a paragraph with some words."
}

Output:

{
  "words": 9,
  "characters": 55,
  "charactersNoSpaces": 46,
  "paragraphs": 2,
  "lines": 2
}

Supported Markdown Syntax

| Syntax | Description | |--------|-------------| | # H1 - ###### H6 | Headings | | **bold** | Bold text | | *italic* | Italic text | | [text](url) | Links | | `code` | Inline code | | ```lang\ncode\n``` | Code blocks | | --- | Horizontal rules | | > quote | Blockquotes | | - item | Unordered lists | | 1. item | Ordered lists |

Design

| Feature | Why | |---------|-----| | Zero runtime deps | Only @modelcontextprotocol/sdk and zod | | Pure Regex | No Markdown parsing library needed | | Fast conversion | Simple pattern matching, no AST | | Structured output | JSON in → JSON/HTML out |

License

MIT