With the MCP server you connect Claude directly to pgday analytics and lead records. Your AI can query metrics — leads, points, discovery rate, channel mix, funnel, leaderboard — list individual leads, and export CRM-ready rows. Access is available on the Pro plan for all members (admins, game masters, and users). Guest accounts cannot connect.
What is MCP?
MCP (Model Context Protocol) is an open standard that lets AI clients use secure, read-only tools. pgday provides an MCP server with read-only analytics and optional lead record access.
Connect Claude (recommended)
- Open Analytics and scroll to Connect Claude (admins also find it under Settings → Integrations).
- Copy the MCP endpoint.
- In Claude Desktop (or claude.ai): Customize → Connectors → Add custom connector.
- Paste only the URL (no API key required) and click Add or Connect.
- Sign in to pgday and approve access on the consent screen (analytics + lead records including contact details).
Claude then runs the OAuth flow automatically — you do not need to enter a client ID or secrets.
Data scope
- Admins and game masters see organization-wide analytics and leads (same as in the app).
- Users see only their own data and team data — the same scope as on the Analytics and Leads pages.
- Guests cannot authorize MCP access.
Available tools
Analytics
- list_metrics — lists all available metrics.
- query_metric — query one metric (with optional event/team/time range). Use point_attribution and sort by
discovery_countfor per-person discovery rankings; rows include display_name. - get_recap — compact overview plus people (point attribution with names).
Lead records (requires leads:read — granted on reconnect)
- list_leads — paginated lead list (company, contact, outcome, owner name). Max 50 rows per call.
- get_lead — single lead with notes and contact fields.
- export_leads — up to 50 leads in HubSpot, Salesforce, or pgday CSV column layout (server-side mapping, not LLM guessing).
CRM workflow (without native HubSpot integration)
- Ask Claude to analyze leads for an event (e.g. top discovery meetings).
- Call export_leads with
format: hubspot(orsalesforce/csv). - Use the returned CSV in chat or import it into your CRM — or use your own HubSpot MCP for upserts if you have write access there.
pgday does not push leads into HubSpot automatically; you stay in control of imports.
Disconnect
In Analytics → Connect Claude (or Settings for admins) you can revoke your Claude connection. Admins can revoke all active sessions for the organization.
Security & privacy
- Access is bound to the user who authorized and is strictly read-only.
- Lead tools may return contact names, email, phone, and notes — only within the same visibility rules as the pgday app.
- Normal users cannot query other people's private leads beyond their team visibility.
- Export rows include
pgday_lead_idandsource: pgdayfor CRM deduplication. - Connections can be revoked at any time.
Manual test checklist
- Discovery ranking — Ask: “Who booked the most discovery meetings this event?” →
query_metricwithpoint_attribution, verify display_name (not UUID fragments). - Lead list —
list_leadswithoutcome: discoveryand event scope; verify pagination vianext_cursor. - Export —
export_leadswithformat: hubspot; verify columns match the in-app HubSpot export wizard.