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 🙏

© 2025 – Pkg Stats / Ryan Hefner

botrun-mcp-js-pdf

v1.0.1

Published

JavaScript PDF processing MCP Server - Pure JS implementation using pdf-parse

Downloads

196

Readme

botrun-mcp-js-pdf

JavaScript PDF processing MCP Server - Pure JS implementation using pdf-parse

Features

This is a pure JavaScript implementation of PDF MCP Server, providing the same functionality as the Rust version (botrun-mcp-rust-pdf) but with:

  • Zero native dependencies - Works on any platform with Node.js 18+
  • Smaller package size - No binary downloads needed
  • Easy to extend - Pure JavaScript, easy to customize

Available Tools

| Tool | Description | |------|-------------| | get_pdf_metadata | Get PDF metadata (page count, file size, token estimation) | | extract_pdf_text | Extract text with page range and character limit | | extract_pdf_chunked | Extract PDF in chunks for large files | | search_pdf_keyword | Search keywords with context (like ripgrep) |

Installation

For Claude Code

claude mcp add botrun-mcp-js-pdf -- npx botrun-mcp-js-pdf

For Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "js-pdf": {
      "command": "npx",
      "args": ["botrun-mcp-js-pdf"]
    }
  }
}

Global Installation

npm install -g botrun-mcp-js-pdf

Usage Examples

1. Get PDF Metadata (Always Start Here)

Use get_pdf_metadata on https://example.com/document.pdf

Returns:

  • Total pages
  • File size (MB)
  • Estimated tokens
  • AI strategy suggestion (extract vs chunked)

2. Extract Text from Specific Pages

Extract pages 1-5 from https://example.com/document.pdf

3. Extract Large PDF in Chunks

Get chunk 0 from https://example.com/large-document.pdf

4. Search for Keywords

Search for "introduction" in https://example.com/document.pdf

Local File Support

Both remote URLs and local files are supported:

# Remote URL
https://example.com/file.pdf

# Local file (only ./ prefix allowed for security)
./data/sample.pdf

Comparison with Rust Version

| Feature | JS Version (this) | Rust Version | |---------|------------------|--------------| | Performance | Good | Excellent | | Package Size | ~2MB | ~15MB | | Platform Support | Any (Node.js) | macOS, Linux | | Dependencies | Pure JS | Binary | | Customization | Easy | Requires Rust |

Choose JS version if:

  • You want smaller package size
  • You need to customize the code
  • You're on a platform without pre-built binaries

Choose Rust version if:

  • You need maximum performance
  • You process many large PDFs
  • You want the fastest extraction speed

Development

# Clone the repository
git clone https://github.com/bohachu/botrun-mcp-8.git
cd botrun-mcp-8/npm-packages/js-pdf-mcp

# Install dependencies
npm install

# Run tests
npm test

# Start server directly
npm start

Technical Details

License

MIT

Author

bohachu