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

@odgrim/mcp-fetch

v0.3.0

Published

A TypeScript implementation of an MCP server that fetches web content using Puppeteer and converts it to markdown

Readme

MCP Fetch

A TypeScript implementation of an MCP server that fetches web content using Puppeteer and converts it to markdown.

Useful for breaking your LLM out of infinite "search loops"- you can just tell it to read a doc directly after initial context as a tool!

Features

  • Uses Puppeteer to fetch and render web pages, including JavaScript-heavy sites
  • Extracts text content from web pages
  • Converts HTML content to Markdown format
  • Provides both stdio and SSE transport for MCP communication

Installation

npm install @odgrim/mcp-fetch

Or install globally:

npm install -g @odgrim/mcp-fetch

Usage

As an MCP server with stdio transport

mcp-fetch

As an MCP server with SSE transport

mcp-fetch --sse

You can specify a custom port:

mcp-fetch --sse --port=3001

Running with npx (without installing)

You can run the package directly using npx without installing it:

# Run with stdio transport
npx @odgrim/mcp-fetch

# Run with SSE transport
npx @odgrim/mcp-fetch --sse

# Run with SSE transport on a specific port
npx @odgrim/mcp-fetch --sse --port=3001

If you're in the project directory during development:

# Run with stdio transport
npx .

# Run with SSE transport
npx . --sse

As a library

import { fetchUrl } from '@odgrim/mcp-fetch';

// Fetch a URL and convert to markdown
const result = await fetchUrl('https://example.com');
console.log(result.markdown);

API

MCP Tools

fetch_url

Fetches a URL using Puppeteer and returns the content as markdown.

Parameters:

  • url (string): The URL to fetch
  • timeout (number, optional): Timeout in milliseconds (default: 30000)
  • waitForSelector (string, optional): CSS selector to wait for
  • includeImages (boolean, optional): Whether to include image references in markdown (default: false)

Returns:

  • Markdown representation of the page content

fetch-resources

Resource URI pattern: fetch://{url}

Fetches a URL and returns the content.

Development

Prerequisites

  • Node.js 14.16.0 or later

Setup

git clone https://github.com/odgrim/mcp-fetch.git
cd mcp-fetch
npm install

Build

npm run build

Testing

npm test

Run in development mode

npm run dev

License

MPL-2.0