# n8n

Follow these steps to add Ahrefs MCP to n8n:
- Add a new node and search for "MCP client".
![](<../images/CleanShot 2026-02-27 at 15.48.58@2x.png>)
- Fill in the node details:
  - Server transport: HTTP Streamable
  - MCP Endpoint URL: `https://api.ahrefs.com/mcp/mcp`
  - Authentication: Bearer Auth
  - Credentials for Bearer Auth: Click "Create new credentials"
![](<../images/CleanShot 2026-02-27 at 15.51.04@2x.png>)
- Open the [API keys report](https://app.ahrefs.com/account/api-keys) in your Ahrefs account settings and generate and copy an MCP key.
![](../images/mcp3-2.jpg)
- Paste the key in the credentials settings in n8n.
![](<../images/CleanShot 2026-02-27 at 15.51.44@2x.png>)
- After saving the credentials, you will return to the node settings. Refresh the list of tools, select the tool you need, and proceed with configuring its fields. You can refer to the [Ahrefs API documentation](https://docs.ahrefs.com/docs/api/reference/introduction) for guidance.
![](<../images/CleanShot 2026-02-27 at 15.53.38@2x.png>)
