Using WebDataRocks with AI assistants

Connect the WebDataRocks MCP server to your AI assistant so it can generate and verify WebDataRocks code from the latest documentation.

The WebDataRocks MCP server

The server is hosted by WebDataRocks: there is nothing to install, and no account or API key is needed.

https://mcp.webdatarocks.com

The Model Context Protocol (MCP) is an open standard that lets an AI assistant call external tools. Once the server is connected, a request runs like this:

  1. You ask for something, for example, a pivot table in your React app.
  2. The assistant searches the WebDataRocks docs for your framework and reads the relevant guides.
  3. It writes the code and runs the report object through the validator.
  4. If the validator finds issues, the assistant fixes them and validates again before answering.

Terms of use

The MCP server is provided free of charge, “as is” and “as available”, without warranties of any kind. Responses from the server and code written by your assistant may be incomplete or inaccurate, so check them before use. To the maximum extent permitted by law, we are not liable for any damages arising from the use of the server or its responses. We may limit, change, or discontinue the server at any time. Your use of WebDataRocks itself is governed by WebDataRocks End User License Agreement.

Available tools

ToolWhat it does
wdr_searchSearches the guides and the API reference. Guides come in a separate copy for JavaScript, React, Angular, and Vue, and the search returns the one for your framework.
wdr_fetchReturns a whole guide or API page.
wdr_validate_reportChecks a report object, or the whole init object, against what WebDataRocks actually reads. It returns errors and warnings with fixes.

Connect the server

Add the server URL to your assistant:

Claude

In claude.ai or the Claude desktop app, open Customize → Connectors → + Add → Add custom connector, then enter a name and the server’s URL:

https://mcp.webdatarocks.com

In Claude Code, add the server from the command line:

claude mcp add --transport http webdatarocks https://mcp.webdatarocks.com

Cursor

In your project’s .cursor/mcp.json file or the global ~/.cursor/mcp.json file, add the following:

{
"mcpServers": {
"webdatarocks": {
"url": "https://mcp.webdatarocks.com"
}
}
}

VS Code

In your .vscode/mcp.json file, add the following:

{
  "servers": {
    "webdatarocks": {
      "type": "http",
      "url": "https://mcp.webdatarocks.com"
    }
  }
}

Other assistants

Any assistant that supports remote MCP servers over HTTP can connect: add a server with the URL https://mcp.webdatarocks.com and no authentication.

Important No authentication or API key is required to connect to the server.

Check the connection

Start a new chat and give the assistant a small coding task:

Write a WebDataRocks report that loads https://cdn.webdatarocks.com/data/data.csv and shows the sum of Price by Country. Validate it before you answer.

If no tools were called, the assistant answered from memory. See Troubleshooting to solve the problem.

Write prompts that get working code

The assistant writes better WebDataRocks code when the prompt provides more details:

  • Which product? Write “WebDataRocks”, not “pivot table”. The name tells the assistant which server to use.
  • Which framework? Name it: plain JavaScript, React, Angular, or Vue, etc. Setup, component props, and the way you reach the WebDataRocks instance differ between frameworks, and the server returns the guide for the one you specify.
  • What does the data look like? List the main fields and their types, or paste the first lines of your CSV or the metadata object of your JSON.
  • What should the user see? Specify which fields go to rows, columns, and measures, with the aggregation and number format.

Example prompts

Copy a prompt into a chat that has the server connected, and replace the text in square brackets with your own details:

TaskPrompt
Start a page from CSVBuild an HTML page with WebDataRocks that loads [CSV URL] and shows the sum of [measure] by [row field] in rows and [column field] in columns. Format [measure] as currency with no decimals.
Add WebDataRocks to an appAdd WebDataRocks to my Angular project.
Refresh data on timerReload the WebDataRocks data from [JSON endpoint] every [N] minutes, keeping the user’s filters and sorting.
Highlight valuesIn WebDataRocks, show [measure] cells below [value] with a red background.
Localize UITranslate the WebDataRocks UI into French, including the Toolbar, the Field List and the filter pop-up.
Export to PDFAdd a button that exports the current view to a landscape PDF with today’s date in the header.
Match your brandShow a WebDataRocks pivot table with the sample data from https://cdn.webdatarocks.com/data/data.csv. Use the dark theme and make the column headers teal (#008080).
Review existing codeCheck this WebDataRocks report and fix every problem the validator finds: [paste your report].
Check a featureCan WebDataRocks load a 5 MB JSON file or connect to MySQL? If not, what are my options?

Make WebDataRocks a project rule

Add these instructions to your assistant’s rules file once, so you don’t have to repeat them in every prompt. Replace the version with your own:

## WebDataRocks
- This project uses WebDataRocks [version].
- Answer WebDataRocks questions with the WebDataRocks MCP server, not from memory.
AssistantRules file
Claude CodeCLAUDE.md in the project root
Cursor.cursor/rules/webdatarocks.mdc
Also, add alwaysApply: true to the front matter of the .mdc file so the rule loads in every chat.
GitHub Copilot.github/copilot-instructions.md

Troubleshooting

The assistant doesn’t list the WebDataRocks tools

Check that the server URL is https://mcp.webdatarocks.com, then start a new chat or restart the assistant. If the tools are still missing, remove the server and add it again. In VS Code, switch Copilot Chat to Agent mode.

The assistant answers without calling the tools

Name WebDataRocks in the prompt, or add a project rule. You can also ask directly: “Use the WebDataRocks MCP server to answer.”

The Claude preview shows “Uncaught ReferenceError: WebDataRocks is not defined”

Claude can render the page it writes as an artifact, so you see the pivot table right in the chat. The preview runs in a sandbox that loads scripts only from a short list of CDNs, and cdn.webdatarocks.com is not on it. A page that loads WebDataRocks from its own CDN fails with Uncaught ReferenceError: WebDataRocks is not defined. Load the npm package from jsDelivr instead:

<script src="https://cdn.jsdelivr.net/npm/@webdatarocks/webdatarocks/webdatarocks.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@webdatarocks/webdatarocks/webdatarocks.toolbar.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/@webdatarocks/webdatarocks/webdatarocks.min.css" rel="stylesheet">

To get this from the start, add to your prompt: “Load WebDataRocks from jsDelivr so the page works in the artifact preview.”

The Claude preview shows no data

The sandbox blocks network requests, so data from a filename URL does not load, and neither do the Toolbar’s options to open remote files. Ask Claude to put a few sample records inline in dataSource.data for the preview, and switch to your URL in your app.

The Claude preview shows the pivot table without styles

The stylesheet was blocked. Ask Claude to inline webdatarocks.min.css in a <style> tag. Toolbar icons may still be missing in the preview; they load normally in your app.

Privacy

The MCP server receives the search queries your assistant sends and the reports it validates.

Do not include personal data, confidential information, or credentials in your prompts or reports. Sample records with the same fields as your real data are enough for the assistant to write and validate the code. The AI assistant you connect to the server has its own privacy policy and may store your prompts, code, and tool results, so check its privacy policy before sharing sensitive data. For how WebDataRocks handles personal data, see the Privacy Policy.

See also