Integrate the Matomo MCP Server with ChatGPT Web
This guide explains how to connect Matomo to ChatGPT on the web. To use other OpenAI tools, see the guide on integrating with the OpenAI desktop app and Codex CLI.
Before you start
- Ensure the Matomo MCP server is enabled.
- For Matomo On-Premise:
- install and activate the MCP server plugin.
- install and activate the OAuth 2.0 plugin.
- To connect Matomo to ChatGPT, you will need the following to configure the integration:
- Access to a ChatGPT account with developer mode enabled to create a custom MCP server plugin.
- Create an OAuth 2.0 client during setup.
- Copy your Matomo MCP endpoint URL found in Administration
> System > General settings > MCP Server.
Create a custom MCP server
- Open ChatGPT in your browser and go to Plugins (https://chatgpt.com/plugins).
- Click Add and select Add custom MCP server.
- Name the plugin, for example Matomo MCP and an optional Description.
- For the Connection, select Server URL and paste your MCP Endpoint URL:
https://mysite.com/index.php?module=API&method=McpServer.mcp&format=mcp - Select the Authentication as OAuth.
- Click Advanced OAuth settings to provide authentication details.
- Use the default Registration method: User-Defined OAuth Client.
- Copy the Callback URL provided by ChatGPT.
- During this process, you will need to setup the OAuth 2.0 client in Matomo while keeping your ChatGPT MCP setup window open.
- Open a new browser tab and go to your Matomo instance to create the OAuth client and provide the ChatGPT Callback URL in the Redirect URIs.
- Click Save and the Client ID will be displayed. If the client is created as a Confidential type, it will display the Client secret.
- Copy the client credentials and return to the ChatGPT browser tab.
- In ChatGPT Web, paste the client credentials in the OAuth client ID field and the OAuth client secret (for Confidential OAuth clients).
- The Token endpoint auth method will default to none if no client secret is required.
- The Default scopes are applied based on the OAuth client settings in Matomo.
- Review the warning and if you choose to continue, select the consent box.
- Click Create as a plugin.
- Once created, you will be prompted to open the new plugin.
- Click Allow to continue.
- The Matomo MCP will now be visible in your ChatGPT workspace > Plugins. You can select it within ChatGPT when starting a conversation.
Enable the Matomo MCP for your organisation
You can optionally make the MCP available to others in your organisation once it has been created.
Open Plugins and next to the custom MCP server, click the ellipsis (three dots) menu (⋯) and select Share.
Refresh tools list
When using the Matomo MCP integration in ChatGPT, it’s important to be aware of how tool updates are handled in ChatGPT. If Matomo exposes new MCP tools (capabilities), these may not automatically appear in your existing configuration. You can manually trigger a refresh of the tool list by using the Refresh tools option.
Open Plugins > View details > Manage app and click Refresh tools.
ChatGPT will use the MCP connection to query your Matomo data and respond with insights based on your analytics. Learn more about ways to use the MCP Server.
To integrate Matomo MCP with other AI tools, view the available MCP guides.