chartbrew-mcp
Click on "Install 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., "@chartbrew-mcplist my datasets"
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.
Chartbrew MCP Server
TypeScript MCP server built on the official MCP SDK for documented Chartbrew API endpoints.
Showcase
Related MCP server: metabase-mcp
Prerequisites
Node.js and npm installed (used to install dependencies and build the server).
A Chartbrew API key — create one in your Chartbrew account (cloud or self-hosted). See How to create API keys in Chartbrew.
For a self-hosted Chartbrew instance, the API base URL of that instance (default
http://localhost:4019).An MCP-compatible client to host the server (e.g. Claude Code, Claude Desktop, Cursor, VS Code, Codex, GitHub Copilot, OpenCode, Kimi Code).
Scope
This server only implements operations documented in the official Chartbrew API reference and avoids undocumented behavior.
Implemented resources:
Teams: list, get
Connections: list, get, test, create, update, delete
Datasets: list, get, fetch data, create, update, delete
Data Requests: list, run
Dashboards (projects): list, get, create, update, delete
Charts: get, create, query, delete
Not implemented in this version:
Variable binding create/update endpoints
These can be added later if needed.
Authentication
Chartbrew API docs specify Bearer token authentication.
Required header used by this server:
Authorization: Bearer
Configuration Options
Variable | Description | Required |
| Chartbrew API key used for Bearer token authentication | Yes |
| API base URL. Use | No (default: |
| Request timeout in milliseconds to prevent hanging requests | No (default: |
| Tool exposure mode. Allowed values: | No (default: |
Tool mode behavior:
unrestricted: all implemented tools are available.
restricted: only data-retrieval/query tools are available (list/get/fetch/query/run/test). Create/update/delete tools are disabled.
You can provide these values in either of two ways (pick one):
.envfile in thismcpfolder — copy.env-templateto.envand fill in the values. The server auto-loads it on startup.The
envblock of your coding agent's MCP config — set the variables directly in theenvobject of the server entry (e.g..mcp.jsonfor Claude Code, or the equivalent MCP config for Codex, GitHub Copilot, OpenCode, Kimi Code, etc.). Use this when you don't want a local.envfile.
Install
Change directory to
mcp.Install dependencies:
npm installBuild:
npm run buildRun
npm startThe server uses stdio transport and is intended to be launched by an MCP client host.
Standalone binary (no Node.js required)
Prefer not to install Node.js? Download a prebuilt binary from the Releases page and run it directly. Binaries are provided for:
OS | x64 (Intel/AMD) | arm64 (Apple Silicon / ARM) |
Windows |
|
|
Linux |
|
|
macOS |
|
|
Setup:
Releases include both raw binaries and compressed archives (.zip for Windows, .tar.gz for Linux/macOS) — grab the archive for a smaller download, then extract it.
Windows: download
chartbrew-mcp-windows-x64.zip(orarm64), extract, run the.exe.macOS / Linux: download e.g.
chartbrew-mcp-darwin-arm64.tar.gz, extract, then make it executable once:chmod +x chartbrew-mcp-darwin-arm64macOS Gatekeeper: if macOS blocks the unsigned binary, remove the quarantine attribute:
xattr -d com.apple.quarantine chartbrew-mcp-darwin-arm64
You do not need a .env file — set configuration through your MCP client's env block (or the OS environment). Example for Claude Desktop / Claude Code (.mcp.json or claude_desktop_config.json):
{
"mcpServers": {
"chartbrew": {
"command": "/absolute/path/to/chartbrew-mcp-darwin-arm64",
"env": {
"CHARTBREW_API_KEY": "your-api-key",
"CHARTBREW_API_BASE_URL": "https://api.chartbrew.com",
"CHARTBREW_TOOL_MODE": "restricted"
}
}
}
}Build the binaries yourself
From a checkout, install Bun (the compiler), then:
npm install
npm run build:bin # writes binaries to dist-bin/Full setup, Bun install commands, and the Windows cross-compile caveat are in CONTRIBUTING.md.
Add to an MCP client
After npm install and npm run build, register the server with your MCP host. The server runs over stdio via node dist/index.js. Replace <ABSOLUTE_PATH_TO_MCP_DIR> with the absolute path to this mcp directory and set your API key.
Claude Code CLI (claude mcp add)
If you use Claude Code, you can register the server directly from the terminal instead of editing a config file:
claude mcp add chartbrew \
-e CHARTBREW_API_KEY=your-api-key \
-e CHARTBREW_API_BASE_URL=https://api.chartbrew.com \
-e CHARTBREW_TOOL_MODE=restricted \
-- node <ABSOLUTE_PATH_TO_MCP_DIR>/dist/index.jsUse
http://localhost:4019forCHARTBREW_API_BASE_URLon a self-hosted instance (change the port if yours differs).Add
-s user(or-s project) to control the scope the server is registered in.Verify with
claude mcp list; remove withclaude mcp remove chartbrew.
Claude Desktop / Claude Code (claude_desktop_config.json or .mcp.json)
{
"mcpServers": {
"chartbrew": {
"command": "node",
"args": ["<ABSOLUTE_PATH_TO_MCP_DIR>/dist/index.js"],
"env": {
"CHARTBREW_API_KEY": "your-api-key",
"CHARTBREW_API_BASE_URL": "https://api.chartbrew.com",
"CHARTBREW_TOOL_MODE": "unrestricted"
}
}
}
}Cursor / VS Code (settings UI → MCP servers)
{
"mcpServers": {
"chartbrew": {
"command": "node",
"args": ["<ABSOLUTE_PATH_TO_MCP_DIR>/dist/index.js"],
"env": {
"CHARTBREW_API_KEY": "your-api-key"
}
}
}
}API base URL: use
https://api.chartbrew.comfor an official Chartbrew cloud account. For a self-hosted instance use your local URL — defaulthttp://localhost:4019(change the port if yours differs).
Notes:
CHARTBREW_API_KEYis required. See How to create API keys in Chartbrew.The MCP host launches the server; it does not need to be run manually.
The default tool mode is
restricted(read/query only). SetCHARTBREW_TOOL_MODE: "unrestricted"to also enable create/update/delete tools.Alternatively, set the env vars in a
.envfile in themcpdirectory and omit theenvblock.
Available Tools
Tool | Category | Description |
| Teams | List teams available to the authenticated API key |
| Teams | Get details for one team by |
| Teams | Create a new team; owner is derived from the authenticated API key |
| Teams | Update an existing team by |
| Connections | List all supported connection providers |
| Connections | Get the schema structure for a specific connection |
| Connections | List all connections in a team |
| Connections | Get one connection by |
| Connections | Run the Chartbrew connection test for a team connection |
| Connections | Create a new connection in a team |
| Connections | Update an existing connection |
| Connections | Upload SSL CA/cert/key files (base64) for a connection via multipart — for PostgreSQL/MySQL SSL/TLS auth |
| Connections | Delete a connection; optionally remove linked datasets |
| Datasets | List datasets for a team |
| Datasets | Get one dataset by |
| Datasets | Run a dataset request and return the dataset data |
| Datasets | Create a new dataset in a team |
| Datasets | Create a dataset and all its data requests in a single call |
| Datasets | Update an existing dataset by |
| Datasets | Delete a dataset |
| Data Requests | List data requests for a dataset |
| Data Requests | Execute one dataset data request |
| Dashboards | List dashboards for a team |
| Dashboards | Get dashboard details by |
| Dashboards | Create a new dashboard (Project); private by default |
| Dashboards | Update an existing dashboard by |
| Dashboards | Delete a dashboard by |
| Dashboards | Create a share policy for secure sharing via signed URLs |
| Dashboards | Update a dashboard share policy (params, |
| Dashboards | Delete a share policy for a dashboard |
| Dashboards | Generate a signed JWT for secure dashboard embedding |
| Charts | Get a chart by |
| Charts | Create a chart inside a dashboard project |
| Charts | Create a chart and its chart dataset configurations in a single call |
| Charts | Attach a dataset to a chart via |
| Charts | Update an existing |
| Charts | Delete a |
| Charts | Run the chart query endpoint and return result data |
| Charts | Delete a chart by |
| Charts | Create a share policy for a chart for secure embedding |
| Charts | Update a chart share policy (params, |
| Charts | Delete a share policy for a chart |
| Charts | Generate a signed JWT for secure chart embedding |
| Charts | Retrieve a chart for embedding via public access or SharePolicy token |
Known documentation limitations reflected in implementation
ID types are inconsistent in docs (number vs string), so tool inputs accept strings.
Some create/update payload required fields are not consistently documented, so payload is typed as flexible object.
Dataset fetch filters query-object encoding is undocumented; this server sends object values as JSON strings.
Error response schemas vary by endpoint; parser handles both error and message fields when available.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dhavanikgithub/chartbrew-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server