LearnMCP Setup

MCP Setup

Connect ChatGPT, Claude, or another AI assistant to Hardal MCP and check which tenants and sources it can access.

Connect your AI assistant to Hardal to query reports about traffic, campaigns, events, commerce, funnels, and AI agent visits. You need a Hardal account with access to the tenants you want to analyze.

Connect to Hardal

Install from the official directories

Add Hardal in ChatGPT or Claude if the listing is available. Sign in to Hardal when prompted and select the tenants you want to share.

Connect with an AI assistant

Copy this prompt and paste it into your assistant.

Help me connect to Hardal MCP using this guide.
https://docs.usehardal.com/setup/mcp.md

Connect manually with MCP

  1. Add a custom remote MCP connection named Hardal. Use https://mcp.hardal.ai exactly, without a /mcp path.
  2. Sign in to Hardal through the client's OAuth flow and select the tenants you want to share. Keep passwords, API keys, and tokens out of chat.
  3. Enable Hardal in your conversation. If custom connections are unavailable, ask your AI workspace admin to enable or add the connection.

For client-specific controls, follow the ChatGPT setup instructions or Claude setup instructions.

Ask your first question

After the client confirms the connection, ask your assistant to list the Hardal tenants and sources you can access. The assistant uses get_context for this check. Pick a tenant and source before running a report.

Show sessions and page views for the selected source over the last seven days in Europe/Istanbul. Include the tenant, source, dates, and filters you used.

Calendar reports default to the last seven days in Europe/Istanbul and accept up to 90 days per request. Omitting a source includes all sources in the selected tenant. For campaign reports, match the Dashboard's attribution model, lookback window, traffic scope, and conversion event where applicable.

What each answer includes

Each report result includes the context behind its numbers: the tenant and source, the resolved date range and comparison period, the timezone and whether it came from your request or the default, the applied filters, and the currency. It also shows how many rows were returned, whether more rows are available, and which columns contain missing values, so a missing value is not read as zero. Page paths appear without query strings or fragments.

If a request fails, the result returns an error code with a short message and says whether retrying can help and, when known, how long to wait.

Access and privacy

Hardal MCP gives the connected assistant read-only access to aggregate reports and workspace information within your Hardal permissions and approved tenants. Report results are shared with the connected assistant. To revoke access, open Manage → Connections → Connected Apps in Hardal and disconnect the app.

Troubleshooting

  • Connection unavailable or tenant missing: check the MCP URL, your client's workspace settings, and the Hardal account and tenants you authorized.
  • Report empty or different from the Dashboard: check that data exists and match the tenant, source, dates, timezone, and filters.
  • Request timed out or hit a limit: retry after the time shown. Use a shorter date range or request fewer rows.

If the issue persists, contact support@usehardal.com with the client name and error message.