PDF Slim — PDF Compression for AI

io.github.zhaoyaqi18Published by GitHub account zhaoyaqi18v0.1.0Updated Oct 25, 2026

Compress PDFs to exact target sizes (82-93% smaller). Tools: compress_pdf, optimize_pdf, inspect_pdf

VerifiedStreamable HTTPWeb executableFiles & StorageMedia & Design

Overview

AI-generated overview

A remote MCP server that lets an assistant inspect, losslessly optimize, and compress PDF files to a target size.

What you can do
Inspect a PDF for page count, file size and password protection before processing it.Compress a PDF by re-rendering pages as JPEG and iterating quality and resolution to reach a target size.Optimize a PDF losslessly through garbage collection and stream re-compression, with no quality loss.
When to use it
Useful when a user wants to shrink a PDF to a specific size such as 500KB or 1MB, or make an already-optimized file a bit smaller, and needs to check a file's size and page count first.
Requirements
A remote endpoint at api.pdfslim.app over streamable HTTP; no account or key is needed for the free anonymous tier. That tier allows 20 calls per day per IP and files up to 10MB; larger files (up to 100MB) and more calls require an API key.
Before you install
Uploaded PDFs are sent to a third-party service for processing, so avoid confidential documents. Compression re-encodes pages as JPEG and is lossy, while optimization is lossless. The free tier is limited to 20 calls per day per IP and 10MB files; larger files and higher volume need a paid API key.

Installation

In SourceWeft

  1. Open PDF Slim — PDF Compression for AI in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.zhaoyaqi18%2Fpdfslim/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "pdf-slim-pdf-compression-for-ai": {
      "type": "http",
      "url": "https://api.pdfslim.app/mcp"
    }
  }
}

Tools

3

compress_pdf

Compress a PDF file to reduce its size. Renders pages and re-encodes as JPEG, iterating quality/resolution to hit a target size. Use this when a user wants to shrink a PDF (e.g. to 500KB, 1MB, or "smaller"). Free anonymous tier: 20 calls/day per IP, files up to 10MB. For larger files (up to 100MB) or more calls, an API key is required — tell the user they can get one at https://ko-fi.com/yugutou/shop, or point them to the free website https://pdfslim.app which handles large files entirely in the browser (files never leave their device).

Parametersqualityfile_base64requiredtarget_size

optimize_pdf

Lossless PDF optimization: garbage collection, stream re-compression. No quality loss. Good for PDFs with redundant data; effect is small on already-optimized files. Free anonymous tier: 20 calls/day per IP, files up to 10MB. Larger files / more calls need an API key (https://ko-fi.com/yugutou/shop) or the free website https://pdfslim.app.

Parametersfile_base64required

inspect_pdf

Inspect a PDF: page count, file size, password protection. Use before deciding how to process a PDF. Free anonymous tier: 20 calls/day per IP. More calls need an API key (https://ko-fi.com/yugutou/shop).

Parametersfile_base64required

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

83% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • LicenseNot applicable

    A hosted service is used under its provider's terms, so no license is expected here. This check is left out of the percentage.