Before you connect
- Sign in to Chartbrew and open Settings → MCP.
- Copy the Server URL. Use this URL in your AI app. It can differ from the address you use to open Chartbrew.
- Use an AI app that supports remote MCP servers with Streamable HTTP.
localhost.
Connect your AI app
The examples below usehttps://api.example.com/mcp. Replace it with the Server URL from Chartbrew. You can also copy the commands for your installation from Settings → MCP.
Codex
Codex
Run this command in your terminal:Sign in to Chartbrew when the browser opens and approve access. Start a new Codex task to use the connection.
ChatGPT
ChatGPT
- Enable Developer mode in Settings → Security and login, if your workspace allows it.
- Open Plugins, select the plus button, and add Chartbrew with your server URL.
- Connect, sign in to Chartbrew, and approve access.
Claude Code
Claude Code
Run this command in your terminal:Open Claude Code, run
/mcp, and select Chartbrew to sign in and approve access.Claude
Claude
- Open Customize → Connectors and add a custom connector. Your organization may require an owner to add it first.
- Name it Chartbrew and enter your server URL.
- Connect, sign in to Chartbrew, and approve access.
Cursor
Cursor
Add the following entry to Open Cursor’s MCP settings and connect Chartbrew. Sign in and approve access. If your client version does not support sign-in, use an API key.
.cursor/mcp.json in your project. Keep any servers already in the file.Other clients
Other clients
- Add a remote MCP server with your Chartbrew server URL.
- Select Streamable HTTP as the transport and OAuth for authentication.
- If the client asks for a registration method, select dynamic registration (DCR).
- Sign in to Chartbrew and approve access.
Approve access
Check the app name and return address on the Chartbrew approval page. Select one team, review the requested permissions, and select Allow access. You can remove optional permissions before you continue.
Your Chartbrew role and dashboard access still apply. Source exploration and chart creation require a team owner or administrator. Other members can access only dashboards included when they approved access, and only while they retain access to them.
Each connection stays with the team you selected. Switching teams in Chartbrew does not change the connection. To use another team, connect again if your AI app supports multiple connections to the same server.
Try the connection
Ask your AI app:- “Find my website traffic dataset.”
- “Show me recent changes to my dashboards.”
- “Create a horizontal bar chart preview of the top 10 countries by visitors from my website traffic dataset.”
Connect with an API key
Use an API key if your client does not support OAuth sign-in.- Open Team settings → API keys in Chartbrew and create a key.
- Select the permissions and project access you need. Chart preview and dataset creation permissions are off by default.
- Copy the key and store it in your AI app’s secret storage.
- Add your Chartbrew server URL with Streamable HTTP transport.
- Set this HTTP header in your client:
Remove access
For OAuth connections, open Settings → MCP → Connected clients and remove access for the app. The list includes your connections across teams. Removing one connection does not affect your teammates’ connections or your other connections. For API key connections, delete the key in Team settings → API keys.Self-hosted setup
Use a Chartbrew version that includes the MCP server. In theserver directory, install dependencies and apply database migrations:
VITE_APP_API_HOST plus /mcp in all environments. The existing client-host setting supplies the Chartbrew sign-in page URL. Use HTTPS outside local development.
If you need a separate MCP hostname, set:
/mcp, /oauth/*, and /.well-known/* on that hostname to the same Chartbrew API process. Keep the normal API host available. Choose the public URL before users connect: changing it invalidates existing authorizations.
Connection problems
- The server cannot be reached: Copy the URL from Settings → MCP again. Check that the AI app can reach it. Cloud clients need a public HTTPS endpoint.
- Sign-in fails: Check that the client supports OAuth with dynamic registration. For a separate MCP hostname, check the proxy routes listed above. Reconnect if the authorization has expired or was removed.
- Data or actions are unavailable: Check the selected team, your dashboard access, and the approved permissions. Connect again to approve additional permissions.
- A source cannot be explored: Use a supported source and check that you are a team owner or administrator. With an API key, also check All projects access. For MCP sources, approve the required tools in Chartbrew.