Skip to main content
Glama
Report & Dashboard Studio

Report & Dashboard Studio

README.md
<p align="center"><img src="assets/banner.svg" alt="Report & Dashboard Studio by Dinesh AI Academy" width="100%"></p>

# Report & Dashboard Studio for Claude

Report & Dashboard Studio is a Claude plugin and Claude Desktop extension (MCP) that turns data in **SAP HANA,
PostgreSQL, SQL Server / Azure SQL, MySQL / MariaDB, Oracle, SQLite** — or any SQLAlchemy database — into finished
**HTML dashboards, Excel workbooks, CSV extracts and printable reports**, saves them as re-runnable report specs, and
publishes them to **OneDrive or SharePoint** with a **daily refresh**. It has 24 read-only tools and four skills.

<p align="center"><img src="assets/dashboard-preview.png" alt="Example dashboard built from the sample database" width="85%"></p>

## What it does

| Step | Tools |
|---|---|
| Connect to one or many databases | `list_connections` · `test_connection` · `show_config` |
| Explore schemas before writing SQL | `list_schemas` · `list_tables` · `describe_table` · `get_sample_data` · `search_columns` |
| Query and export | `run_query` · `export_query` (xlsx, csv, html, json) |
| Build dashboards and reports | `list_templates` · `preview_dashboard_spec` · `build_dashboard` |
| Save and refresh | `save_report` · `list_reports` · `get_report` · `refresh_report` · `refresh_all_reports` |
| Publish to OneDrive / SharePoint | `publish_file` · `test_microsoft365` · `list_published_files` |
| Schedule the daily refresh | `get_refresh_schedule` · `write_refresh_env_template` · `show_refresh_log` |

**Report types:** KPI tiles (with ▲/▼ change vs. a previous period), charts (bar, line, area, pie, doughnut,
horizontal bar, stacked bar, scatter, radar), data tables, text blocks; *dashboard* or printable *report* layout.
**Templates:** seven themes — `executive`, `sales`, `finance`, `operations`, `hr`, `minimal`, `dark` — or your own HTML
template with `{{TITLE}}`, `{{CONTENT}}`, `{{SCRIPTS}}` placeholders ([example](examples/custom-template.html)).

**Skills** (in [`skills/`](skills)): `build-dashboard`, `build-report`, `publish-and-schedule`, `connect-database`.

## Install as a Claude plugin (Claude Code / Cowork)

