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

mcp-server-markview

v1.5.0

Published

MCP server for MarkView — preview Markdown files in a native macOS viewer

Downloads

236

Readme

mcp-server-markview

MCP (Model Context Protocol) server for MarkView — a native macOS Markdown previewer.

Lets AI assistants (Claude, etc.) preview Markdown files and open them in the MarkView app directly from the conversation.

Requirements

  • macOS (arm64 or x86_64)
  • Node.js 18+
  • MarkView.app (auto-fetched on install, or install manually from Releases)

Quick Start

Run without installing:

npx mcp-server-markview

Or install globally:

npm install -g mcp-server-markview
mcp-server-markview

The binary is downloaded automatically during installation. If the download fails (e.g. offline install), the wrapper falls back to a locally installed MarkView.app at /Applications or ~/Applications.

Claude Code Configuration

The easiest way — run once in your terminal:

claude mcp add --transport stdio --scope user markview -- npx mcp-server-markview

This writes to ~/.claude.json (user scope — works across all projects). Restart Claude Code after adding.

Or add manually to ~/.claude.json (permissions go in settings.json — MCP config goes here):

{
  "mcpServers": {
    "markview": {
      "command": "npx",
      "args": ["mcp-server-markview"]
    }
  }
}

Available Tools

preview_markdown

Renders a Markdown string and opens a live preview in MarkView.

| Parameter | Type | Description | |-----------|--------|---------------------------------| | content | string | Markdown source text to preview | | title | string | Optional window title |

open_file

Opens a Markdown file from disk in MarkView.

| Parameter | Type | Description | |-----------|--------|--------------------------------------| | path | string | Absolute path to the .md file |

Transport

The server uses stdio transport (JSON-RPC 2.0 over stdin/stdout), which is the standard MCP transport and compatible with all MCP clients.

How It Works

  1. npm install runs scripts/postinstall.js, which downloads the prebuilt MarkView release archive from GitHub and extracts the markview-mcp-server binary.
  2. The binary is placed at bin/markview-mcp-server-binary inside the package.
  3. bin/mcp-server-markview (the shell wrapper registered in bin) locates the binary and execs it, preserving stdio.

Troubleshooting

Binary not found after install

Re-run the postinstall script manually:

node "$(npm root -g)/mcp-server-markview/scripts/postinstall.js"

Download failed (corporate proxy / offline)

Install MarkView.app manually from the Releases page and place it in /Applications. The wrapper will find it automatically.

Permission denied

chmod +x "$(npm root -g)/mcp-server-markview/bin/markview-mcp-server-binary"
chmod +x "$(npm root -g)/mcp-server-markview/bin/mcp-server-markview"

License

MIT — see LICENSE.