{"id":41182542,"url":"https://github.com/jonico/redash-mcp-server","last_synced_at":"2026-01-22T20:08:20.995Z","repository":{"id":329471813,"uuid":"1119756437","full_name":"jonico/redash-mcp-server","owner":"jonico","description":"Small wrapper around redash-mcp-server","archived":false,"fork":false,"pushed_at":"2025-12-19T21:19:37.000Z","size":47,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-22T08:45:29.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonico.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-19T19:46:57.000Z","updated_at":"2025-12-19T21:06:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jonico/redash-mcp-server","commit_stats":null,"previous_names":["jonico/redash-mcp-server"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jonico/redash-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonico%2Fredash-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonico%2Fredash-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonico%2Fredash-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonico%2Fredash-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonico","download_url":"https://codeload.github.com/jonico/redash-mcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonico%2Fredash-mcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28670366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T20:08:20.456Z","updated_at":"2026-01-22T20:08:20.990Z","avatar_url":"https://github.com/jonico.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redash MCP Server\n\nA [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that provides access to Redash queries, enabling AI assistants and applications to fetch and interact with data from Redash dashboards.\n\n## Features\n\n- 🔌 **MCP Protocol Support**: Full compatibility with the Model Context Protocol\n- 🌐 **HTTP/SSE Mode**: Expose MCP functionality over HTTP using Server-Sent Events (SSE)\n- 📊 **Redash Integration**: Execute queries and fetch results from Redash\n- ⚡ **Multi-Session Support**: Handle multiple concurrent client sessions\n- 🔒 **Secure Authentication**: API key authentication via HTTP headers\n- ⏱️ **Configurable Timeouts**: Customizable query timeouts, polling intervals, and cache settings\n- 🐳 **Docker Ready**: Pre-built Docker images available\n- ☸️ **Kubernetes Ready**: Complete Kubernetes manifests included\n\n## Installation\n\n### Prerequisites\n\n- Node.js 20 or higher\n- npm or yarn\n- Redash API key\n\n### Local Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/jonico/redash-mcp-server.git\ncd redash-mcp-server\n\n# Install dependencies\nnpm install\n\n# Set your Redash API key\nexport REDASH_KEY=\"your-redash-api-key\"\n```\n\n## Usage\n\nThe server can run in two modes:\n\n### 1. Stdio Mode (Default)\n\nFor direct MCP client connections via standard input/output:\n\n```bash\nnpm start\n# or\nnpm run start:mcp\n# or\nnode src/index.js --stdio\n```\n\n### 2. HTTP/SSE Mode\n\nFor HTTP-based access using Server-Sent Events:\n\n```bash\nnpm run start:http\n# or\nnode src/index.js --http\n```\n\nThe server will start on port 3000 (configurable via `PORT` environment variable).\n\n## Configuration\n\n### Environment Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `REDASH_KEY` | Redash API key (required) | - |\n| `PORT` | HTTP server port (HTTP mode only) | `3000` |\n| `QUERY_TIMEOUT_SECONDS` | Maximum time to wait for query completion | `60` |\n| `QUERY_POLL_MS` | Polling interval in milliseconds | `2000` |\n| `QUERY_MAX_AGE_SECONDS` | Maximum age of cached results (optional) | - |\n| `REDASH_QUERY_ID` | Default Redash query ID | `35173` |\n\n### HTTP Headers (HTTP/SSE Mode)\n\nWhen using HTTP mode, you can configure the server per-request via HTTP headers:\n\n| Header | Description |\n|--------|-------------|\n| `Authorization` | Redash API key (required). Format: `Authorization: Key \u003capi-key\u003e` or `Authorization: \u003capi-key\u003e` |\n| `X-Query-Timeout-Seconds` | Override query timeout |\n| `X-Query-Poll-Ms` | Override polling interval |\n| `X-Query-Max-Age-Seconds` | Override cache max age |\n| `X-Query-Id` or `X-Redash-Query-Id` | Override query ID |\n\n## API Endpoints (HTTP/SSE Mode)\n\n### Health Check\n\n```bash\nGET /health\n```\n\nReturns server status:\n\n```json\n{\n  \"status\": \"ok\",\n  \"service\": \"redash-mcp-server\"\n}\n```\n\n### SSE Connection\n\n```bash\nGET /sse\nHeaders:\n  Authorization: Key \u003cyour-redash-api-key\u003e\n  X-Query-Timeout-Seconds: 120 (optional)\n  X-Query-Poll-Ms: 3000 (optional)\n  X-Query-Id: 12345 (optional)\n```\n\nEstablishes a Server-Sent Events connection for MCP communication.\n\n### Messages Endpoint\n\n```bash\nPOST /messages?sessionId=\u003csession-id\u003e\nHeaders:\n  Authorization: Key \u003cyour-redash-api-key\u003e (optional, for updating API key)\n```\n\nSends MCP messages to the server.\n\n## MCP Tools\n\n### `getData`\n\nFetches customer postman usage data for the requested organization domain.\n\n**Input Schema:**\n```json\n{\n  \"org\": \"string\"\n}\n```\n\n**Example:**\n```json\n{\n  \"org\": \"example.com\"\n}\n```\n\n## Docker Deployment\n\n### Using Pre-built Image\n\n```bash\ndocker pull ghcr.io/jonico/redash-mcp-server:latest\ndocker run -d \\\n  -p 3000:3000 \\\n  -e REDASH_KEY=\"your-api-key\" \\\n  ghcr.io/jonico/redash-mcp-server:latest\n```\n\n### Building Locally\n\n```bash\ndocker build -t redash-mcp-server .\ndocker run -d \\\n  -p 3000:3000 \\\n  -e REDASH_KEY=\"your-api-key\" \\\n  redash-mcp-server\n```\n\n## Kubernetes Deployment\n\nComplete Kubernetes manifests are available in the `k8s/` directory. See [k8s/README.md](k8s/README.md) for detailed deployment instructions.\n\nQuick start:\n\n```bash\n# Create secret\nkubectl create secret generic redash-mcp-server-secrets \\\n  --from-literal=redash-key='YOUR_API_KEY'\n\n# Apply manifests\nkubectl apply -f k8s/configmap.yaml\nkubectl apply -f k8s/deployment.yaml\nkubectl apply -f k8s/service.yaml\n```\n\n## Development\n\n### Project Structure\n\n```\n.\n├── src/\n│   └── index.js          # Main server implementation\n├── k8s/                  # Kubernetes manifests\n├── .github/\n│   └── workflows/       # CI/CD workflows\n├── Dockerfile           # Docker image definition\n└── package.json         # Node.js dependencies\n```\n\n### Running Tests\n\n```bash\n# Start the server in HTTP mode\nnpm run start:http\n\n# In another terminal, test the health endpoint\ncurl http://localhost:3000/health\n```\n\n### Building Docker Image\n\n```bash\ndocker build -t ghcr.io/jonico/redash-mcp-server:latest .\n```\n\n## Architecture\n\nThe server implements the Model Context Protocol and supports:\n\n- **Session Management**: Each HTTP/SSE connection creates an isolated session with its own MCP server instance\n- **Query Execution**: Asynchronous query execution with polling for job completion\n- **Result Caching**: Support for using cached query results when available\n- **Error Handling**: Comprehensive error handling and reporting\n\n## License\n\nThis project is private and proprietary.\n\n## Contributing\n\nThis is a private repository. For issues or questions, please contact the repository owner.\n\n## Support\n\nFor deployment issues, see the [Kubernetes deployment guide](k8s/README.md).\n\nFor MCP protocol questions, refer to the [Model Context Protocol documentation](https://modelcontextprotocol.io).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonico%2Fredash-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonico%2Fredash-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonico%2Fredash-mcp-server/lists"}