Skip to main content

OpenPanel MCP Server

OpenPanel provides a local MCP server via the openpanel-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

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:
  1. Create a new client ID/secret pair in OpenPanel for that site
  2. Add the credentials to .env with a descriptive prefix
  3. Add a new entry in opencode.json under mcpServers