|
1 | 1 | ---
|
2 | 2 | title: MCP Server
|
3 |
| -page_title: Telerik MCP Server |
| 3 | +page_title: Telerik Blazor MCP Server |
4 | 4 | description:
|
5 | 5 | slug: ai-mcp-server
|
6 | 6 | tags: telerik,blazor,ai
|
7 | 7 | published: True
|
8 |
| -position: 10 |
| 8 | +position: 20 |
9 | 9 | ---
|
10 | 10 |
|
11 |
| -# Telerik MCP Server |
| 11 | +# Telerik Blazor MCP Server |
12 | 12 |
|
13 |
| -Telerik UI for Blazor provides a [GitHub Copilot](https://github.com/features/copilot) extension. If you are using GitHub Copilot, the extension can generate code snippets that include Telerik UI for Blazor components and API. |
| 13 | +The Telerik Blazor [MCP Server](https://modelcontextprotocol.io/introduction) enables you achieve interation 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 | 14 |
|
15 | 15 | ## Prerequisites
|
16 | 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 | + |
17 | 23 | ## Installation
|
18 | 24 |
|
19 |
| -The [Agent mode of GitHub Copilot](https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode) allows you to prompt AI for more complex tasks that require a multi-step process and affect more files. |
| 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 | +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 | +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 |
20 | 92 |
|
21 |
| -To use the Telerik MCP server in Copilot Agent mode: |
| 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 | +```` |
22 | 114 |
|
23 |
| -1. Create a `.vscode/mcp.json` file in your workspace (application root). |
24 |
| -1. Go to the [`telerik-blazor-mcp`](https://www.npmjs.com/package/@progress/telerik-blazor-mcp?activeTab=readme) npm package page and copy-paste the contents of `mcp.json`. |
25 |
| -1. At the bottom of the Copilot Chat pane, select **Agent** from the dropdown that contains **Ask**, **Edit**, and **Agent**. |
| 115 | +### Cursor |
26 | 116 |
|
27 |
| -> Do not click the **Add Server** button at the bottom-right of the open JSON file. |
28 |
| -> Do not execute `npm install @progress/telerik-blazor-mcp` manually. |
29 |
| -> Do not use `@telerikblazor` in your prompts, because the Copilot Agent mode does not use extensions. |
| 117 | +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 | +```` |
30 | 156 |
|
31 | 157 | ## Usage
|
32 | 158 |
|
33 |
| -Start your prompt with `@TelerikBlazor` and type your request. |
| 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 a 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 license type: |
| 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. |
34 | 195 |
|
35 |
| -If you want to prompt for code that is not related to your previous prompts, then use a new Chat, so that the new context is not polluted by irrelevant old information. |
| 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. |
36 | 199 |
|
37 | 200 | ## See Also
|
38 | 201 |
|
39 |
| -* [Telrik Blazor extension for GitHub Copilot](slug:ai-tooling-ai-coding-assistant). |
| 202 | +* [Telerik Blazor extension for GitHub Copilot](slug:ai-coding-assistant) |
0 commit comments