pdfdancer-mcp
Provides access to pdfdancer documentation through search and content retrieval tools, connecting to a Docusaurus search worker to query indexed docs and retrieve markdown content.
README
pdfdancer-mcp
A Model Context Protocol (MCP) server providing coding agents with searchable access to official PDFDancer SDK documentation. This server enables AI coding assistants to discover and retrieve comprehensive documentation for building PDF manipulation applications using PDFDancer SDKs for Python, TypeScript, and Java.
For Users
Requirements
- Node.js >= v18.0.0
- MCP Client: Cursor, Claude Code, VS Code, Windsurf, Zed, or any other MCP-compatible client
Installation
Add this MCP server to your preferred AI coding assistant. Choose your client below for specific installation instructions.
<details> <summary><b>Install in Cursor</b></summary>
Option 1: One-Click Installation (Recommended)
Click the button below to install pdfdancer-mcp in Cursor:
Option 2: Manual Configuration
- Open Cursor Settings
- Navigate to the "MCP" section
- Add the following configuration:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in Claude Code</b></summary>
Option 1: CLI Command (Recommended)
Run this command in your terminal:
claude mcp add --transport stdio pdfdancer-mcp -- npx -y @pdfdancer/pdfdancer-mcp
Verify installation with: claude mcp list
Option 2: Manual Configuration
Add the following to your Claude Code MCP settings configuration file:
Location: ~/.config/claude/claude_desktop_config.json (Linux/macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
After adding the configuration, restart Claude Code to activate the MCP server.
</details>
<details> <summary><b>Install in Claude Desktop</b></summary>
Option 1: Desktop Extensions (Easiest - Coming Soon)
When available, navigate to Settings > Extensions > Browse extensions and search for "pdfdancer-mcp" for one-click installation.
Option 2: Manual Configuration
Add the following to your Claude Desktop MCP settings configuration file:
Location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
After adding the configuration, restart Claude Desktop to activate the MCP server.
</details>
<details> <summary><b>Install in Windsurf</b></summary>
Option 1: Using Settings UI (Recommended)
- Open Windsurf Settings (click the Windsurf icon in bottom right, or Cmd+Shift+P / Ctrl+Shift+P and type "Open Windsurf Settings")
- Navigate to Advanced Settings > Cascade > Model Context Protocol
- Click the MCP servers button (hammer icon), then Configure
- Add the server using the configuration interface
Option 2: Manual Configuration
Edit the mcp_config.json file and add:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in VS Code / VS Code Insiders</b></summary>
When using MCP-compatible extensions in VS Code:
- Install an MCP client extension (such as Cline, Roo Code, or similar)
- Open the extension's settings
- Add the MCP server configuration:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in Cline (VS Code Extension)</b></summary>
Option 1: Using AI Assistant (Easiest)
In the Cline chatbot, use this prompt:
install the MCP server named `@pdfdancer/pdfdancer-mcp` for Cline - ensure the mcp settings are updated
Option 2: Using MCP Servers UI
- Click the MCP Servers icon in Cline's top navigation bar
- Select "Configure MCP Servers"
- Browse the MCP marketplace or add manually
Option 3: Manual Configuration
Edit cline_mcp_settings.json:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in Zed</b></summary>
Option 1: Extension Method (Recommended - If Available)
- Open Command Palette (search for "zed: extensions")
- Check the extensions marketplace for "pdfdancer-mcp"
- Install the extension if available - Zed will guide you through setup
Option 2: Custom Server via UI
- Open the Agent Panel's Settings view (or use the "agent: open settings" action)
- In the Context Servers section, click "+ Add Context Server"
- Enter the server name:
pdfdancer-mcp - Click Add Server and configure:
- Command:
npx - Args:
-y @pdfdancer/pdfdancer-mcp
- Command:
Option 3: Manual Configuration
Open Zed settings (~/.config/zed/settings.json) and add:
{
"assistant": {
"version": "2",
"mcp_servers": [
{
"id": "pdfdancer-mcp",
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
]
}
}
Verify by checking the indicator dot next to the server name in Agent Panel settings - green means it's running correctly.
</details>
<details> <summary><b>Install in Augment Code</b></summary>
Option 1: Easy MCP (Recommended)
Augment Code's "Easy MCP" feature provides one-click integrations for popular tools. Check the Easy MCP panel in settings for quick installation.
Option 2: UI Configuration
- Open Augment Code settings
- Navigate to MCP Servers
- Click "Add Server"
- Enter:
- Name:
pdfdancer-mcp - Command:
npx - Args:
-y @pdfdancer/pdfdancer-mcp
- Name:
Option 3: Manual Configuration
Edit your Augment Code configuration file:
{
"augment.advanced": {
"mcpServers": [{
"name": "pdfdancer-mcp",
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}]
}
}
</details>
<details> <summary><b>Install in Roo Code</b></summary>
Option 1: Using MCP Settings Panel (Recommended)
- Click the Roo Code MCP icon
- Click "Edit Global MCP"
- Paste the configuration below inside the
mcpServersobject - Save the file
Option 2: Manual Configuration
Edit mcp_settings.json (Global) or .roo/mcp.json (Project-level):
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
Note: Global configuration applies across all workspaces, while project-level is specific to your project's root.
</details>
<details> <summary><b>Install in Gemini CLI</b></summary>
Add to your Gemini CLI configuration:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in Qwen Coder</b></summary>
Add to your Qwen Coder MCP settings:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in JetBrains AI Assistant</b></summary>
Requirements: IntelliJ IDEA 2025.1+ or other JetBrains IDE with AI Assistant 251.26094.80.5+
Option 1: Import from Claude (Easiest)
- Go to Settings | Tools | AI Assistant | Model Context Protocol (MCP)
- Click "Import from Claude"
- Select the pdfdancer-mcp server from your Claude Desktop configuration
Option 2: Add via Settings UI
- Open IDE settings (Ctrl+Alt+S or Cmd+,)
- Navigate to Tools → AI Assistant → Model Context Protocol (MCP)
- Click "Add Command" or use the Add option
- Configure:
- Name:
pdfdancer-mcp - Command:
npx - Args:
-y @pdfdancer/pdfdancer-mcp
- Name:
Option 3: Manual Configuration
Add to your MCP configuration:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
Note: Version 2025.2+ includes built-in MCP server support for external clients.
</details>
<details> <summary><b>Install in Amazon Q Developer CLI</b></summary>
Configure in your Amazon Q Developer CLI settings:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in Warp</b></summary>
Add to Warp's AI configuration:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in GitHub Copilot CLI</b></summary>
Configure in your GitHub Copilot CLI settings:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in BoltAI</b></summary>
Add to BoltAI MCP configuration:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in Perplexity Desktop</b></summary>
Configure in Perplexity Desktop settings:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
</details>
<details> <summary><b>Install in Docker</b></summary>
Add to your Docker container configuration:
FROM node:18
RUN npx -y @pdfdancer/pdfdancer-mcp
Or use in docker-compose:
services:
pdfdancer-mcp:
image: node:18
command: npx -y @pdfdancer/pdfdancer-mcp
</details>
<details> <summary><b>Other MCP-Compatible Clients</b></summary>
For any other MCP-compatible client, use the following standard configuration:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"]
}
}
}
Consult your client's documentation for the specific location of the MCP configuration file.
</details>
Custom Documentation Endpoint (Optional)
If you're using a custom PDFDancer documentation endpoint, you can configure it via environment variable:
{
"mcpServers": {
"pdfdancer-mcp": {
"command": "npx",
"args": ["-y", "@pdfdancer/pdfdancer-mcp"],
"env": {
"PDFDANCER_DOCS_BASE_URL": "https://your-docs-endpoint.com"
}
}
}
}
Available Tools
The MCP server provides the following tools for accessing PDFDancer documentation:
-
help– Display comprehensive overview of PDFDancer SDK capabilities with multi-language code samples (TypeScript, Python, Java) demonstrating common PDF manipulation tasks. -
search-docs– Search the official PDFDancer SDK documentation by keyword. Returns matching documentation routes with titles, content snippets, and relevance scores. Use this to find information about PDFDancer features, APIs, and usage examples. -
get-docs– Retrieve the full documentation content for a specific route. After finding relevant documentation withsearch-docs, use this tool to get the complete markdown content including code examples, detailed explanations, and API references. -
list-indexes– List all available PDFDancer documentation indexes and tags. Use this to discover which SDK versions, languages, or documentation categories are available for searching. -
list-routes– List all available PDFDancer documentation routes. Use this to browse all documentation pages, articles, and guides available for retrieval.
Typical Workflow
- Search for relevant topics: Use
search-docswith keywords like "authentication", "edit text", "add paragraph", or "forms" - Get detailed documentation: Use
get-docswith a route from the search results to retrieve complete documentation - Review code samples: Use
helpto see working examples in TypeScript, Python, or Java - Implement your solution: Apply the patterns from the documentation to build your PDF manipulation features
Each tool returns both human-readable formatted output and structured content for easy integration into coding workflows.
Demo: Using PDFDancer MCP with Claude Code
Once you've installed the PDFDancer MCP server, you can prompt Claude Code to build PDF applications. Here's a real terminal session:
<img src="demo-screenshot.png" alt="PDFDancer MCP Demo Terminal Session" width="100%">
What happened:
- User prompted:
create a typescript project which creates a pdf with the words "Hello World" on it. Use pdfdancer - Claude Code searched the PDFDancer documentation using the MCP
- Created a complete TypeScript project with proper setup
- Built and ran the project
- Generated
output.pdfwith "Hello World" text
The PDFDancer MCP enables Claude Code to instantly provide accurate, up-to-date documentation and code examples without hallucinating APIs.
For Developers
Development
npm install
npm run dev # starts the server via tsx for quick iteration
npm run build # emits ESM output to dist/
npm run lint # type-check without emitting files
Publishing to npm
The package is configured to automatically build and lint before publishing:
# Login to npm (first time only)
npm login
# Publish to npm (prepublishOnly script runs automatically)
npm run publish:npm
Or use the standard npm publish command:
npm publish
The prepublishOnly script ensures the package is linted and built before each publish.
Local testing
- Build the distributable files so the CLI matches the eventual npm artifact:
npm run build - Launch the stdio server exactly as
npxwould, but pointing to the local package directory:npx -y . - Alternatively, run the compiled output directly with Node:
node dist/index.js - For the fastest inner loop while editing TypeScript, use:
npm run dev
Any MCP-compatible client (Claude Desktop, MCP CLI, etc.) can now connect to the running process over stdio.
Configuration
Set PDFDANCER_DOCS_BASE_URL to point to your PDFDancer documentation service endpoint if different from the default. The server defaults to the official PDFDancer documentation service.
Example:
export PDFDANCER_DOCS_BASE_URL=https://your-docs-endpoint.com
npx -y . # or npm run dev
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.