Agents

MIT

MCP server

Give Claude, Cursor, or Codex read-only access to the same aggregates the dashboard shows.

@vector5/mcp is a stdio MCP server. Six tools, all reads, all aggregates. It never sees event rows and it cannot ingest.

Install

.mcp.json
{
  "mcpServers": {
    "vector5": {
      "command": "npx",
      "args": ["@vector5/mcp"],
      "env": {
        "V5_API_URL": "https://analytics.example.com",
        "V5_API_KEY": "v5_live_…",
        "V5_SITE_ID": "example.com"
      }
    }
  }
}

Cursor reads .mcp.json from the project root. Claude Desktop uses claude_desktop_config.json. Codex uses its MCP settings panel. Cursor setup.

Environment

VarRequiredNotes
V5_API_URLnoDefault http://localhost:8080
V5_API_KEYyes in prodBearer key from Settings
V5_SITE_IDyesSite domain or id the API expects

Tools

Each tool accepts days and actor. Details: Tools reference.

ToolUpstream
query_statsGET /api/sites/{id}/stats
top_pagesGET /api/sites/{id}/breakdown?field=page
sourcesGET /api/sites/{id}/breakdown?field=source
ai_trafficGET /api/sites/{id}/ai
goalsGET /api/sites/{id}/goals
insightsGET /api/sites/{id}/insights

Something off? Open an issue · Edit on GitHub