# PDF magic-byte check, file discarded

> PDF magic-byte check, file discarded is an MCP server for files and documents. Remote MCP utility that checks for PDF magic bytes and discards the file. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API
- **Repository:** https://github.com/sadri-dridi/named-mcp-utilities
- **MCP Registry name:** io.github.sadri-dridi/pdf-magic
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

This server is one entry in a collection of small, single-purpose MCP utilities. Its job is narrow: it inspects a file for the PDF magic-byte signature and then throws the file away rather than keeping it.

It is reachable only as a remote streamable-HTTP endpoint hosted on a Cloudflare Workers domain, with no installable package listed. The repository describes the collection as public MCP servers aimed at autonomous clients, each registered under its own name in the official registry.

The README says little about inputs, outputs or exact tool names, so it is best suited to developers who want to try a minimal file-type check from an agent. The same repository also lists many sibling endpoints, including promotional ones tied to a separate agent advertising service.

## Features

- **PDF signature check:** Tests whether a file begins with the PDF magic bytes.
- **File discarded:** The listing states the submitted file is discarded after the check.
- **Remote streamable HTTP:** Served from a hosted endpoint over streamable-http, with no local package to install.
- **Registry-named server:** Registered in the official MCP registry as io.github.sadri-dridi/pdf-magic.

## Good for

- Quickly verifying whether an uploaded file is really a PDF
- Testing agent clients against a minimal remote MCP endpoint
- Pre-screening files before passing them to heavier document processing

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http pdf-magic https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/pdf-magic/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/pdf-magic/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pdf-magic": {
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/pdf-magic/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "pdf-magic": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/pdf-magic/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "pdf-magic": {
      "serverUrl": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/pdf-magic/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pdf-magic": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/pdf-magic/mcp"
    }
  }
}
```

## FAQ

### What does this server do?

It checks for the PDF magic bytes in a file and discards the file afterwards.

### How do I connect to it?

Use the streamable-http remote URL listed in the registry entry; no package is provided.

### Is it part of a larger project?

Yes, it is one of many single-purpose servers in the named-mcp-utilities repository by sadri-dridi.

### How do I add PDF magic-byte check, file discarded to Claude Code?

Run this command in your terminal: claude mcp add --transport http pdf-magic https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/pdf-magic/mcp

### What are the best alternatives to PDF magic-byte check, file discarded?

The closest alternatives to PDF magic-byte check, file discarded are WebP magic-byte check, file discarded, PNG magic-byte check, file discarded, TIFF magic-byte check, file discarded, Ogg magic-byte check, file discarded and ORC magic-byte check, file discarded.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [WebP magic-byte check, file discarded](https://ai-powered.com/mcp/webp-magic-byte-check-file-discarded): WebP magic-byte check, file discarded is an MCP server for files and documents.
- [PNG magic-byte check, file discarded](https://ai-powered.com/mcp/png-magic-byte-check-file-discarded): PNG magic-byte check, file discarded is an MCP server for files and documents.
- [TIFF magic-byte check, file discarded](https://ai-powered.com/mcp/tiff-magic-byte-check-file-discarded): TIFF magic-byte check, file discarded is an MCP server for files and documents.
- [Ogg magic-byte check, file discarded](https://ai-powered.com/mcp/ogg-magic-byte-check-file-discarded): Ogg magic-byte check, file discarded is an MCP server for files and documents.
- [ORC magic-byte check, file discarded](https://ai-powered.com/mcp/orc-magic-byte-check-file-discarded): ORC magic-byte check, file discarded is an open-source MCP server for files and documents.
- [WebM EBML check, file discarded](https://ai-powered.com/mcp/webm-ebml-check-file-discarded): WebM EBML check, file discarded is an MCP server for files and documents.
- [ZIP magic-byte check, file discarded](https://ai-powered.com/mcp/zip-magic-byte-check-file-discarded): ZIP magic-byte check, file discarded is an MCP server for files and documents.
- [Mach-O magic band, bytes discarded](https://ai-powered.com/mcp/mach-o-magic-band-bytes-discarded): Mach-O magic band, bytes discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/pdf-magic-byte-check-file-discarded
