|
| 1 | +--- |
| 2 | +title: MCP Server |
| 3 | +page_title: Telerik Blazor MCP Server |
| 4 | +description: Learn how to add and use the Telerik Blazor MCP Server for better developer productivity. The Telerik Blazor MCP server provides proprietary context about Telerik UI for Blazor to AI-powered software. |
| 5 | +slug: ai-mcp-server |
| 6 | +tags: telerik,blazor,ai |
| 7 | +published: True |
| 8 | +position: 20 |
| 9 | +--- |
| 10 | + |
| 11 | +# Telerik Blazor MCP Server |
| 12 | + |
| 13 | +The Telerik Blazor [MCP Server](https://modelcontextprotocol.io/introduction) lets you interact with AI and reach new levels of developer productivity. The MCP server provides proprietary context to AI-powered IDEs, apps and tools. You can use the Telerik Blazor MCP server to ask about Telerik UI for Blazor components, features, or general usage. You can successfully prompt more complex questions and tasks, and generate tailored code that includes Telerik UI for Blazor components and API. |
| 14 | + |
| 15 | +## Prerequisites |
| 16 | + |
| 17 | +To use the Telerik Blazor MCP server, you need: |
| 18 | + |
| 19 | +* A [compatible MCP client (IDE, code editor or app)](https://modelcontextprotocol.io/clients) that supports *MCP tools*. |
| 20 | +* A [Telerik user account](https://www.telerik.com/account/). |
| 21 | +* An active [DevCraft or Telerik UI for Blazor license](https://www.telerik.com/purchase/blazor-ui) or a [Telerik UI for Blazor trial](https://www.telerik.com/blazor-ui). |
| 22 | + |
| 23 | +## Installation |
| 24 | + |
| 25 | +Use the documentation of your AI-powered MCP client to add the Telerik MCP server to a specific workspace or globally. You can see installation tips and examples for some popular MCP clients below. |
| 26 | + |
| 27 | +The generic settings of the Telerik Blazor MCP server are: |
| 28 | + |
| 29 | +* Server name: `telerik-blazor-assistant` |
| 30 | +* Type: `stdio` (standard input/output transport) |
| 31 | +* Command: `npx` (the MCP server works through an npm package) |
| 32 | +* Supported arguments: `-y` |
| 33 | +* npm package name: `@progress/telerik-blazor-mcp` |
| 34 | +* You also need to add your [Telerik licence key](slug:installation-license-key) as an `env` parameter in the `mcp.json` file. There are two options: |
| 35 | + * (recommended) Use a `TELERIK_LICENSE_PATH` argument and point to your Telerik license file location. |
| 36 | + * Use a `TELERIK_LICENSE_KEY` argument and paste your Telerik license key. Make sure to [update the license key](slug:installation-license-key#license-key-updates) when necessary. |
| 37 | + |
| 38 | +### Visual Studio |
| 39 | + |
| 40 | +For detailed instructions, refer to [Use MCP servers in Visual Studio](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers). |
| 41 | + |
| 42 | +To enable the Telerik MCP Server in a specific Blazor app, add a `.mcp.json` file to the solution folder. |
| 43 | + |
| 44 | +> caption SOLUTIONDIR/.mcp.json |
| 45 | +
|
| 46 | +````JSON.skip-repl |
| 47 | +{ |
| 48 | + "inputs": [ |
| 49 | + // ... |
| 50 | + ], |
| 51 | + "servers": { |
| 52 | + "telerik-blazor-assistant": { |
| 53 | + "type": "stdio", |
| 54 | + "command": "npx", |
| 55 | + "args": ["-y", "@progress/telerik-blazor-mcp"], |
| 56 | + "env": { |
| 57 | + "TELERIK_LICENSE_PATH": "C:\\Users\\___\\AppData\\Roaming\\Telerik\\telerik-license.txt" |
| 58 | + } |
| 59 | + } |
| 60 | + } |
| 61 | +} |
| 62 | +```` |
| 63 | + |
| 64 | +To enable automatic global discovery of the Telerik MCP Server in Visual Studio, add the above `.mcp.json` file to your user directory (`%USERPROFILE%`), for example, `C:\Users\____\.mcp.json`. |
| 65 | + |
| 66 | +### VS Code |
| 67 | + |
| 68 | +For detailed instructions, refer to [Use MCP servers in VS Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers). |
| 69 | + |
| 70 | +To enable the Telerik MCP Server in a specific workspace or Blazor app, add a `.vscode` folder with an `mcp.json` file at the root of the workspace: |
| 71 | + |
| 72 | +>caption .vscode/mcp.json at the workspace root |
| 73 | +
|
| 74 | +````JSON.skip-repl |
| 75 | +{ |
| 76 | + "servers": { |
| 77 | + "telerik-blazor-assistant": { |
| 78 | + "type": "stdio", |
| 79 | + "command": "npx", |
| 80 | + "args": ["-y", "@progress/telerik-blazor-mcp"], |
| 81 | + "env": { |
| 82 | + "TELERIK_LICENSE_PATH": "C:\\Users\\___\\AppData\\Roaming\\Telerik\\telerik-license.txt" |
| 83 | + } |
| 84 | + } |
| 85 | + } |
| 86 | +} |
| 87 | +```` |
| 88 | + |
| 89 | +To [add the Telerik MCP Server globally for VS Code, edit the VS Code `settings.json` file](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server-to-your-user-settings): |
| 90 | + |
| 91 | +>caption VS Code settings.json |
| 92 | +
|
| 93 | +````JSON.skip-repl |
| 94 | +{ |
| 95 | + // ... |
| 96 | + "chat.mcp.discovery.enabled": true, |
| 97 | + "mcp": { |
| 98 | + "inputs": [ |
| 99 | + // ... |
| 100 | + ], |
| 101 | + "servers": { |
| 102 | + "telerik-blazor-assistant": { |
| 103 | + "type": "stdio", |
| 104 | + "command": "npx", |
| 105 | + "args": ["-y", "@progress/telerik-blazor-mcp"], |
| 106 | + "env": { |
| 107 | + "TELERIK_LICENSE_PATH": "C:\\Users\\___\\AppData\\Roaming\\Telerik\\telerik-license.txt" |
| 108 | + } |
| 109 | + } |
| 110 | + } |
| 111 | + } |
| 112 | +} |
| 113 | +```` |
| 114 | + |
| 115 | +### Cursor |
| 116 | + |
| 117 | +For detailed instructions, refer to [Model Context Protocol](https://docs.cursor.com/context/model-context-protocol). |
| 118 | + |
| 119 | +To [enable the Telerik MCP Server in a specific workspace](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server-to-your-workspace) or Blazor app, add a `.cursor` folder with an `mcp.json` file at the root of the workspace. |
| 120 | + |
| 121 | +>caption .cursor/mcp.json at the workspace root |
| 122 | +
|
| 123 | +````JSON.skip-repl |
| 124 | +{ |
| 125 | + "mcpServers": { |
| 126 | + "telerik-blazor-assistant": { |
| 127 | + "type": "stdio", |
| 128 | + "command": "npx", |
| 129 | + "args": ["-y", "@progress/telerik-blazor-mcp"], |
| 130 | + "env": { |
| 131 | + "TELERIK_LICENSE_PATH": "C:\\Users\\___\\AppData\\Roaming\\Telerik\\telerik-license.txt" |
| 132 | + } |
| 133 | + } |
| 134 | + } |
| 135 | +} |
| 136 | +```` |
| 137 | + |
| 138 | +To [add the Telerik MCP Server globally for Cursor](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server-to-your-user-settings), add a `.cursor` folder with an `mcp.json` file in your user folder: |
| 139 | + |
| 140 | +>caption .cursor/mcp.json inside your user folder |
| 141 | +
|
| 142 | +````JSON.skip-repl |
| 143 | +{ |
| 144 | + "mcpServers": { |
| 145 | + "telerik-blazor-assistant": { |
| 146 | + "type": "stdio", |
| 147 | + "command": "npx", |
| 148 | + "args": ["-y", "@progress/telerik-blazor-mcp"], |
| 149 | + "env": { |
| 150 | + "TELERIK_LICENSE_PATH": "C:\\Users\\___\\AppData\\Roaming\\Telerik\\telerik-license.txt" |
| 151 | + } |
| 152 | + } |
| 153 | + } |
| 154 | +} |
| 155 | +```` |
| 156 | + |
| 157 | +## Usage |
| 158 | + |
| 159 | +To use the Telerik MCP Server: |
| 160 | + |
| 161 | +1. Start your prompt with one of the following: |
| 162 | + * `telerik` |
| 163 | + * `/telerik` |
| 164 | + * `@telerik` |
| 165 | + * `telerikblazor` |
| 166 | + * `/telerikblazor` |
| 167 | + * `@telerikblazor` |
| 168 | +1. Confirm that the Telerik MCP server is used, because this doesn't happen deterministically. Look for a statement in the output, which is similar to: |
| 169 | + * `Running telerik-blazor-assistant` (in VS Code) |
| 170 | + * `Calling MCP tool telerik-blazor-assistant` (in Cursor) |
| 171 | + |
| 172 | + If the Telerik MCP server is not used even though it's installed and enabled, then try rephrasing your prompt and use another trigger syntax from the list in step 1. |
| 173 | +1. Grant the Telerik tool permission to run for this session, workspace, or always. |
| 174 | +1. If you want to prompt for information or code that are not related to your previous prompts, it is a good practice to start a new session in a new chat window, so that the context is not polluted by irrelevant old information. |
| 175 | + |
| 176 | +To increase the probability of the Telerik MVC Server being used, or to call it without the need to mention "telerik" explicitly, add custom instructions to your AI-powered tool. Here are examples for [GitHub Copilot](https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot#about-repository-custom-instructions-for-github-copilot-chat) and [Cursor](https://docs.cursor.com/context/rules). |
| 177 | + |
| 178 | +### Sample Prompts |
| 179 | + |
| 180 | +The following list describes how your prompts may look like: |
| 181 | + |
| 182 | +* Telerik Generate a Grid with sorting and paging enabled. Bind the Grid to a Person model that is defined in the same .razor file and provide dummy data. |
| 183 | +* Telerik What is DebounceDelay for the Telerik TextBox? |
| 184 | +* Telerik Why am I getting a TelerikBlazor was undefined JavaScript error? |
| 185 | + |
| 186 | +## Number of Requests |
| 187 | + |
| 188 | +> The usage limits below will take place after after June 28, 2025. Until then, each customer with an active commercial or trial license can make up to 300 daily requests. |
| 189 | +
|
| 190 | +The Telerik Blazor MCP Server allows the following maximum number of requests, depending on your [Telerik license type](https://www.telerik.com/purchase/faq/licensing-purchasing): |
| 191 | + |
| 192 | +* Perpetual licenses: 50 requests per year |
| 193 | +* Subscription licenses: 300 requests per day |
| 194 | +* Trial licenses: 300 requests per trial per year. Activating the same trial for a new release does not grant additional 300 requests. |
| 195 | + |
| 196 | +> One prompt may trigger several requests to the MCP server, depending on the complexity. |
| 197 | +> |
| 198 | +> All Telerik AI tools share a single request limit for your Telerik account. For example, the Telerik MCP server and the Telerik Copilot extension both take up from the same usage quota. |
| 199 | +
|
| 200 | +## See Also |
| 201 | + |
| 202 | +* [Telerik Blazor extension for GitHub Copilot](slug:ai-copilot-extension) |
0 commit comments