Skip to content

Add MCPB packaging and Claude Code plugin for pdf-server#491

Merged
ochafik merged 2 commits intomodelcontextprotocol:mainfrom
bryan-anthropic:add-packaging-and-plugin
Feb 24, 2026
Merged

Add MCPB packaging and Claude Code plugin for pdf-server#491
ochafik merged 2 commits intomodelcontextprotocol:mainfrom
bryan-anthropic:add-packaging-and-plugin

Conversation

@bryan-anthropic
Copy link
Contributor

Summary

Adds two distribution paths for the pdf-server:

  • MCPB bundle — for the Claude Desktop MCP Directory (manifest.json, .mcpbignore, icon.png)
  • Claude Code plugin — for direct installation via claude plugin install (plugin/ directory)

MCPB packaging files

File Purpose
manifest.json v0.3 manifest — display name, tools, compatibility, privacy policy
.mcpbignore Excludes source/tests/screenshots from the bundle
icon.png 64x64 PDF document icon

These enable building a .mcpb bundle via mcpb pack for distribution through the MCP Directory.

Claude Code plugin (plugin/)

plugin/
├── .claude-plugin/plugin.json
├── .mcp.json                    # Local stdio server
├── CONNECTORS.md
├── README.md
├── commands/
│   ├── read.md                  # /pdf-research:read
│   └── summarize.md             # /pdf-research:summarize
└── skills/
    └── pdf-reading/
        └── SKILL.md

The key innovation: .mcp.json

{
  "mcpServers": {
    "pdf": {
      "command": "npx",
      "args": ["@modelcontextprotocol/server-pdf", "--stdio"]
    }
  }
}

This declares a local stdio MCP server that starts automatically when the plugin loads. No remote deployment, no API keys — npx fetches and runs the pdf-server package locally.

Test results

Tested end-to-end in Claude Code:

Component Status
Plugin validation PASS
MCP server connection PASS
list_pdfs PASS
display_pdf PASS (opened "Attention Is All You Need" from arXiv)
Commands PASS (/pdf-research:read, /pdf-research:summarize)
Skills PASS (pdf-research:pdf-reading)

Install and test

# Temporary (single session)
claude --plugin-dir examples/pdf-server/plugin

# Permanent
claude plugin install examples/pdf-server/plugin

Context

This was developed as part of an investigation into how the pdf-server could support knowledge-work workflows in Cowork. The plugin follows the anthropics/knowledge-work-plugins conventions but uses a local server instead of a remote connector — the first known instance of this pattern.

A corresponding PR has been opened at anthropics/knowledge-work-plugins to add this plugin to the marketplace.

Test plan

  • Run claude plugin validate examples/pdf-server/plugin
  • Test with claude --plugin-dir examples/pdf-server/plugin
  • Verify /pdf-research:read opens a PDF
  • Verify list_pdfs and display_pdf tools are available

🤖 Generated with Claude Code

Two distribution paths for the pdf-server:

1. **MCPB bundle** (Claude Desktop MCP Directory):
   - manifest.json: v0.3 manifest with tools, compatibility, privacy
   - .mcpbignore: excludes source/tests from bundle
   - icon.png: 64x64 PDF document icon

2. **Claude Code plugin** (plugin/):
   - .mcp.json: declares local stdio server via npx
   - commands: /pdf-research:read, /pdf-research:summarize
   - skills: pdf-reading skill for document navigation
   - Tested end-to-end: MCP server connects, all tools available

The plugin uses a local stdio MCP server pattern — the first known
instance in a knowledge-work plugin (all existing plugins use remote
HTTP connectors).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 23, 2026

Open in StackBlitz

@modelcontextprotocol/ext-apps

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@491

@modelcontextprotocol/server-basic-react

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-basic-react@491

@modelcontextprotocol/server-basic-vanillajs

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-basic-vanillajs@491

@modelcontextprotocol/server-budget-allocator

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-budget-allocator@491

@modelcontextprotocol/server-cohort-heatmap

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-cohort-heatmap@491

@modelcontextprotocol/server-customer-segmentation

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-customer-segmentation@491

@modelcontextprotocol/server-map

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-map@491

@modelcontextprotocol/server-pdf

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-pdf@491

@modelcontextprotocol/server-scenario-modeler

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-scenario-modeler@491

@modelcontextprotocol/server-shadertoy

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-shadertoy@491

@modelcontextprotocol/server-sheet-music

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-sheet-music@491

@modelcontextprotocol/server-system-monitor

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-system-monitor@491

@modelcontextprotocol/server-threejs

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-threejs@491

@modelcontextprotocol/server-transcript

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-transcript@491

@modelcontextprotocol/server-video-resource

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-video-resource@491

@modelcontextprotocol/server-wiki-explorer

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-wiki-explorer@491

commit: fe07a7c

ochafik
ochafik previously approved these changes Feb 23, 2026
Copy link
Contributor

@ochafik ochafik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bryan-anthropic !

Can you please run npm run prettier:fix + commit to get the CI green?

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ochafik ochafik merged commit 3de035d into modelcontextprotocol:main Feb 24, 2026
14 checks passed
ochafik added a commit that referenced this pull request Feb 24, 2026
Bug fixes / improvements since 1.1.0:
- fix: add audio/video support for basic-host (#460)
- fix(pdf-server): remove page-loading overlay (#493)
- pdf-server: remove domain allowlist, require HTTPS only (#487)
- Set audioSession.type to playback in sheet music app (#489)
- Add MCPB packaging and Claude Code plugin for pdf-server (#491)
ochafik added a commit that referenced this pull request Feb 24, 2026
Bug fixes / improvements since 1.1.0:
- fix: add audio/video support for basic-host (#460)
- fix(pdf-server): remove page-loading overlay (#493)
- pdf-server: remove domain allowlist, require HTTPS only (#487)
- Set audioSession.type to playback in sheet music app (#489)
- Add MCPB packaging and Claude Code plugin for pdf-server (#491)
ochafik added a commit that referenced this pull request Feb 24, 2026
Bug fixes / improvements since 1.1.0:
- fix: add audio/video support for basic-host (#460)
- fix(pdf-server): remove page-loading overlay (#493)
- pdf-server: remove domain allowlist, require HTTPS only (#487)
- Set audioSession.type to playback in sheet music app (#489)
- Add MCPB packaging and Claude Code plugin for pdf-server (#491)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants