MCP Tools for AI Agents

What are MCP Tools?

MCP (Model Context Protocol) tools allow AI assistants like Claude to directly generate PDFs during conversations. This means you can ask your AI assistant to create PDFs without manually using APIs.

Benefits of MCP Integration

  • Natural Language: Ask AI to create PDFs in plain English
  • Seamless Workflow: PDFs generated within your conversation
  • No Manual API Calls: AI handles all the technical details
  • Smart Options: AI can infer appropriate PDF settings

Setting Up MCP Tools

For Claude Desktop

1

Open Claude Web App

Navigate to claude.ai in your web browser and sign in to your account
2

Access Tools

Click the tools icon located in the center below the search bar
3

Manage Connectors

In the settings menu, click on “Manage connectors” to view your MCP integrations
4

Add Custom Connector

Click “Add custom connector” and configure the following:
  • Name: Peedief
  • Remote MCP server URL: https://peedief.com/api/mcp
5

Connect to Server

Click the “Connect” button to initiate the connection to the Peedief MCP server
6

Authenticate

You’ll be prompted to login with your Peedief account credentials to authorize the connection
7

Complete Setup

Once authenticated, the connector will be active and ready to use for PDF generation within Claude conversations

For n8n

1

Generate an API Key

First, you’ll need to create an API key for authentication:
  • Login to https://peedief.com
  • Go to API Keys section
  • Click “Create API Key”
  • Name your API key (e.g., “n8n Integration”)
  • Hit “Create API Key”
  • Copy the API key and store it securely
2

Access AI Agent in n8n

In your n8n workflow, when using an AI Agent node
3

Add MCP Client Tool

Click the + icon near the “Tool” section, then select “MCP Client Tool”
4

Configure SSE Endpoint

Set the SSE Endpoint to: https://peedief.com/api/sse
5

Set Authentication

  • Authentication: Header Auth
  • Credential for Header Auth: Create new Credential
6

Create Header Auth Credential

In the credential creation dialog:
  • Name: x-api-key
  • Value: YOUR_API_KEY (paste your API key from step 1)
  • Click “Save and Close”
7

Select Credential

Select the newly created credential in the “Credential for Header Auth” dropdown
8

Configure Tools

Set “Tools to Include” to “All” to enable all available Peedief MCP tools

Using MCP Tools

Once configured, you can use natural language with your AI assistant to generate PDFs.

Basic Usage Examples

Simple PDF Generation:
You: "Convert this HTML to PDF:
<html>
<head><title>Meeting Notes</title></head>
<body>
<h1>Team Meeting - January 15, 2024</h1>
<h2>Attendees</h2>
<ul>
<li>Alice Johnson</li>
<li>Bob Smith</li>
<li>Carol Davis</li>
</ul>
<h2>Agenda Items</h2>
<ol>
<li>Project timeline review</li>
<li>Budget discussion</li>
<li>Next steps planning</li>
</ol>
</body>
</html>"
AI Response:
I'll convert that HTML to a PDF for you.

[AI uses MCP tool to generate PDF]

Your PDF has been generated successfully! You can download it using this link: 
[Download Meeting Notes PDF](https://storage.../meeting-notes.pdf)

Advanced Usage with Options

Custom Formatting:
You: "Create a PDF from this HTML with A4 format, landscape orientation, 
and 20mm margins on all sides:
<html>
<head>
<style>
body { font-family: Arial; margin: 0; padding: 20px; }
.chart { width: 100%; height: 400px; background: #f0f0f0; }
</style>
</head>
<body>
<h1>Sales Report - Q4 2024</h1>
<div class="chart">[Chart would go here]</div>
<p>Total Revenue: $1,250,000</p>
</body>
</html>"
AI Response:
I'll create a landscape PDF with your specified margins and formatting.

[AI generates PDF with custom options]

Your sales report PDF has been created with:
- A4 format in landscape orientation  
- 20mm margins on all sides
- Professional formatting preserved

Download: [Q4 Sales Report PDF](https://storage.../sales-report-q4.pdf)

Content Creation Workflow

Invoice Generation:
You: "Create a professional invoice PDF for ABC Company. Invoice #12345, 
dated today, for $2,500 in consulting services. Make it look professional 
with proper formatting."
AI Response:
I'll create a professional invoice PDF for you.

[AI creates HTML invoice template and converts to PDF]

I've created a professional invoice PDF for ABC Company with:
- Invoice number: 12345
- Date: January 15, 2024
- Service: Consulting services  
- Amount: $2,500.00
- Professional styling and formatting

Download: [Invoice #12345 PDF](https://storage.../invoice-12345.pdf)

MCP Tool Capabilities

The Peedief MCP tools can:

Generate PDFs

Convert HTML to PDF with custom options

Smart Formatting

AI automatically chooses appropriate settings

Error Handling

Graceful handling of generation failures

Usage Tracking

Counts toward your regular plan limits

Supported AI Assistants

Claude Desktop

  • Full support with native MCP integration
  • Easy setup through settings menu
  • Automatic updates for tool improvements

Other MCP-Compatible Clients

  • ✅ Any client supporting MCP protocol
  • ✅ Custom authentication setup
  • ✅ Standard MCP tool interface
While Claude Desktop is the primary supported platform, any MCP-compatible AI client can use Peedief tools with proper configuration.

Troubleshooting MCP Setup

Common Issues

“Tool not found” Error:
  • Verify MCP server configuration is correct
  • Check that your API key is valid
  • Restart Claude Desktop after configuration changes
Authentication Failures:
  • Confirm API key has sufficient permissions
  • Check if your API key has expired
  • Verify the key is correctly set in environment variables
PDF Generation Fails:
  • Ensure your account has remaining PDF credits
  • Check if HTML content is valid
  • Verify network connectivity to Peedief servers

Getting Help

Usage Limits

MCP tool usage counts toward your regular Peedief plan limits:
  • Free Plan: 5 PDFs total
  • Starter Plan: 500 PDFs per month
  • Basic Plan: 1,500 PDFs per month
  • Premium Plan: 5,000 PDFs per month
Monitor your usage in the dashboard to avoid hitting limits during AI conversations.

Next Steps

Try It Out

Set up MCP tools with your AI assistant and start generating PDFs through natural conversation. The integration makes PDF creation seamless and intuitive!