MCP Integration for AI Agents
Overview
MCP (Model Context Protocol) tools enable AI assistants like Claude to generate PDFs through natural conversation. Connect your AI agents to use your custom templates for intelligent document creation.Benefits of Template-First MCP Integration
- Custom Template Usage: AI agents use your specific template names
- Intelligent Data Collection: AI guides users to provide the right information
- Professional Output: Your custom templates ensure consistent, polished documents
- No HTML Generation: AI works with structured data, not markup
- Brand Consistency: All documents use your custom designs and branding
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/sse5
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 Peedief MCP tools
Using MCP Tools
Once configured, AI agents can generate PDFs using specific template names through natural conversation.Template Name Workflow
Using Your Custom Template Names:Template-Based PDF Generation
Certificate Generation with Your Template:Advanced Template Usage
Invoice Generation with Your Template:Multi-Template Workflows
Report Generation with Multiple Templates:MCP Tool Capabilities
The Peedief MCP tools enable AI agents to:Template Usage
Use your custom template names for document generation
Data Collection
AI gathers required information through conversation
Data Validation
Validate user input against template schemas
PDF Generation
Generate professional PDFs from structured data
Error Handling
Graceful handling of missing or invalid data
Usage Tracking
Monitor API usage and generation 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
- Confirm API key has sufficient permissions
- Check if your API key has expired
- Verify the key is correctly set in environment variables
- Ensure your account has remaining PDF credits
- Check if HTML content is valid
- Verify network connectivity to Peedief servers
Getting Help
MCP Documentation
Learn more about the MCP protocol
Claude Desktop Setup
Download and configure Claude Desktop
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
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!