dashboardbase
OfficialValidates Dashboardbase setup files and widget endpoint responses against the live contract, with no account or API key required.
validate_setup_file: Check a setup file (viacontentorpath) for errors and warnings, with JSON path, field, and line/column for each issue.validate_widget_response: Check a widget endpoint's full JSON response (including thetitle/actions/data/alertenvelope) against the widget contract, optionally specifyingwidgetType; returns validity, widget type, and error paths/messages.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dashboardbaseValidate my dashboard setup file and report errors or warnings"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
This is the official MCP server for dashboardbase. Add it to your AI tool and it can check a widget endpoint's response — or a whole dashboard setup file — against the contract dashboardbase actually enforces, before you ever open the app.
The dashboardbase skill teaches your agent the JSON contract. This MCP lets it check its own work. Use both: the skill gets the shape right, the MCP proves it.
What this MCP does
It gives your agent three tools:
Tool | What it checks |
| A dashboardbase setup file — the JSON that provisions a whole dashboard's widgets and datasources. Reports errors and warnings with the field, line and column. |
| The JSON body a widget endpoint returns, against the widget contract. Reports the path and message for each problem. |
| Uploads a finished setup file and returns a link that opens straight into its import preview — only when you ask for one. Refuses a file carrying credentials and lists the offending fields. |
All three call the public dashboardbase tools API. No account, no API key, nothing to configure.
Related MCP server: kube-lint-mcp
Before / after
Without it — your agent writes an endpoint, you deploy it, you wire it into dashboardbase, the widget shows an error, you go read the docs, you fix it, you deploy again.
With it — your agent writes the endpoint, validates the response, fixes the two things that were wrong, and hands you something that renders the first time.
Invalid setup file — 2 errors, 1 warning
mappings[0].type 14:9 Unknown widget type "guage"
mappings[1].path 22:5 Path must start with "/"
warning mappings[2] No refreshInterval setInstall
Claude Code
claude mcp add dashboardbase -- npx -y @dashboardbase/mcpOne click
Claude Desktop
Download dashboardbase-mcp.mcpb from the latest release and drag it into Claude Desktop's extensions settings. The bundle is self-contained — you don't even need Node.
Cursor, Windsurf, and most other clients
These use the mcpServers shape. Add it to ~/.cursor/mcp.json (Cursor), ~/.codeium/windsurf/mcp_config.json (Windsurf), or your client's equivalent:
{
"mcpServers": {
"dashboardbase": {
"command": "npx",
"args": ["-y", "@dashboardbase/mcp"]
}
}
}VS Code
VS Code is the exception — it uses servers rather than mcpServers, and requires an explicit type. In .vscode/mcp.json (workspace) or your user profile:
{
"servers": {
"dashboardbase": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@dashboardbase/mcp"]
}
}
}Codex CLI
Codex uses TOML. Easiest is the CLI:
codex mcp add dashboardbase -- npx -y @dashboardbase/mcpOr by hand in ~/.codex/config.toml:
[mcp_servers.dashboardbase]
command = "npx"
args = ["-y", "@dashboardbase/mcp"]Requires Node.js 20 or newer — that's the only prerequisite, and only for the npx routes. Nothing else to configure: the validation API is public, so there's no account, key or environment variable to set.
Staying up to date
Two different things arrive by two different routes, which is worth knowing:
Better error messages arrive on their own. The server holds no schemas — it calls the live API — so as validation messages improve, you see them immediately. Nothing to update.
New tools need a package update. If a release adds a tool, you get it once the package updates and your client restarts the server. A running server's tool list is fixed for the session.
How you installed | How you update |
| Automatic — restart your client and the next server start picks up the newest version. |
Claude Desktop | Pinned at install. Download the new bundle from releases and drag it in again. |
Docker |
|
Check what you're running:
npx -y @dashboardbase/mcp --versionIf that reports an older version than the latest release, npm is serving cached registry metadata — a just-published version can take a few minutes to show up. Force it:
npx -y @dashboardbase/mcp@latest --versionReleases follow semver: new tools are a minor bump and never break existing calls, so updating is safe by default.
Using it
First, check it's connected
claude mcp listYou should see dashboardbase listed as connected. Inside a Claude Code session, /mcp shows the server and its three tools. In other clients, look for dashboardbase in the MCP or tools panel.
If it isn't there, the server never started — check that node --version is 20 or newer, and that your config file has valid JSON.
Then just ask
You don't call these tools yourself. Describe what you want and the agent decides to call them, the same way it decides to read a file. There's no special syntax and nothing to remember.
Validating something you already have:
"Validate my dashboardbase setup file"
"Is
.dashboardbase/revenue.jsonvalid?""Check this against the dashboardbase contract" — then paste the JSON
Validating as part of building:
"Build a KPI endpoint for MRR, then validate the response it returns"
"Add a gauge widget to my setup file and make sure it still validates"
Debugging something broken:
"My gauge widget shows an error in dashboardbase — check what my endpoint returns against the contract"
"Why is dashboardbase rejecting my setup file?"
What it looks like
You: My revenue widget isn't rendering. Check
.dashboardbase/revenue.json.Agent: calls
validate_setup_fileInvalid setup file — 2 errors mappings[0].type 14:9 Unknown widget type "guage" mappings[1].path 22:5 Path must start with "/"Agent: Two problems —
guageis a typo forgauge, and the second mapping's path is missing its leading slash. Fixing both now.edits the file, calls
validate_setup_fileagainValid setup file — no errors.
That loop — validate, fix, re-validate — is the whole point. The agent closes it without you opening dashboardbase.
Or invoke it directly
In Claude Code, the server adds a slash command — type / and it's in the menu:
/mcp__dashboardbase__validate .dashboardbase/revenue.jsonLeave the path off and it validates whatever you're working on, or whatever you paste next. This is the deterministic route: it doesn't depend on the agent deciding the tool is relevant.
The middle segment comes from the name you installed under. If you ran
claude mcp add dashboardbase …it's/mcp__dashboardbase__validate; install it as something else and that segment changes to match.
In clients that don't support MCP prompts, just name the tool in plain language:
"Use validate_setup_file on .dashboardbase/revenue.json"
"Use validate_widget_response to check this"
Agents sometimes need the nudge the first time; after that they usually pick it up on their own.
The three tools
Tool | Arguments | Notes |
|
| Give one or the other. |
|
| Inferred from the response when |
|
| The link expires after 48 hours and anyone holding it can read the file, so share it directly. |
Two things worth knowing:
pathonly exists over stdio. A hosted HTTP deployment has no access to your disk, so the parameter isn't offered there — passcontent/responseinstead.validate_widget_responsewants the full response body — thetitle/actions/data/alertenvelope your endpoint actually returns, not just the innerdatapayload.
Configuration
Everything is optional.
Variable | Default | Purpose |
|
| Point at a different environment. |
| unset | Sent as |
|
| Request timeout in milliseconds. |
Running it as an HTTP server
For containers or a shared internal deployment:
npx @dashboardbase/mcp --http --port 3000
# or
docker build -t dashboardbase-mcp . && docker run -p 3000:3000 dashboardbase-mcpServes Streamable HTTP at /mcp and a health check at /health. It's fully stateless, so it scales horizontally with no session affinity. Browser origins are refused unless you allowlist them with --allowed-origin https://example.com. The file-reading path parameter is not exposed in this mode.
What's in the repo
mcp/
├── src/
│ ├── index.ts # CLI entry — stdio by default, --http optional
│ ├── server.ts # Registers the three tools
│ ├── api.ts # Client for the dashboardbase Tools API
│ ├── format.ts # Renders results as readable text
│ ├── http.ts # Stateless Streamable HTTP handler
│ └── tools/ # One file per tool
├── test/ # Unit tests, no network required
├── tools.json # OpenAPI spec for the validation API
├── server.json # MCP Registry manifest
├── manifest.json # Claude Desktop bundle manifest
└── DockerfileHow validation works
The server doesn't carry a copy of the schemas — it calls the live dashboardbase validation API. So it can't drift from what the platform accepts, and error messages get better as the API does, with nothing to upgrade on your side.
That applies to the validation rules and messages, not to the server itself — a release that adds a tool still needs a package update. See Staying up to date.
Related
dashboardbase — the product. Build, host, and share dashboards from your APIs.
dashboardbase skill — free to install; teaches your agent the JSON contract so it writes correct endpoints in the first place. Pairs directly with this MCP.
Documentation — widget reference, JSON contract, webhook setup.
Contributing
Found a gap or a confusing error? Open an issue. Note that the validation rules themselves live in the dashboardbase backend — if a message is unclear that's still worth reporting here, and we'll fix it upstream.
License
MIT — see LICENSE. Fork it, adapt it, ship it.
The MIT license covers the code in this repo — not the dashboardbase name or logo, which belong to Kompile ApS. You're free to use and adapt the server; please don't use the name or branding in a way that implies official affiliation.
The dashboardbase skill is licensed differently: free to install and use, but not open source.
Available Tools
3 toolscreate_setup_linkCreate dashboardbase setup linkA
Upload a dashboardbase setup file and get back a link that opens straight into its import preview in dashboardbase. Only call this when the user has asked for a link: the file leaves their machine, and anyone holding the link can read it for 48 hours. Validate the file with validate_setup_file first. A file carrying credential-shaped fields is refused with the offending fields listed — remove them, never work around the check.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the setup file, absolute or relative to the working directory. | |
| content | No | The full text of the setup file. Provide this or `path`. |
Output Schema
| Name | Required | Description |
|---|---|---|
| url | No | The link to hand to the user. |
| errors | No | The fields that stopped the link being created. |
| reason | No | Why no link was created, e.g. `credentials_detected`. |
| created | Yes | True when the link was created. |
| expiresAt | No | When the link stops working (UTC). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations only cover the safety profile (readOnlyHint=false, openWorldHint=true, destructiveHint=false); the description adds the information an agent actually needs: the file leaves the user's machine, the link is readable by anyone holding it for 48 hours, credential-shaped fields cause rejection with the fields listed, and the check must never be circumvented. That is substantial behavioral context beyond the structured fields, and it is consistent with openWorldHint=true.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Four sentences, front-loaded with what the tool produces, then the call condition, prerequisite, and failure mode. No sentence is redundant and none could be dropped without losing decision-relevant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists so return shape need not be described. Given that, the description covers everything an agent needs: when to call, the required prior validation step, the privacy implication, and the credential-field refusal behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already explains that `path` and `content` are alternatives. The description does not add format, size, or precedence guidance for choosing between them, so the baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (upload), resource (dashboardbase setup file), and concrete outcome (a link that opens straight into the import preview). This is clearly distinguishable from the sibling validation tools, which check files rather than publish them.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives an explicit gating condition ('Only call this when the user has asked for a link') and names the prerequisite sibling ('Validate the file with validate_setup_file first'). Both the when and the ordering are spelled out, leaving nothing to inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
validate_setup_fileValidate dashboardbase setup fileARead-only
Validate a dashboardbase setup file (the declarative JSON that provisions a dashboard, usually stored at .dashboardbase/.json). Returns whether the file is valid plus any errors and warnings, with the JSON path, field and line/column of each problem. Use this after writing or editing a setup file, before telling the user it is ready to import.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the file to validate, absolute or relative to the working directory. | |
| content | No | The full text of the setup file. Provide this or `path`. |
Output Schema
| Name | Required | Description |
|---|---|---|
| valid | Yes | True when the setup file passes validation. |
| errors | Yes | Problems that make the file invalid. |
| warnings | Yes | Non-fatal advice about the file. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful behavior beyond them: the return shape (valid flag plus errors and warnings) and the granularity of diagnostics (JSON path, field, line/column). It does not mention any limits or failure modes of the validator itself.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, no filler, and the front-loaded clause identifies the artifact before moving to returns and then usage timing. Every sentence carries distinct information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema already exists, so return values need no elaboration, yet the description still summarizes them in one clause for routing decisions. With full schema coverage, a clear usage trigger, and an explicit read-only annotation, nothing an agent needs to call this correctly is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% and both parameters are documented in the schema, including the 'provide this or `path`' relationship. The description adds no parameter-level detail (e.g. precedence when both are supplied), so the baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (validate) and resource (dashboardbase setup file), and defines the resource parenthetically as the declarative JSON provisioning a dashboard stored at .dashboardbase/<name>.json. That is enough for an agent to identify it, though it never names a sibling such as validate_widget_response, so differentiation relies on the agent noticing the distinct resource noun.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives explicit timing: 'after writing or editing a setup file, before telling the user it is ready to import.' That is a clear usage context. It stops short of alternatives or exclusions (e.g. when to prefer validating by path vs. content), so it does not reach the top band.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
validate_widget_responseValidate dashboardbase widget responseARead-only
Validate the JSON body a dashboardbase widget endpoint returns, against the widget contract. Pass the complete response body — the envelope with title, actions, data and alert — exactly as the endpoint returns it, not just the inner data payload. Returns whether the response is valid, the widget type it was checked against, and the path and message of each problem. Use this after building or changing an endpoint that dashboardbase will poll.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the file to validate, absolute or relative to the working directory. | |
| response | No | The full response body from the widget endpoint, including the title/actions/data/alert envelope. Accepts a JSON object or a JSON string. Provide this or `path`. | |
| widgetType | No | Optional widget type to check against, for example "kpi", "line" or "table". Inferred from the response when omitted. |
Output Schema
| Name | Required | Description |
|---|---|---|
| valid | Yes | True when the response passes validation. |
| errors | Yes | Problems that make the response invalid. |
| widgetType | No | The widget type the response was validated against. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already establish this is a safe, read-only, open-world check, so the description only needs to add context — and it does: it warns that the FULL envelope must be passed rather than just the inner `data` payload, and notes the widget type is inferred when omitted. It does not discuss error semantics or partial validation, which keeps it short of a 5.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the purpose, then the critical input caveat, then usage context. Three sentences with little waste, though the sentence enumerating return fields is largely redundant given the output schema exists.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return values need no further explanation, and annotations cover the safety profile. Between the description's input-shape warning and the schema's 100% parameter coverage, an agent has everything needed to call this correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3. The description goes beyond the schema by clarifying the shape of the `response` argument (the title/actions/data/alert envelope, not the inner payload) and reinforcing that `widgetType` is optional and inferred — real semantic guidance rather than restatement.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource — validating a dashboardbase widget endpoint's JSON body against the widget contract — and names the artifact ('the envelope with title, actions, data and alert'), which distinguishes it from the sibling validate_setup_file.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives a clear trigger: 'Use this after building or changing an endpoint that dashboardbase will poll.' That tells the agent when the tool applies, but it never names or rules out the sibling tools (validate_setup_file, create_setup_link), so the routing is implied rather than explicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.0.1- Added
create_setup_link
2 tool updates
v1.0.0- First observed
validate_setup_file - First observed
validate_widget_response
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: validating a setup file, validating a widget endpoint response, and generating a share link. The two validation tools could superficially overlap, but their descriptions sharply delineate the different contracts (setup JSON vs. widget response envelope).
All three tools follow a consistent verb_noun pattern (validate_setup_file, validate_widget_response, create_setup_link). Conventions are uniform and predictable.
Three tools is on the lean side but each earns its place in a narrow validation-plus-linking scope. Nothing feels redundant, though the surface is thin enough that it sits near the borderline.
The validate-then-share lifecycle is well covered, including a safety guard on credential-shaped fields in the link tool. Minor gaps exist (e.g. no way to fetch the widget contract or read an existing setup file), but they are workable around the stated purpose.
Maintenance
Related MCP Connectors
MCP Spec Compliance MCP — audits any MCP server.json against the official Model Context Protocol
The MCP server that vets MCP servers: identity, risk grade and per-tool risk before you install.
Monitor MCP servers, API contracts and AI outputs for schema drift. Alerts on breaking changes.
Dashboards as data. Author, validate, render, and share dvt dashboards from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceMCP server that checks the Baseline status using Web Platform APIs.37MIT
- AlicenseNot gradedqualityCmaintenanceMCP server to lint and validate Kubernetes-related manifests(Helm, FluxCD, ArgoCD, Kustomize, etc.)179 PyPIMIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server for validating JSON against schemas, checking email deliverability, verifying URLs, assessing data quality, and validating API responses using RFC-compliant checks and heuristic analysis.2 npm44 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceMCP server for validating JSON against JSON Schema and repairing malformed/invalid JSON.5 npm1MIT