MCP Server
Query PredictHQ's APIs through any MCP-compatible AI assistant using natural language.
The PredictHQ MCP server connects AI assistants and agent-based systems directly to PredictHQ's APIs using the Model Context Protocol (MCP) - an open standard for giving AI systems access to external tools and data at inference time.
Once connected, your AI assistant can search events, retrieve demand intelligence, and access PredictHQ's full API surface through natural language - without leaving your AI client or writing API calls manually.
PredictHQ MCP is currently in beta - functionality may change as we continue to develop and refine it.
Server Details
MCP Server URL
https://mcp.predicthq.com/v1/mcp
Transport
Streamable HTTP
Authentication
OAuth or Bearer token (API key)
Authentication
The MCP server supports two authentication methods.
OAuth - when you connect using a supported client, you will be redirected to PredictHQ to authorise access. No credentials are stored in the client configuration. Best suited for interactive use and multi-user environments.
Bearer token - pass your PredictHQ API key in the Authorization: Bearer $API_TOKEN header. Well-suited for agent and automation workflows where interactive login is not practical, or for clients that do not support OAuth. You can create an API key in the PredictHQ WebApp.
Available Tools
The MCP server exposes tools across the full PredictHQ API surface:
Events - search and count events
Broadcasts - search and count live TV broadcasts
Features - retrieve aggregated ML-ready demand intelligence features
Saved Locations - create and manage locations, retrieve insight events, opening hours, and closures
Beam - create and manage analyses and analysis groups, upload demand data, and retrieve feature importance and correlation results
Forecasts - create and manage forecast models, upload demand data, train models, and retrieve forecasts with explainability
Predicted Impact Area - get predicted impact areas by location and industry
Places & Geocoding - search places, look up place hierarchies, and geocode addresses
Access & Subscription
Access to the MCP server is subject to your PredictHQ subscription. The MCP also enforces the same data access controls as the REST API - if your plan covers a specific set of locations or event categories, those same limits apply when using MCP.
If you don't yet have access to the MCP server, contact your PredictHQ account manager.
Connect Your AI Client
Claude (claude.ai)
Claude has native MCP support via Connectors. This is the lowest-friction setup - no configuration files required.
Go to Settings > Connectors in Claude.
Click Add connector and enter the server URL:
https://mcp.predicthq.com/v1/mcpFollow the OAuth flow to authenticate with your PredictHQ account.
Once connected, PredictHQ tools are available in any Claude conversation.
For full instructions, see Claude's connector documentation.
Claude Code
Claude Code supports MCP via the CLI.
Run the following command to add the PredictHQ MCP server:
Then authenticate by running /mcp inside a Claude Code session and following the OAuth flow.
To use a Bearer token instead:
For full instructions, see Claude Code MCP documentation.
ChatGPT
ChatGPT supports remote MCP servers via Connectors. There are two ways to set this up depending on your plan.
Individual setup
Enable Developer Mode under Settings > Advanced Settings, then add a connector under Settings > Connectors > Create.
Workspace-wide setup
Workspace admins enable Developer Mode via Workspace Settings > Permissions & Roles > Connected Data, then create and publish connectors for the whole organisation from Workspace Settings > Connectors. Once published, the connector is available to all users in the workspace without any individual setup.
Adding the PredictHQ connector:
Go to Connectors > Create (from Settings or Workspace Settings depending on your plan).
Enter a name (e.g.
PredictHQ) and optionally a description.Enter the MCP Server URL:
https://mcp.predicthq.com/v1/mcpSelect your authentication method and click Create:
OAuth - follow the login flow to authenticate with your PredictHQ account.
Access token / API key - select Bearer as the scheme and enter your PredictHQ API key.
To use it in a conversation:
Click + in the chat field, then More, and select PredictHQ.
Note: ChatGPT's MCP support is evolving and the exact steps may vary depending on your plan and workspace configuration. If the steps above don't match what you see, refer to OpenAI's connector documentation for the latest instructions.
Other Clients
The PredictHQ MCP server works with any MCP-compatible client that supports Streamable HTTP transport, including Cursor, Windsurf, VS Code (GitHub Copilot), Zed, Postman, and others.
Use the following details when configuring your client:
Server URL:
https://mcp.predicthq.com/v1/mcpTransport: Streamable HTTP
Authentication: OAuth, or Bearer token via
Authorization: Bearer $API_TOKENheader
Refer to your client's documentation for specific configuration steps.
Next Steps
Using PredictHQ with AI Assistants - understand how PredictHQ fits into AI and agent workflows
PredictHQ MCP in Agentic Workflows - use the MCP in autonomous and multi-agent workflows, where agents call PredictHQ for real-world context and explainability at decision time
API Quickstart - create an API key for Bearer token authentication
Last updated
Was this helpful?