Skip to main content

Cursor Integration

Cursor has built-in MCP support that allows you to generate PDFs and images directly while coding.

Configuration

Step 1: Open Cursor Settings

  1. Open Cursor
  2. Go to SettingsCursor SettingsMCP
  3. Or press Ctrl+Shift+P / Cmd+Shift+P and search "MCP"

Step 2: Add MCP Server

Add the following configuration:

{
"mcpServers": {
"pdfgenstudio": {
"command": "npx",
"args": ["-y", "@pdfgenstudio/mcp"],
"env": {
"PDFGENSTUDIO_API_KEY": "your-api-key-here"
}
}
}
}

Alternative: Edit Config File Directly

You can also edit the configuration file directly:

macOS: ~/.cursor/mcp.json

Windows: %USERPROFILE%\.cursor\mcp.json

Linux: ~/.cursor/mcp.json

{
"mcpServers": {
"pdfgenstudio": {
"command": "npx",
"args": ["-y", "@pdfgenstudio/mcp"],
"env": {
"PDFGENSTUDIO_API_KEY": "your-api-key-here"
}
}
}
}

Usage

Once configured, you can ask Cursor's AI to:

  • Generate PDFs from your templates
  • Convert code documentation to PDF
  • Screenshot web pages for reference
  • Create visual documents from JSON designs

Example Prompts

Generate a PDF report from template "report-template" with my project data
Take a full-page screenshot of our staging site at https://staging.example.com