Skip to content

Commit 0f7ca74

Browse files
Merge pull request #4028 from syncfusion-content/EJ2-1043442-mcp_setup_ug
1043442: Prepared MCP server ug content for Spreadsheet- #3993
2 parents ae6b80c + ff499a9 commit 0f7ca74

7 files changed

Lines changed: 1747 additions & 0 deletions

File tree

Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
---
2+
layout: post
3+
title: ASP.NET Core Spreadsheet MCP Server Setup | Syncfusion®
4+
description: Install and configure the Syncfusion® ASP.NET Core Spreadsheet MCP Server to access documentation, API guidance, code examples, and troubleshooting support.
5+
control: Spreadsheet
6+
platform: document-processing
7+
documentation: ug
8+
keywords: ASP.NET Core Agentic UI Builder, MCP Server, search docs, Spreadsheet SDK, Server Packages
9+
---
10+
11+
# ASP.NET Core Spreadsheet MCP Server
12+
13+
The Syncfusion® ASP.NET Core MCP Server accelerates Spreadsheet application development by providing relevant documentation, API references, feature guidance, code examples, and troubleshooting information directly within an AI-powered IDE. The server uses the [Model Context Protocol](https://modelcontextprotocol.io/docs/2026-07-28/getting-started/intro) to connect an AI assistant with Syncfusion ASP.NET Core documentation.
14+
15+
Use the `search_docs` tool to obtain contextual guidance, code examples, and documentation for ASP.NET Core Spreadsheet applications.
16+
17+
> The previously available Agentic UI Builder (`#sf_aspnetcore_ui_builder`) has been upgraded to an Agent skill-based experience and is no longer part of the MCP Server. To learn more about the new Agentic UI Builder, see the [documentation](https://ej2.syncfusion.com/aspnetcore/documentation/mcp). The AI Coding Assistant (`#sf_aspnetcore_assistant`) has been renamed to `search_docs` (`#search_docs`) to ensure that the tool name follows MCP naming conventions.
18+
19+
## Key benefits
20+
21+
- **Spreadsheet-specific guidance**: Access relevant documentation for data binding, formulas, open and save operations, charts, conditional formatting, sorting, filtering, hyperlinks, scrolling, and other Spreadsheet features.
22+
- **API assistance**: Find ASP.NET Core Spreadsheet properties, methods, and events with contextual usage guidance.
23+
- **Troubleshooting support**: Search for guidance related to rendering, data loading, import and export, and performance issues.
24+
- **IDE integration**: Use Syncfusion documentation from compatible MCP clients such as Visual Studio Code, Syncfusion Code Studio, Cursor, and JetBrains.
25+
- **Privacy-focused operation**: The MCP Server processes requests based on the submitted query without storing prompts or application content.
26+
27+
## Prerequisites
28+
29+
Before configuring the ASP.NET Core MCP Server, ensure that you have:
30+
31+
- **.NET 10 SDK** (for automatic configuration) **or** .NET 8 / .NET 9 SDK (for manual configuration).
32+
- A **compatible MCP client**, such as Visual Studio Code, Syncfusion Code Studio, Cursor, or JetBrains.
33+
- An active [Syncfusion API key](https://www.syncfusion.com/account/api-key).
34+
- An **ASP.NET Core application** (existing or new); see [Quick Start](https://ej2.syncfusion.com/aspnetcore/documentation/getting-started/razor-pages)
35+
- An active Syncfusion<sup style="font-size:70%">&reg;</sup> license, such as one of the following:
36+
- [Commercial License](https://www.syncfusion.com/sales/unlimitedlicense)
37+
- [Free Community License](https://www.syncfusion.com/products/communitylicense)
38+
- [Free Trial](https://www.syncfusion.com/account/manage-trials/start-trials)
39+
40+
## Obtain a Syncfusion API key
41+
42+
Generate the Syncfusion® API key from the [API Key page](https://www.syncfusion.com/account/api-key) and store it in a .txt or .key file. The saved file will be referenced in the MCP configuration:
43+
44+
```json
45+
"env": {
46+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH"
47+
}
48+
```
49+
50+
Alternatively, provide the API key directly:
51+
52+
```json
53+
"env": {
54+
"Syncfusion_API_Key": "YOUR_SYNCFUSION_API_KEY"
55+
}
56+
```
57+
58+
> Using `Syncfusion_API_Key_Path` is recommended because it helps keep the API key out of source control. Do not commit an API key or key file to a repository.
59+
60+
## Configure the ASP.NET Core MCP Server
61+
62+
Create the MCP configuration file in the root folder of the ASP.NET Core Spreadsheet application. Use the configuration that corresponds to your MCP client and installed .NET SDK version.
63+
64+
### .NET 10 SDK
65+
66+
If you have the .NET 10 SDK installed, you can directly add the following configuration to the `mcp.json` file.
67+
68+
{% tabs %}
69+
{% highlight bash tabtitle="VS Code" %}
70+
71+
// Create a `.vscode/mcp.json` file in your workspace:
72+
73+
{
74+
"servers": {
75+
"sf-aspnetcore-mcp": {
76+
"type": "stdio",
77+
"command": "dnx",
78+
"args": ["Syncfusion.AspNetCore.MCP", "--yes"],
79+
"env": {
80+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH"
81+
// or
82+
// "Syncfusion_API_Key": "YOUR_API_KEY"
83+
}
84+
}
85+
}
86+
}
87+
88+
{% endhighlight %}
89+
{% highlight bash tabtitle="Code Studio" %}
90+
91+
// Create a `.codestudio/mcp.json` file in your workspace:
92+
93+
{
94+
"servers": {
95+
"sf-aspnetcore-mcp": {
96+
"type": "stdio",
97+
"command": "dnx",
98+
"args": ["Syncfusion.AspNetCore.MCP", "--yes"],
99+
"env": {
100+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH"
101+
// or
102+
// "Syncfusion_API_Key": "YOUR_API_KEY"
103+
}
104+
}
105+
}
106+
}
107+
108+
// After creating the file, click Start in the inline action to install the server.
109+
110+
{% endhighlight %}
111+
{% highlight bash tabtitle="Cursor" %}
112+
113+
// Create a `.cursor/mcp.json` file in your workspace:
114+
115+
{
116+
"mcpServers": {
117+
"sf-aspnetcore-mcp": {
118+
"command": "dnx",
119+
"args": ["Syncfusion.AspNetCore.MCP", "--yes"],
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+
{% endhighlight %}
130+
{% highlight bash tabtitle="JetBrains" %}
131+
132+
// Open AI Assistant chat, type /, and select Add Command.
133+
// Click ➕ Add on the MCP settings page.
134+
// Choose STDIO and select JSON configuration:
135+
136+
{
137+
"mcpServers": {
138+
"sf-aspnetcore-mcp": {
139+
"command": "dnx",
140+
"args": [
141+
"Syncfusion.AspNetCore.MCP", "--yes"
142+
],
143+
"env": {
144+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH"
145+
// or
146+
// "Syncfusion_API_Key": "YOUR_API_KEY"
147+
}
148+
}
149+
}
150+
}
151+
152+
// Click OK, then click Apply. The server starts and shows Connected status.
153+
154+
{% endhighlight %}
155+
{% endtabs %}
156+
157+
### .NET 8 or .NET 9 SDK (manual)
158+
159+
If you are using only .NET 8 or .NET 9, install the Syncfusion ASP.NET Core MCP Server as a local tool from your workspace directory:
160+
161+
```bash
162+
dotnet tool install Syncfusion.AspNetCore.MCP --add-source "https://nexus.syncfusioninternal.com/repository/nuget-hosted/"
163+
```
164+
165+
This installs the Syncfusion ASP.NET Core MCP Server locally within your workspace. Then add the following configuration to the `mcp.json` file:
166+
167+
```json
168+
{
169+
"servers": {
170+
"sf-aspnetcore-mcp": {
171+
"type": "stdio",
172+
"command": "dotnet",
173+
"args": [
174+
"tool",
175+
"run",
176+
"syncfusion-aspnetcore-mcp"
177+
],
178+
"env": {
179+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH"
180+
// or
181+
// "Syncfusion_API_Key": "YOUR_API_KEY"
182+
}
183+
}
184+
}
185+
}
186+
```
187+
188+
**Verifying Installation** Check your editor's MCP Server list for `sf-aspnetcore-mcp` with a **Connected** status to confirm a successful installation.
189+
190+
## Common use cases
191+
192+
The examples below demonstrate common ASP.NET Core Spreadsheet scenarios and how the MCP tools can provide relevant guidance, code examples, API references, and troubleshooting assistance. Tools can be invoked directly for specific tasks, or an AI assistant can automatically choose the most appropriate tool based on the request.
193+
194+
**Get Started**
195+
196+
Use `search_docs` to get contextual guidance, code snippets, and configuration examples for ASP.NET Core Spreadsheet applications.
197+
198+
{% promptcards %}
199+
{% promptcard Spreadsheet Setup %}
200+
#search_docs How do I configure the ASP.NET Core Spreadsheet component?
201+
{% endpromptcard %}
202+
{% endpromptcards %}
203+
204+
{% promptcards %}
205+
{% promptcard JSON Data Binding %}
206+
#search_docs How can I bind JSON data to an ASP.NET Core Spreadsheet?
207+
{% endpromptcard %}
208+
{% endpromptcards %}
209+
210+
**Implement Features**
211+
212+
Get step-by-step help for adding specific features to Spreadsheet applications that are already in the project.
213+
214+
{% promptcards %}
215+
{% promptcard Open and Save Excel Files %}
216+
#search_docs How do I open and save Excel files programmatically in an ASP.NET Core Spreadsheet?
217+
{% endpromptcard %}
218+
{% endpromptcards %}
219+
220+
{% promptcards %}
221+
{% promptcard Spreadsheet Charts %}
222+
#search_docs How do I create a chart from Spreadsheet data in ASP.NET Core?
223+
{% endpromptcard %}
224+
{% endpromptcards %}
225+
226+
**Troubleshooting**
227+
228+
Describe the problem in plain language, and let `search_docs` help resolve it.
229+
230+
{% promptcards %}
231+
{% promptcard Performance Issues %}
232+
#search_docs Why is my ASP.NET Core Spreadsheet slow when opening large datasets?
233+
{% endpromptcard %}
234+
{% endpromptcards %}
235+
236+
## Best practices
237+
238+
To get the most out of the Syncfusion<sup>®</sup> Spreadsheet MCP Server:
239+
240+
- **Be Specific** - Include the platform and Spreadsheet feature in your queries (for example, _"Can you show me how to render a Spreadsheet with default data in an ASP.NET Core application?"_).
241+
- **Provide Context** - Include applicable versions, expected outcomes, and any requirements or limitations that may affect the request.
242+
- **Use Descriptive Queries** - Avoid overly brief or ambiguous requests. Providing sufficient detail helps improve the accuracy and relevance of the response.
243+
- **Stay Consistent** - Keep file organization, naming conventions, and coding standards consistent throughout your project.
244+
- **Start Fresh for New Topics** - Begin a new chat when switching to a different task to maintain clean context.
245+
- **Use Advanced AI Models** - For the best results, use advanced AI models such as the latest-generation **Claude**, **GPT**, or **Gemini** models.
246+
- **For Troubleshooting** - Use AI suggestions for common issues; consult the [official documentation](https://help.syncfusion.com/document-processing/excel/spreadsheet/asp-net-core/getting-started-core) or [support](https://support.syncfusion.com/support/tickets/create) for complex problems.
247+
- **Minimize Active Tools** - Limit the number of active MCP tools in your IDE to prevent tool-selection ambiguity and improve response accuracy.
248+
249+
> Always review AI-generated code before using it in production.
250+
251+
## Troubleshooting
252+
253+
The table below lists frequently encountered issues and suggested resolutions to help diagnose and address common setup or usage challenges.
254+
255+
| Issue | Solution |
256+
| --- | --- |
257+
| Server failed to start | Verify the .NET SDK version and JSON syntax in the config file, then restart your IDE. |
258+
| Invalid API key | Verify your key is active at the [Syncfusion Account Page](https://syncfusion.com/account/api-key). |
259+
| Incorrect API key config | Verify the file location and content for a file path. For an inline key, check that the key is correctly updated. |
260+
| Wrong config file location | VS Code: `.vscode/mcp.json`<br/>Code Studio: `.codestudio/mcp.json`<br/>Cursor: `.cursor/mcp.json` in the workspace root. |
261+
| Manual install (.NET 8/9) | Ensure `dotnet tool install` succeeded and that `mcp.json` references the local tool via `dotnet tool run syncfusion-aspnetcore-mcp`. |
262+
| Check IDE logs | VS Code / Code Studio: Output panel → "MCP"<br/>Cursor: Developer Console for MCP errors. |
263+
264+
## Privacy and security
265+
266+
The Syncfusion MCP Server acts as a knowledge bridge between the selected AI model and Syncfusion documentation.
267+
268+
- The tools process requests according to the user's query without storing any content or prompts.
269+
- User prompts are not stored or used for other purposes.
270+
- Prompts are not used to train Syncfusion models.
271+
- The assistant provides context; the final output is produced by the selected AI model.
272+
273+
The MCP Server acts purely as a knowledge bridge, connecting your AI model with Syncfusion-specific expertise while respecting your privacy and maintaining security.

0 commit comments

Comments
 (0)