OpenPanel MCP Server
OpenPanel provides a local MCP server via theopenpanel-mcp-server npm package. It runs on your machine and lets AI agents query analytics data for specific sites.
Setup
1. Get per-site API credentials
Unlike the shared root client used by the radarboard API, MCP servers use per-site credentials. Follow the OpenPanel service setup to create client ID/secret pairs for each site you want to expose.2. Add to your environment
Add the per-site credentials to your root.env file:
.env
3. Configuration in opencode.json
One MCP server instance per site:opencode.json
Server details
| Property | Value |
|---|---|
| Type | Local (npm package, runs via npx) |
| Package | openpanel-mcp-server |
| Authentication | Client ID + Secret per site |
| Required env vars | OPENPANEL_*_CLIENT_ID, OPENPANEL_*_CLIENT_SECRET (per site) |
What agents can do
With this MCP server, an AI agent can:- Query visitor counts and trends for a specific site
- Check page view statistics
- Investigate traffic sources and referrers
- Monitor live visitor activity
Adding a new site
To add MCP access for another site tracked in OpenPanel:- Create a new client ID/secret pair in OpenPanel for that site
- Add the credentials to
.envwith a descriptive prefix - Add a new entry in
opencode.jsonundermcpServers