Skip to content

MCP Setup

Rawdash exposes a Model Context Protocol (MCP) server so Claude-powered tools can query your dashboard data as context.

Prerequisites

Claude Code

  1. Open your project settings

    In your project root, open (or create) .claude/settings.json.

  2. Add the Rawdash MCP server

    .claude/settings.json
    {
    "mcpServers": {
    "rawdash": {
    "command": "npx",
    "args": ["-y", "@rawdash/mcp"],
    "env": {
    "RAWDASH_URL": "http://localhost:3000/api/rawdash"
    }
    }
    }
    }

    Replace RAWDASH_URL with the URL of your Rawdash server.

  3. Restart Claude Code

    Claude Code picks up MCP server changes on restart. After restarting, type /mcp to verify the rawdash server is listed.

  4. Ask questions about your data

    Once connected, Claude can query your dashboards directly:

    “What were the most active repos last week?”

    “Show me open PRs older than 7 days across all repos.”

Claude Desktop

  1. Open the Claude Desktop config file

    Terminal window
    open ~/Library/Application\ Support/Claude/claude_desktop_config.json
  2. Add the Rawdash MCP server

    {
    "mcpServers": {
    "rawdash": {
    "command": "npx",
    "args": ["-y", "@rawdash/mcp"],
    "env": {
    "RAWDASH_URL": "https://your-rawdash-server.example.com/api/rawdash"
    }
    }
    }
    }
  3. Restart Claude Desktop

    The Rawdash tools will appear in the Claude Desktop tools panel after restart.

Available MCP tools

Once connected, Claude has access to these tools:

ToolDescription
rawdash_list_dashboardsList all configured dashboards
rawdash_get_widgetsFetch widget data for a dashboard
rawdash_queryRun a structured query against a dashboard’s data
rawdash_healthCheck sync status and last-synced timestamps

Scoping access

By default, the MCP server exposes all dashboards. To restrict access to specific dashboards, pass a RAWDASH_DASHBOARD_IDS env var:

{
"env": {
"RAWDASH_URL": "http://localhost:3000/api/rawdash",
"RAWDASH_DASHBOARD_IDS": "eng,design"
}
}