|
| 1 | +--- |
| 2 | +title: MCP Server |
| 3 | +page_title: Telerik MAUI MCP Server |
| 4 | +description: Learn how to add and use the Telerik MAUI MCP Server as a .NET MAUI AI coding assistant and code generator for better developer productivity. The Telerik MAUI MCP server provides proprietary context about Telerik UI for .NET MAUI to AI-powered software. |
| 5 | +slug: ai-mcp-server |
| 6 | +tags: telerik,maui,ai,ai server,dotnetmaui,coding assistant |
| 7 | +position: 20 |
| 8 | +--- |
| 9 | + |
| 10 | +# Telerik .NET MAUI MCP Server |
| 11 | + |
| 12 | +The Telerik MAUI [MCP (Model Context Protocol) Server](https://modelcontextprotocol.io/introduction) enhances your AI-powered development experience by providing specialized context about Telerik UI for .NET MAUI components. |
| 13 | + |
| 14 | +This MCP server enables AI-powered IDEs and tools to generate more accurate, tailored code that leverages [Telerik UI for .NET MAUI components](https://www.telerik.com/maui-ui) and APIs. You can ask complex questions about Telerik components, request specific implementations, and generate comprehensive code solutions. |
| 15 | + |
| 16 | +## Prerequisites |
| 17 | + |
| 18 | +To use the Telerik MAUI MCP server, you need: |
| 19 | + |
| 20 | +* [Node.js](https://nodejs.org/en) 18 or newer. |
| 21 | +* An [MCP-compatible client](https://modelcontextprotocol.io/clients) that supports **MCP tools** (latest version recommended). |
| 22 | + |
| 23 | +@[template](/_contentTemplates/common/ai-coding-assistant.md#getting-started) |
| 24 | + |
| 25 | +## Installation |
| 26 | + |
| 27 | +Install the Telerik MAUI MCP server using npm: |
| 28 | + |
| 29 | +```bash |
| 30 | +npm i @progress/telerik-maui-mcp |
| 31 | +``` |
| 32 | + |
| 33 | +### Configuration |
| 34 | + |
| 35 | +Use these settings when configuring the server in your MCP client: |
| 36 | + |
| 37 | +| Setting | Value | |
| 38 | +|---------|-------| |
| 39 | +| Package Name | `@progress/telerik-maui-mcp` | |
| 40 | +| Type | `stdio` (standard input/output transport) | |
| 41 | +| Command | `npx` | |
| 42 | +| Arguments | `-y` | |
| 43 | +| Server Name | `telerikMauiAssistant` (customizable) | |
| 44 | + |
| 45 | +### License Configuration |
| 46 | + |
| 47 | +Add your [Telerik license key]({%slug set-up-your-license%}) as an environment parameter in your `mcp.json` file using one of these options: |
| 48 | + |
| 49 | +Option 1: License File Path (Recommended) |
| 50 | + |
| 51 | + ```json |
| 52 | + "env": { |
| 53 | + "TELERIK_LICENSE_PATH": "THE_PATH_TO_YOUR_LICENSE_FIL" |
| 54 | + } |
| 55 | + ``` |
| 56 | + |
| 57 | +Option 2: Direct License Key |
| 58 | + |
| 59 | + ```json |
| 60 | + "env": { |
| 61 | + "TELERIK_LICENSE": "YOUR_LICENSE_KEY_HERE" |
| 62 | + } |
| 63 | + ``` |
| 64 | + |
| 65 | +> Option 1 is recommended unless you're sharing settings across different systems. Remember to [update your license key]({%slug set-up-your-license%}#updating-your-license-key) when necessary. |
| 66 | +
|
| 67 | +## Visual Studio |
| 68 | + |
| 69 | +For complete setup instructions, see [Use MCP servers in Visual Studio](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers). |
| 70 | + |
| 71 | +> Early Visual Studio 17.14 versions require the Copilot Chat window to be open when opening a solution for the MCP server to work properly. |
| 72 | +
|
| 73 | +### Workspace-Specific Setup: |
| 74 | + |
| 75 | +1. Add `.mcp.json` to your solution folder: |
| 76 | + |
| 77 | + ```json |
| 78 | + { |
| 79 | + "servers": { |
| 80 | + "telerikMauiAssistant": { |
| 81 | + "type": "stdio", |
| 82 | + "command": "npx", |
| 83 | + "args": ["-y", "@progress/telerik-maui-mcp@latest"], |
| 84 | + "env": { |
| 85 | + "TELERIK_LICENSE_PATH": "THE_PATH_TO_YOUR_LICENSE_FILE", |
| 86 | + // or |
| 87 | + "TELERIK_LICENSE": "YOUR_LICENSE_KEY" |
| 88 | + } |
| 89 | + } |
| 90 | + } |
| 91 | + } |
| 92 | + ``` |
| 93 | + |
| 94 | +2. Restart Visual Studio. |
| 95 | +3. Enable the `telerikMauiAssistant` tool in the [Copilot Chat window's tool selection dropdown](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022#configuration-example-with-github-mcp-server). |
| 96 | + |
| 97 | +### Global Setup: |
| 98 | + |
| 99 | +Add the `.mcp.json` file to your user directory (`%USERPROFILE%`, e.g., `C:\Users\YourName\.mcp.json`). |
| 100 | + |
| 101 | +## Visual Studio Code |
| 102 | + |
| 103 | +For complete setup instructions, see [Use MCP servers in Visual Studio Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers). |
| 104 | + |
| 105 | +> Visual Studio Code 1.102.1 or newer is required to use the Telerik MCP Server |
| 106 | +
|
| 107 | +The basic setup in Visual Studio Code follows these steps: |
| 108 | + |
| 109 | +1. Enable [`chat.mcp.enabled`](vscode://settings/chat.mcp.enabled) in Visual Studio Code settings. |
| 110 | +2. Create `.vscode/mcp.json` in your workspace root (or user folder for global setup): |
| 111 | + |
| 112 | + ```json |
| 113 | + { |
| 114 | + "servers": { |
| 115 | + "telerik-maui-assistant": { |
| 116 | + "type": "stdio", |
| 117 | + "command": "npx", |
| 118 | + "args": ["-y", "@progress/telerik-maui-mcp@latest"], |
| 119 | + "env": { |
| 120 | + "TELERIK_LICENSE_PATH": "THE_PATH_TO_YOUR_LICENSE_FILE", |
| 121 | + // or |
| 122 | + "TELERIK_LICENSE": "YOUR_LICENSE_KEY" |
| 123 | + } |
| 124 | + } |
| 125 | + } |
| 126 | + } |
| 127 | + ``` |
| 128 | + |
| 129 | +3. For global discovery, enable [`chat.mcp.discovery.enabled`](vscode://settings/chat.mcp.discovery.enabled) in `settings.json`: |
| 130 | + |
| 131 | + ```json |
| 132 | + { |
| 133 | + "chat.mcp.discovery.enabled": true |
| 134 | + } |
| 135 | + ``` |
| 136 | + |
| 137 | +4. Restart Visual Studio Code. |
| 138 | + |
| 139 | +## Cursor |
| 140 | + |
| 141 | +For complete setup instructions, see [Model Context Protocol](https://docs.cursor.com/context/mcp). |
| 142 | + |
| 143 | +Create `.cursor/mcp.json` in your workspace root (or user folder for global setup): |
| 144 | + |
| 145 | +```json |
| 146 | +{ |
| 147 | + "mcpServers": { |
| 148 | + "telerikMauiAssistant": { |
| 149 | + "type": "stdio", |
| 150 | + "command": "npx", |
| 151 | + "args": ["-y", "@progress/telerik-maui-mcp@latest"], |
| 152 | + "env": { |
| 153 | + "TELERIK_LICENSE_PATH": "THE_PATH_TO_YOUR_LICENSE_FILE", |
| 154 | + // or |
| 155 | + "TELERIK_LICENSE": "YOUR_LICENSE_KEY" |
| 156 | + } |
| 157 | + } |
| 158 | + } |
| 159 | +} |
| 160 | +``` |
| 161 | + |
| 162 | +## Usage |
| 163 | + |
| 164 | +To use the Telerik MCP Server: |
| 165 | + |
| 166 | +1. Start your prompt with one of these triggers: |
| 167 | + - `/telerik` / `@telerik` / `#telerik` |
| 168 | + - `/telerikmaui` / `@telerikmaui` / `#telerikmaui` |
| 169 | + - `#telerik-maui-assistant` |
| 170 | + |
| 171 | +2. Verify server activation by looking for these messages: |
| 172 | + - Visual Studio: `Running telerikMauiAssistant` |
| 173 | + - Visual Studio Code: `Running telerik-maui-assistant` |
| 174 | + - Cursor: `Calling MCP tool telerikMauiAssistant` |
| 175 | + |
| 176 | +3. Grant permissions when prompted (per session, workspace, or always). |
| 177 | + |
| 178 | +4. Start fresh sessions for unrelated prompts to avoid context pollution. |
| 179 | + |
| 180 | +### Improving Server Usage |
| 181 | + |
| 182 | +To increase the likelihood of the Telerik MCP server being used, add custom instructions to your AI tool: |
| 183 | +- [GitHub Copilot custom instructions](https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot#about-repository-custom-instructions-for-github-copilot-chat) |
| 184 | +- [Cursor rules](https://docs.cursor.com/context/rules) |
| 185 | + |
| 186 | +### Sample Prompts |
| 187 | + |
| 188 | +The following examples demonstrate useful prompts for the Telerik .NET MAUI MCP Server: |
| 189 | + |
| 190 | +* "`/telerik` Generate a DataGrid with sorting and paging. Bind it to a Person model with sample ViewModel." |
| 191 | +* "`/telerikmaui` Create a ComboBox showing a product list. Include Product class and sample data." |
| 192 | +* "`/telerik` Build a CollectionView with sorting and filtering capabilities." |
| 193 | + |
| 194 | +## Number of Requests |
| 195 | + |
| 196 | +@[template](/_contentTemplates/common/ai-coding-assistant.md#number-of-requests) |
| 197 | + |
| 198 | +## Local AI Model Integration |
| 199 | + |
| 200 | +You can use the Telerik MAUI MCP server with local large language models (LLMs): |
| 201 | + |
| 202 | +1. Run a local model, for example, through [Ollama](https://ollama.com). |
| 203 | +2. Use a bridge package like [MCP-LLM Bridge](https://github.com/patruff/ollama-mcp-bridge). |
| 204 | +3. Connect your local model to the Telerik MCP server. |
| 205 | + |
| 206 | +This setup allows you to use the Telerik AI Coding Assistant without cloud-based AI models. |
| 207 | + |
| 208 | +## See Also |
| 209 | + |
| 210 | +* [Telerik MAUI GitHub Copilot Extension]({%slug ai-copilot-extension%}) |
| 211 | +* [AI Coding Assistant Overview]({%slug ai-overview%}) |
0 commit comments