Connect n8n to Adflitz
In n8n the MCP Client Tool node connects an AI Agent workflow to Adflitz. The key lives in an n8n credential, never in a prompt.
Before you start
- Sign-in method: API key. The server address is
https://adflitz.com/api/mcp. - For an API key create one under Settings, then API keys, and allow agents on the project under Settings, then Agents. The key is shown once, so put it straight into an environment variable.
- Pick the lowest permission that does the job. Access levels explains read, draft and publish.
Steps
- Create an API key in Adflitz (Settings, API keys) and allow agents on the project (Settings, Agents).
- In n8n create a Bearer Auth credential and paste the key.
- Add an MCP Client Tool node to your AI Agent workflow with the endpoint and transport below, and pick the credential.
- Run the agent with the check prompt as its message.
Copy and paste
Add an MCP Client Tool node to your AI Agent workflow and create a Bearer Auth credential that holds the key. The key lives in the credential, never in a prompt.
Endpoint: https://adflitz.com/api/mcp Server transport: HTTP Streamable Authentication: Bearer Auth Bearer token: apk_YOUR_KEY
Check that it worked
Open a new conversation in n8n and paste this prompt. It only reads, so it is safe to run on a live account.
Check prompt
Use Adflitz to give me the workspace overview. List my projects, which ad platforms are connected and how many drafts are waiting for approval. Do not change anything.
A good answer names your workspace and plan, lists your projects with the permission each one grants, shows the connected platforms and tells you how many drafts are waiting. If the assistant says it cannot find an Adflitz tool, jump to troubleshooting below.
Troubleshooting
- The node connects but lists no tools: the endpoint has to be exactly the one above and the transport HTTP Streamable (not SSE). Re-save the credential and run again.
- Auth error: the Bearer token is the full key starting with apk_, nothing else around it.
- The tools list is empty or calls say forbidden: open Settings → Agents and allow agents on the project, and give the key at least the permission the tool needs (read, draft or publish).
- The overview works but lists no ad accounts: connect them first, see Connect ad accounts.
What to ask next
- How did my ads do over the last 14 days? Group it by campaign and point out what needs attention.
- Draft a Search campaign for our two best services and file it as a draft for my approval.
- Which campaigns spent without results this week? Suggest what to pause and give me the reason for each.
- Save the three most useful competitor ads for this project to my swipe file.
Changes you ask for become drafts that you review first. Read Drafts and approvals to see how a draft is checked and approved.
Other clients
ChatGPTClaude.aiClaude CodeCursorCodexGemini CLIPerplexityGrok BotHermes AgentOpenClawAny other MCP client
Questions about connecting your AI or your ad accounts? Write to contact@adflitz.com or open the support page.