Back to Browse

Pdf Dark MCP Server

Developer ToolsUse Caution3.8MCP RegistryRemote
Free

Server data from the Official MCP Registry

Invert PDF colors and convert PDFs to dark mode with theme presets and browser tools.

About

Invert PDF colors and convert PDFs to dark mode with theme presets and browser tools.

Remote endpoints: streamable-http: https://pdfdark.org/mcp

Security Report

3.8
Use Caution3.8High Risk

The PDF Dark MCP server has no hardcoded secrets, no shell or eval usage, and no exfiltration code in the reviewed files, and its permissions fit a PDF tool. However, the invert_pdf_base64 tool sends uploaded PDFs to the pdfdark.org edge Worker for processing, which contradicts the 'files are never uploaded' privacy claim returned by get_tool_url. The MCP endpoint is also unauthenticated with a wildcard CORS policy, which is acceptable for a public tool but should be disclosed. The truncated client code was not reviewed in full. Supply chain analysis found 8 known vulnerabilities in dependencies (1 critical, 1 high severity).

4 files analyzed ยท 12 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-1436941541-pdf-dark": {
      "url": "https://pdfdark.org/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

๐ŸŒ™ PDF Dark

Convert any PDF to dark mode โ€” entirely in your browser. No upload, no signup, free.

Live: pdfdark.org

PDF Dark turns any PDF into a dark-themed downloadable file. The entire conversion runs in your browser via PDF.js and a Web Worker โ€” your file never touches a server. A saturation-based algorithm preserves photos and charts in their original colors while darkening the rest.

Why this exists

Reading long PDFs at night meant either staring at a bright white page or uploading sensitive documents (research papers, contracts, medical records) to "PDF dark mode" services I didn't fully trust. The "invert colors" toggles in existing tools also wreck photos and charts โ€” turning portraits into negatives and graphs into noise.

So PDF Dark was built around two non-negotiable defaults:

  1. Nothing leaves your browser. Verify it yourself in DevTools โ†’ Network.
  2. Images keep their original colors. Only text and UI elements get themed.

Features

  • 100% browser-side โ€” file processed via File API + Web Worker + OffscreenCanvas
  • Image preservation โ€” saturation classifier keeps photos and charts in original colors
  • Real PDF output โ€” image-based PDF, opens dark in any reader (Kindle, iPad, Acrobat, Preview)
  • 4 dark themes โ€” pick your preferred contrast
  • No signup, no tracking โ€” Sentry runs only on errors, with full content masking
  • Mobile support โ€” works on iOS Safari and Android Chrome
  • Free โ€” and intends to stay that way

How it works

Drop PDF
  โ†’ PDF.js parses each page to canvas
  โ†’ Web Worker classifies pixels by saturation
       โ”œโ”€ saturated pixels (images, charts)  โ†’ preserved
       โ””โ”€ low-saturation pixels (text, UI)   โ†’ inverted / themed
  โ†’ pdf-lib stitches a new PDF
  โ†’ User downloads

The saturation classifier runs on OffscreenCanvas inside a Web Worker, so the UI thread never blocks even on large PDFs.

Stack

Privacy

Your PDF never leaves your browser. The conversion uses only:

  • File API (local file read)
  • Web Worker (off-main-thread processing)
  • OffscreenCanvas (per-pixel manipulation)
  • Blob + URL.createObjectURL() (download trigger)

Verify yourself: open DevTools โ†’ Network โ†’ drop a PDF. No upload requests appear.

Error monitoring via Sentry runs only when something breaks. Session replays mask all text, inputs, and media โ€” so error reports show structure but never content.

See Privacy for the full policy.

Local development

git clone https://github.com/1436941541/pdf-dark.git
cd pdf-dark
npm install
npm run dev

Open http://localhost:3000.

To enable Sentry locally, copy .env.local.example to .env.local and add your DSN.

Project structure

app/
  page.tsx                       Tool: in-browser dark mode reader
  invert-pdf-colors/             Tool: invert colors & download the new PDF
                                 (was /converter until Aug 2026 โ€” merged)
  blog/                          Guides, one dir per post (see lib/variants.ts)
  about/, privacy/, terms/       Legal / about
  changelog/                     Release history
  sitemap.ts, robots.ts          SEO infrastructure
components/
  drop-zone.tsx                  File input + drag-and-drop
  converter.tsx                  Reader orchestrator (drop zone + viewer)
  downloader.tsx                 Convert & download flow; theme/image defaults
                                 are props so tool pages can start differently
  pdf-viewer.tsx                 Render + dark pass + in-browser reading
lib/
  dark-color.ts                  Color mapping + per-image classifier
  build-dark-pdf.ts              Rebuilds the output PDF
  themes.ts                      Theme background definitions
  variants.ts                    Blog post registry (drives sitemap + cross-links)
  site.ts                        Canonical URL helper

Contributing

Issues and PRs welcome โ€” especially:

  • Edge cases that break the algorithm (weird embedded fonts, scanned PDFs)
  • New theme presets
  • Performance improvements for large PDFs (>50 MB)

For substantial features, please open an issue first to discuss the approach.

License

MIT

Contact

hello@pdfdark.org

Reviews

No reviews yet

Be the first to review this server!