|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: SyncfusionPDFViewerSDKAssistant MCP Server Setup – Syncfusion |
| 4 | +description: Explore the MCP server’s benefits, setup needs, and integration guidance for Syncfusion PDFViewerSDK. |
| 5 | +platform: document-processing |
| 6 | +control: AI coding assistant |
| 7 | +documentation: ug |
| 8 | +--- |
| 9 | + |
| 10 | +# SyncfusionPDFViewerSDKAssistant MCP Server |
| 11 | + |
| 12 | +## Overview |
| 13 | + |
| 14 | +The <a href ="https://www.npmjs.com/package/@syncfusion/pdfviewersdk-assistant">SyncfusionPDFViewerSDKAssistant</a> is a specialized [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server that provides intelligent, context-aware coding assistance for Syncfusion **PDFViewerSDK** across all supported platforms are Windows Forms, WPF, JavaScript, Angular, React, Vue, ASP.NET MVC, ASP.NET Core, Blazor, MAUI and Flutter. |
| 15 | +It integrates seamlessly with [MCP clients](https://modelcontextprotocol.io/clients) to provide intelligent assistance for building applications with Syncfusion<sup style="font-size:70%">®</sup> components. |
| 16 | + |
| 17 | +### Key Benefits |
| 18 | + |
| 19 | +- Instant code generation & explanations for Syncfusion<sup style="font-size:70%">®</sup> PDFViewerSDK component. |
| 20 | +- Detailed component documentation and usage examples. |
| 21 | +- Troubleshooting assistance for common integration challenges. |
| 22 | + |
| 23 | +## Prerequisites |
| 24 | + |
| 25 | +Before using <a href="https://www.npmjs.com/package/@syncfusion/pdfviewersdk-assistant">SyncfusionPDFViewerSDKAssistant</a>, ensure you have: |
| 26 | + |
| 27 | +* Required [node](https://nodejs.org/en/) version >= 18 |
| 28 | +* A [compatible MCP client](https://modelcontextprotocol.io/clients) (VS Code with GitHub Copilot, [Syncfusion<sup style="font-size:70%">®</sup> CodeStudio](https://www.syncfusion.com/code-studio/), etc.) |
| 29 | +* An active Syncfusion<sup style="font-size:70%">®</sup> license (any of the following): |
| 30 | + - [Commercial License](https://www.syncfusion.com/sales/unlimitedlicense) |
| 31 | + - [Free Community License](https://www.syncfusion.com/products/communitylicense) |
| 32 | + - [Free Trial](https://www.syncfusion.com/account/manage-trials/start-trials) |
| 33 | +* An active [API KEY](https://syncfusion.com/account/api-key) |
| 34 | + |
| 35 | +## Unlimited Access |
| 36 | + |
| 37 | +Syncfusion<sup style="font-size:70%">®</sup> offers unlimited access to this MCP server. There are no restrictions on: |
| 38 | + |
| 39 | +* Number of requests |
| 40 | +* Components usage |
| 41 | +* Query types |
| 42 | +* Usage duration |
| 43 | + |
| 44 | +This ensures users can fully leverage Syncfusion<sup style="font-size:70%">®</sup> components to enhance their development experience without limitations. |
| 45 | + |
| 46 | +## Installation and setup |
| 47 | + |
| 48 | +Before you can invoke the ```SyncfusionPDFViewerSDKAssistant``` MCP server, you need to configure your MCP client with these core settings. The **Generic MCP Server Settings** shown below are identical across all clients: |
| 49 | + |
| 50 | +### Generic MCP Server Settings |
| 51 | + |
| 52 | +- **npm package name**: ```@syncfusion/pdfviewersdk-assistant``` |
| 53 | +- **Type**: stdio (standard input/output transport) |
| 54 | +- **Command**: npx |
| 55 | +- **Arguments**: -y |
| 56 | +- **Server name**: syncfusionPDFViewerSDKAssistant |
| 57 | + |
| 58 | +#### API Key Configuration |
| 59 | + |
| 60 | +Login to your [Syncfusion account](http://syncfusion.com/account/) and generate an API Key from the [API Key page](https://www.syncfusion.com/account/api-key). Replace `YOUR_API_KEY_FILE_PATH` or `YOUR_API_KEY` in the configuration files with your generated key. |
| 61 | + |
| 62 | +There are two options: |
| 63 | + |
| 64 | +* **Using an API Key File (Recommended)** |
| 65 | + |
| 66 | + Store your API key in a separate file and reference its path in the `Syncfusion_API_Key_Path` environment parameter. This approach is more secure as you don't expose the key directly in configuration files. |
| 67 | + |
| 68 | + **Supported file formats:** `.txt` or `.key` file |
| 69 | + |
| 70 | +~~~json |
| 71 | + "env": { |
| 72 | + "Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH" // "D:\\syncfusion-key.txt" (or) "D:\\syncfusion-key.key" |
| 73 | + } |
| 74 | +~~~ |
| 75 | +* **Direct API Key** |
| 76 | + |
| 77 | + Paste your `Syncfusion_API_Key` directly in the configuration file's environment parameter. |
| 78 | + |
| 79 | +~~~json |
| 80 | + "env": { |
| 81 | + "Syncfusion_API_Key": "YOUR_API_KEY" |
| 82 | + } |
| 83 | +~~~ |
| 84 | + |
| 85 | +[SyncfusionPDFViewerSDKAssistant](https://www.npmjs.com/package/@syncfusion/pdfviewersdk-assistant) can be configured in various MCP clients. Below are setup instructions for popular environment: |
| 86 | + |
| 87 | +### Syncfusion<sup>®</sup> Code Studio |
| 88 | + |
| 89 | + * In [Code Studio](https://www.syncfusion.com/code-studio/), open MCP Marketplace |
| 90 | +  |
| 91 | + * Go to the ```Custom Servers``` tab and click **Add MCP Servers** |
| 92 | +  |
| 93 | + * In the dialog that appears, select **Accept and Continue** to launch the runtime window for configuring the PDF Viewer SDK MCP. |
| 94 | +  |
| 95 | + * Choose the NPM package installation mode. Enter the command **@syncfusion/pdfviewersdk-assistant** in the runtime window and press **Enter** |
| 96 | +  |
| 97 | + * When prompted, click allow in the opened options and select **Direct API key**. Enter the API key generated from the [Syncfusion API key](https://www.syncfusion.com/account/api-key), then press **Enter**. |
| 98 | +  |
| 99 | + * Provide server name such as ```syncfusion-pdfviewersdk-assistant```, then press **Enter**. The PDF Viewer SDK MCP server will get installed. |
| 100 | + * Once installed, the server will appear in the User Installed Server list and will be added to the **config.yaml** file. |
| 101 | +  |
| 102 | + * The server is now ready for use in Code Studio. For more details, refer to the Code Studio [documentation](https://help.syncfusion.com/code-studio/reference/configure-properties/mcp/customservers). |
| 103 | + |
| 104 | +For additional details, see the Code Studio [documentation](https://help.syncfusion.com/code-studio/reference/configure-properties/mcp/customservers). |
| 105 | + |
| 106 | +### VS Code (GitHub Copilot MCP) |
| 107 | + |
| 108 | +* To configure an MCP server for a specific workspace, you can create a `.vscode/mcp.json` file in your workspace folder. |
| 109 | + |
| 110 | + ```json |
| 111 | + { |
| 112 | + "servers": { |
| 113 | + "syncfusion-pdfviewersdk-assistant": { |
| 114 | + "type": "stdio", |
| 115 | + "command": "npx", |
| 116 | + "args": [ |
| 117 | + "-y", |
| 118 | + "@syncfusion/pdfviewersdk-assistant@latest" |
| 119 | + ], |
| 120 | + "env": { |
| 121 | + "Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH", |
| 122 | + // or |
| 123 | + "Syncfusion_API_Key": "YOUR_API_KEY" |
| 124 | + } |
| 125 | + } |
| 126 | + } |
| 127 | + } |
| 128 | + ``` |
| 129 | + |
| 130 | +* After updating the configuration in mcp.json, you’ll notice a “Start” option at the top of the config. This allows you to easily start the <a href ="https://www.npmjs.com/package/@syncfusion/pdfviewersdk-assistant">SyncfusionPDFViewerSDKAssistant</a> server directly from the settings interface without additional commands. |
| 131 | + |
| 132 | +* Confirm that [SyncfusionPDFViewerSDKAssistant](https://www.npmjs.com/package/@syncfusion/pdfviewersdk-assistant) is being used (this does not happen automatically). Look for a statement in the output, which is similar to: |
| 133 | + * ```SyncfusionPDFViewerSDKAssistant is running...``` (in VS Code) |
| 134 | + |
| 135 | +* For more details, refer to the official <a href = "https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022"> Visual Studio documentation</a>. |
| 136 | + |
| 137 | +### Cursor |
| 138 | + |
| 139 | +To configure an MCP server for a specific workspace, you can create a .cursor/mcp.json file in your workspace folder. |
| 140 | + |
| 141 | +```json |
| 142 | +{ |
| 143 | + "mcpServers": { |
| 144 | + "syncfusion-pdfviewersdk-assistant": { |
| 145 | + "type": "stdio", |
| 146 | + "command": "npx", |
| 147 | + "args": [ |
| 148 | + "-y", |
| 149 | + "@syncfusion/pdfviewersdk-assistant@latest" |
| 150 | + ], |
| 151 | + "env": { |
| 152 | + "Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH", |
| 153 | + // or |
| 154 | + "Syncfusion_API_Key": "YOUR_API_KEY" |
| 155 | + } |
| 156 | + } |
| 157 | + } |
| 158 | +} |
| 159 | +``` |
| 160 | +For more details, refer to the <a href = "https://docs.cursor.com/en/context/mcp#using-mcp-json">Cursor documentation</a>. |
| 161 | + |
| 162 | +### JetBrains IDEs |
| 163 | + |
| 164 | +* Go to Settings -> Tools -> AI Assistant -> Model Context Protocol (MCP). |
| 165 | +* Click + Add to add a new MCP server configuration. |
| 166 | +* In the New MCP Server dialog, switch the dropdown as `As JSON` and add the following config: |
| 167 | + |
| 168 | +```json |
| 169 | +{ |
| 170 | + "mcpServers": { |
| 171 | + "syncfusion-pdfviewersdk-assistant": { |
| 172 | + "command": "npx", |
| 173 | + "args": [ |
| 174 | + "-y", |
| 175 | + "@syncfusion/pdfviewersdk-assistant@latest" |
| 176 | + ], |
| 177 | + "env": { |
| 178 | + "Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH", |
| 179 | + // or |
| 180 | + "Syncfusion_API_Key": "YOUR_API_KEY" |
| 181 | + } |
| 182 | + } |
| 183 | + } |
| 184 | +} |
| 185 | +``` |
| 186 | + |
| 187 | +* Click OK and Apply. |
| 188 | + |
| 189 | +For further assistance, see the <a href ="https://www.jetbrains.com/help/ai-assistant/mcp.html#connect-to-an-mcp-server">JetBrains documentation</a>. |
| 190 | + |
| 191 | +> For more detailed information about configuring MCP servers in various clients, refer to the official documentations, e.g., [Windsurf](https://docs.windsurf.com/windsurf/cascade/mcp#mcp-config-json) |
| 192 | +
|
| 193 | +## Usage |
| 194 | + |
| 195 | +To activate the SyncfusionPDFViewerSDKAssistant MCP server: |
| 196 | + |
| 197 | +1. Start your prompt with one of the following: |
| 198 | + * 'SyncfusionPDFViewerSDKAssistant' |
| 199 | + * '/syncfusion-pdfviewersdk-assistant' |
| 200 | + * '/syncfusion-pdfviewersdk' |
| 201 | + * '@syncfusion-pdfviewersdk' |
| 202 | + * '@ask_syncfusion_pdfviewersdk' |
| 203 | + |
| 204 | + In VS Code, you can also use #SyncfusionPDFViewerSDKAssistant to explicitly invoke the MCP server. |
| 205 | + |
| 206 | +2. Grant the SyncfusionPDFViewerSDKAssistant MCP server a permission to run for this session, workspace, or always. |
| 207 | +3. For best results, start a new chat for each new topic to maintain clean context. |
| 208 | + |
| 209 | +### Mode availability |
| 210 | + |
| 211 | +Syncfusion<sup style="font-size:70%">®</sup> MCP Servers provide full access to all AI interaction modes — Ask/Chat, Edit, and Agent — across supported MCP clients. |
| 212 | + |
| 213 | +### Best Practices for Effective Usage |
| 214 | + |
| 215 | +1. ```Be specific```: Mention both platform and component (e.g., "How do I apply conditional formatting to highlight duplicate values in a React Syncfusion Spreadsheet?"). |
| 216 | +2. ```Provide context```: Include details about your use case for more targeted solutions. |
| 217 | +3. ```Use descriptive queries```: Avoid vague questions that lack necessary context. |
| 218 | +4. ```Start fresh for new topics```: Begin a new chat session when switching components or topics. |
| 219 | + |
| 220 | +### Example Queries |
| 221 | + |
| 222 | +Here are some effective ways to use [SyncfusionPDFViewerSDKAssistant](https://www.npmjs.com/package/@syncfusion/pdfviewersdk-assistant): |
| 223 | + |
| 224 | + * "Provide code for viewing PDF files using the PDF Viewer in a Blazor Web App." |
| 225 | + * "Show me a code snippet to load a PDF from Google Drive into Syncfusion PDF Viewer using React" |
| 226 | + * "How do I toggle the annotation toolbar using Angular PDF Viewer" |
| 227 | + * "Explain how to open the thumbnail panel programmatically in Syncfusion PDF Viewer using Vue." |
| 228 | + * "Provide code to restrict zoom levels between 150% and 300% in JavaScript PDF Viewer." |
| 229 | + |
| 230 | +## Troubleshooting |
| 231 | + |
| 232 | +If you encounter issues: |
| 233 | + |
| 234 | + * Verify your API key is correctly configured. |
| 235 | + * Ensure the MCP server is enabled in your client's tools selection. |
| 236 | + * Check that you're using a compatible MCP client version. |
| 237 | + * Try restarting your development environment. |
| 238 | + |
| 239 | +## Support |
| 240 | + |
| 241 | +Product support is available through the following mediums. |
| 242 | + |
| 243 | +* [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support |
| 244 | +* [Community forum](https://www.syncfusion.com/forums/pdf-viewer-sdk) |
| 245 | +* [Request feature or report bug](https://www.syncfusion.com/feedback/pdf-viewer-sdk) |
| 246 | +* Live chat |
| 247 | + |
| 248 | +## See also |
| 249 | + |
| 250 | + * [Syncfusion PDFViewerSDK Documentation](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/overview) |
0 commit comments