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

markstream-mcp

v1.0.0

Published

MCP server for Markstream — convert any URL or file into clean, agent-ready markdown.

Readme

markstream-mcp

MCP server for Markstream — convert any URL or local file into clean, agent-ready markdown, directly from your MCP client (Claude Desktop, Claude Code, Cursor, …).

It wraps the Markstream HTTP API, so your agent can read web pages (including login-walled marketing sources like Facebook & SimilarWeb) and documents (PDF, Word, Excel, CSV, images) as markdown — 1 credit per conversion, failed conversions auto-refunded.

Tools

| Tool | What it does | |---|---| | markstream_convert_url | Convert any http(s) URL to markdown. Facebook/SimilarWeb auto-route to dedicated scrapers. | | markstream_convert_file | Convert a local file (PDF, Word, Excel, CSV, image; ≤ 10 MB) to markdown. | | markstream_get_conversion | Re-fetch a past conversion's markdown by id (no extra credit). |

Each tool accepts response_format: markdown (default, returns the content) or json (returns id, title, provider, credits, char count, and the markdown).

Setup

1. Get an API key

Create one at https://markstream.dev/settings/apikeys. New accounts get free credits.

2. Add the server to your MCP client

Requires Node.js ≥ 18.

Claude Code

claude mcp add markstream \
  -e MARKSTREAM_API_KEY=msk_your_key_here \
  -- npx -y markstream-mcp

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "markstream": {
      "command": "npx",
      "args": ["-y", "markstream-mcp"],
      "env": { "MARKSTREAM_API_KEY": "msk_your_key_here" }
    }
  }
}

Cursor — add to ~/.cursor/mcp.json (or the project's .cursor/mcp.json):

{
  "mcpServers": {
    "markstream": {
      "command": "npx",
      "args": ["-y", "markstream-mcp"],
      "env": { "MARKSTREAM_API_KEY": "msk_your_key_here" }
    }
  }
}

Restart the client, then ask it to "convert https://example.com to markdown" or "convert ./report.pdf to markdown".

Environment variables

| Variable | Required | Default | Notes | |---|---|---|---| | MARKSTREAM_API_KEY | ✅ | — | Your Markstream API key. | | MARKSTREAM_BASE_URL | — | https://markstream.dev | Override for self-hosted/dev instances. |

Usage examples

  • "Convert https://blog.example.com/post to markdown and summarize it."
  • "Pull this competitor's SimilarWeb traffic: https://www.similarweb.com/website/competitor.com/"
  • "Convert ./contracts/agreement.pdf to markdown so we can extract the key terms."
  • "Re-fetch the full markdown for conversion V1StGXR8_Z5jdHi6B-myT."

Notes & limits

  • Credits: 1 per conversion. Failed conversions are automatically refunded.
  • Rate limit: 60 requests/minute per key.
  • Files: max 10 MB. HTML uploads are rejected — convert web pages with markstream_convert_url instead.
  • Large outputs are truncated at ~25,000 characters; fetch the full markdown via markstream_get_conversion (json) or the API.

Local development

pnpm install
pnpm build            # tsc → dist/
MARKSTREAM_API_KEY=… node dist/index.js   # runs over stdio

To point a client at a local build, use node /absolute/path/to/mcp/dist/index.js as the command (no args) instead of npx.

License

MIT