Requires [uv](https://docs.astral.sh/uv/getting-started/installation/) (it provides Python and the packages).

```text
/plugin marketplace add dineshaiacademy/server-claude-plugin
/plugin install server@dinesh-ai-academy
```

Set the connection as environment variables before starting Claude (or put them in your shell profile), then restart:

| Variable | Example |
|---|---|
| `RDS_DB_TYPE` | `hana`, `postgres`, `sqlserver`, `mysql`, `mariadb`, `oracle`, `sqlite` |
| `RDS_DB_HOST` / `RDS_DB_PORT` | `db.company.com` / `5432` (port optional) |
| `RDS_DB_NAME` | database, Oracle service name, or SQLite file path |
| `RDS_DB_USER` / `RDS_DB_PASSWORD` | a **read-only** login |
| `RDS_DB_SCHEMA` | optional default schema |
| `RDS_DB_URL` | instead of the above: any SQLAlchemy URL |
| `RDS_CONNECTIONS_FILE` | optional JSON with more named connections ([example](examples/connections.example.json)) |
| `RDS_HOME` | working folder for specs and outputs (default `~/ReportDashboardStudio`) |
| `RDS_PUBLISH_TO` | default destination: SharePoint/OneDrive URL, `onedrive:user@company.com/Folder`, or a synced folder |
| `RDS_M365_TENANT_ID` / `RDS_M365_CLIENT_ID` / `RDS_M365_CLIENT_SECRET` | only for upload through Microsoft Graph |

## Install the Claude Desktop extension (.mcpb)

1. Get the `.mcpb` for your computer from the latest release — Windows x64, macOS Apple Silicon, macOS Intel or
   Linux x86-64 — or build it (below). Install **Python 3.11 to 3.14** with pip, available on your PATH as `python`
   on Windows or `python3` on macOS and Linux.
2. In Claude Desktop, open **Settings → Extensions → Advanced settings → Install Extension**, choose the `.mcpb`, and
   follow the prompts.
3. Open **Report & Dashboard Studio → Configure**: database type, host, port, database, read-only user and password,
   default schema, working folder, publish destination and (optionally) the Microsoft 365 app. Every field is
   optional; Claude tells you what is missing the first time you ask.

The first use of PostgreSQL, SQL Server, Oracle or SAP HANA downloads that database driver once (needs internet).

## Use it in Claude

- “Test the connection and list the tables.”
- “Build an executive dashboard of sales for the last 30 days: revenue, orders, average order value, a daily trend,
  revenue by region and the top 10 customers.”
- “Create a monthly finance report as Excel with one sheet per cost centre.”
- “Publish the dashboard to https://contoso.sharepoint.com/sites/Sales/Shared Documents/Dashboards and refresh it
  every day at 7 am.”

Try it without a database: set `RDS_DB_TYPE=sqlite` and `RDS_DB_NAME=<repo>/examples/sample_sales.sqlite`
(a demo database of customers, products and 3,000 orders; regenerate it with `python examples/make_sample_db.py`). Example specs: [daily sales dashboard](examples/daily-sales-dashboard.json),
[monthly finance report](examples/monthly-finance-report.json).

## Publishing and daily refresh

- **Synced folder** (no setup): publish to your OneDrive / synced SharePoint folder; the OneDrive app uploads it.
- **Microsoft Graph** (unattended, works on a server): an Entra app registration with `Sites.Selected` (recommended),
  `Sites.ReadWrite.All` or `Files.ReadWrite.All`. Step-by-step: [docs/microsoft365-setup.md](docs/microsoft365-setup.md).
- **Daily refresh:** saved specs live in `<working folder>/reports/`. Claude gives you the exact Windows Task Scheduler
  or cron command (`get_refresh_schedule`); the scheduler runs the server with `--refresh-all`, using settings from
  `<working folder>/refresh.env` (you type the passwords into it yourself). Each run re-queries the data, rewrites the
  files under the same names (links keep working) and uploads them. History: `logs/refresh.log`.

SharePoint Online normally downloads `.html` files instead of rendering them; publish the `.xlsx` alongside for Excel
for the web, or open the HTML from the synced folder. See the docs for hosting options.

## Safety

- **Read-only:** one `SELECT` or `WITH` statement per query; statements containing `INSERT`, `UPDATE`, `DELETE`,
  `MERGE`, DDL, `SELECT … INTO`, `FOR UPDATE` and similar are rejected. On PostgreSQL, MySQL, MariaDB and Oracle the
  query also runs inside a `READ ONLY` transaction (SQLite: `query_only`), and every transaction is rolled back.
- Use a database login that can only `SELECT`. Credentials stay on your computer; nothing is sent to Dinesh AI Academy.
- Claude asks before publishing to a shared location.

## Build the bundles

Install uv, then run this command from the repository root on Windows, macOS, or Linux:

```text
uv run setup/build_mcpb.py
```

It builds all four targets into `dist/<version>/` with a `SHA256SUMS.txt`; pass target names to build a subset
(`uv run setup/build_mcpb.py windows mac-arm`).

| Target | Bundle for version 1.0.0 |
|---|---|
| Windows x64 | `server-1.0.0-windows.mcpb` |
| macOS Apple Silicon | `server-1.0.0-mac-arm.mcpb` |
| macOS Intel | `server-1.0.0-mac-intel.mcpb` |
| Linux x86-64 | `server-1.0.0-linux.mcpb` |

The builder reads its version from `version=` in `server/rds_mcp_server.py`. For a release: bump the
version, add a `CHANGELOG.md` entry, build, verify against `SHA256SUMS.txt`, commit, and create a GitHub release
(tag `v1.0.0`) with the `.mcpb` files and `SHA256SUMS.txt` attached. `dist/` is Git-ignored.

## Run the offline checks

```text
uv run --no-project --with-requirements requirements.txt python -m unittest discover -s tests -v
```

## Repository layout

```text
.claude-plugin/        plugin.json and marketplace.json (Claude Code / Cowork plugin)
.mcp.json              how the plugin starts the MCP server
skills/                build-dashboard · build-report · publish-and-schedule · connect-database
server/rds_mcp_server.py   the MCP server (also the --refresh-all runner)
extension/             Claude Desktop extension launcher, README and icon
setup/build_mcpb.py    builds the .mcpb bundles
examples/              sample database, dashboard/report specs, connections and template examples
docs/                  Microsoft 365 / SharePoint setup
tests/                 offline tests
```

## Security & support

- Report a vulnerability privately — see [SECURITY.md](SECURITY.md). Never post credentials or hostnames in public issues.
- Bugs & feature requests: open an [issue](https://github.com/dineshaiacademy/server-claude-plugin/issues).
- Enterprise rollout, training & custom versions: support@dineshaiacademy.com · [dineshaiacademy.com](https://dineshaiacademy.com)

## Support this project

If Report & Dashboard Studio saved you time, you can buy us a coffee. Your support helps us fix bugs, test new releases, and keep the plugin free and open source. Thanks for using it.

[![Buy us a coffee with PayPal](https://img.shields.io/badge/Buy%20us%20a%20coffee-10233F?style=for-the-badge&logo=paypal&logoColor=F59E0B)](https://www.paypal.com/ncp/payment/BY5NCR57JDUTC)

## License

The software is released under the [MIT License](LICENSE). The Dinesh AI Academy name, logo and tagline are trademarks
and are not covered by that license — see [BRANDING.md](BRANDING.md). Database drivers have their own terms — see
[THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md).

SAP and SAP HANA are trademarks or registered trademarks of SAP SE. Microsoft, OneDrive, SharePoint, Excel and SQL Server
are trademarks of the Microsoft group of companies. Claude is a trademark of Anthropic. This project is independent and
not affiliated with or endorsed by SAP SE, Microsoft, Oracle or Anthropic.