> ## Documentation Index
> Fetch the complete documentation index at: https://www.klavis.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# n8n

> Connect Strata with n8n in minutes and unlock powerful workflow automation

![n8n](https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/n8n.png?fit=max\&auto=format\&n=P7T0h0Z2FSiCeN6f\&q=85\&s=230ab071659f0aa41a6cfa697b478fa9)

## Quick Setup Guide

**1. Authorize MCP Servers to Use with Strata**

Navigate to the [Klavis home page](https://www.klavis.ai/home) and click **"MCP Server"** in the left sidebar. You will see a list of MCP servers available in Klavis.

![Klavis home page](https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step1.png?fit=max\&auto=format\&n=P7T0h0Z2FSiCeN6f\&q=85\&s=23108ce3b7f0001cc0052e32946160a5)

Click the **"Authorize"** button next to your chosen server. Once server is authorized, you will see **Green Checkmark** status.

![Authorize MCP Servers](https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step2.png?fit=max\&auto=format\&n=P7T0h0Z2FSiCeN6f\&q=85\&s=92688307f399d9ea81022acc6daec83a)

> [!TIP]
>
> You can authorize one or more servers to use with Strata

**2. Get Strata Server URL**

![Klavis Dashboard consisting MCP Servers](https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step3.png?fit=max\&auto=format\&n=P7T0h0Z2FSiCeN6f\&q=85\&s=83495f6f5abf474832f115ace894651c)

From Klavis Dashboard, click **"Add to Other Clients"** button to get your Strata Server URL.

1. Navigate to **n8n**
2. MCP URL with custom auth headers enabled: `https://strata.klavis.ai/mcp/` (Copy it)
3. Click on **"Generate Token"** to get **Bearer Token** (Copy token & keep it secret!)

![Copy Strata Server URL](https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step4.png?fit=max\&auto=format\&n=tuOXkSqjJP19kHh_\&q=85\&s=ddf030182d6263b32303545884685e22)

> [accordion] 🔐 OAuth Services (Most Common)
>
> * Automatically redirected to OAuth authorization
> * Sign in to your account (GitHub, Google, Slack, etc.)
> * Grant necessary permissions
> * Redirected back to Klavis automatically

> [accordion] 🔑 API Key Services
>
> * Prompted to enter an API key
> * Follow service-specific instructions to generate key
> * Paste key in the provided field
> * Click **"Save"** to continue

## Build AI Workflow using Strata

**1. Launch Your First n8n Workflow**

Begin your automation by creating a **New Workflow** in your n8n personal workspace.

![n8n workflow creation](https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step5.png?fit=max\&auto=format\&n=P7T0h0Z2FSiCeN6f\&q=85\&s=1ed924aa8f645b955c7b7ad5cbf3f450)

**2. Set Up Your Trigger Node**

![First Node in n8n](https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step6.png?fit=max\&auto=format\&n=P7T0h0Z2FSiCeN6f\&q=85\&s=8cbd4f053fa13d325a61daf59d962b54)

Click the **Add First Step ('+' icon)** and select **Trigger Manually** to kickstart your workflow and you should see your first node being created.

**3. Integrate Your AI Agent**

![Adding AI Agent Node in n8n](https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step7.png?fit=max\&auto=format\&n=P7T0h0Z2FSiCeN6f\&q=85\&s=f43986fe04bd9a34115cb80cd96204f6)

1. Click **"+ (What happens next?)"**
2. Navigate to **AI** → **AI Agents** from the menu
3. Configure Your AI Agent:

* **Source for Prompt**: choose "Connected Chat Trigger Node"
* **Prompt**: `{{ $json.chatInput }}` (default setting)

4. Click **Back to Canvas** to save the agent

You should see **"When Chat Message Received"** and **"AI Agent"** nodes appear on the workflow diagram.

![Next Nodes appearing in n8n workflow](https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step8.png?fit=max\&auto=format\&n=P7T0h0Z2FSiCeN6f\&q=85\&s=0dde339de86999b8ef65c971dce220cc)

**4. Add Chat Model to your AI Agent**

![Including Chat Model](https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step9.png?fit=max\&auto=format\&n=P7T0h0Z2FSiCeN6f\&q=85\&s=4764905527cfd12c69467e7e99442d3e)

1. Click **"+ (Chat Model)"** -> **Anthropic Chat Model** (or your preferred model)
2. Connect Chat Model to **n8n** using API Key
3. Select **Model**: Claude Sonnet 4.5 (for example)
4. Click **Back to Canvas** to lock in your chat model configuration

Your **Chat Model** node now elegantly connects to your **AI Agent** node.

![n8n workflow now includes Chat Model](https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step10.png?fit=max\&auto=format\&n=P7T0h0Z2FSiCeN6f\&q=85\&s=3d280df40360661598e6075815a80dd1)

**5. Connect Strata Server to your AI Agent**

![MCP Client in n8n](https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step11.png?fit=max\&auto=format\&n=tuOXkSqjJP19kHh_\&q=85\&s=e04a74b994f5aab6a52d66fafeb0b485)

1. Click **"+ (Tool)"** -> **"MCP Client Tool"**
2. Configure Your MCP Client:

* Endpoint: Paste `https://strata.klavis.ai/mcp/`
* Server Transport: **HTTP Streamable**
* Authentication: **Bearer Auth**
* Credentials for Bearer Auth: Paste **Bearer Token** that you copied earlier
* Tools to Include: **All** (highly recommended for maximum capabilities)

3. Click **Back to Canvas** to save your MCP Client

**6. Connect Bearer Auth Account to n8n**

![Bearer Auth connected to n8n workflow](https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step12.png?fit=max\&auto=format\&n=tuOXkSqjJP19kHh_\&q=85\&s=8128667f7669e9d947c7b2f7c388ef9a)

To connect your bearer account to n8n, simply paste **"Bearer Token"** that you copied from Klavis Dashboard.

1. Navigate to **Connection** menu
2. Bearer Token: Paste your **"Bearer Auth Token"**
3. Allowed HTTP Request Domains: **All** (default settings)

Now, AI workflow diagram has been completed and should look similar to screenshot below.

![Strata connected to n8n workflow](https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step13.png?fit=max\&auto=format\&n=tuOXkSqjJP19kHh_\&q=85\&s=e13356efbb0f5817a6f6aaa85bf019c6)

**7. Start Using Strata Server in n8n workflow**

Ready to test your workflow? Launch the chat interface in n8n by pressing **'C'** on your keyboard.

![Using Chat in n8n](https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step14.png?fit=max\&auto=format\&n=tuOXkSqjJP19kHh_\&q=85\&s=8c19d6e59a38a8f3ca54cc74bc3cc83e)

```text GitHub theme={null}
"Create a new issue titled 'Add dark mode' with priority label"
```

```text Slack theme={null}
"Send a message to #general: 'Standup meeting in 5 minutes!'"
```

```text Gmail theme={null}
"Send email to john@company.com about project update"
```

```text Notion theme={null}
"Create a new page called 'Meeting Notes' with today's date"
```

Once your chat executes successfully, celebrate as **Green Checkmarks** appear across all nodes—including your Model and MCP Client!

![Final n8n workflow after executing the chat](https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step15.png?fit=max\&auto=format\&n=tuOXkSqjJP19kHh_\&q=85\&s=54230f5f86eb0112f7108874b93c7a26)

**8. Happy Building! 🎉**

You're all set! Your **Strata** MCP server is now integrated with n8n.

## Troubleshooting

> [accordion] 🔧 Tools Not Appearing
>
> * Double-check your Server URL for typos
> * Ensure stable internet connection
> * Verify authentication in Klavis dashboard
> * Check n8n logs for error messages
> * Try completely restarting n8n

> [accordion] 🔐 Authentication Issues
>
> * Re-authenticate in the Klavis dashboard
> * Check if your OAuth tokens have expired
> * Verify API key permissions (for API key services)
> * Ensure you've granted all necessary permissions

> [accordion] ⚡ Performance Issues
>
> * Limit the number of active MCP servers (or Use Strata)
> * Check your internet connection speed
> * Restart n8n periodically
> * Contact support if issues persist

## Need Help?

> [card] Community
>
> Join our Discord for community support and discussions

> [card] Support
>
> Contact our technical support team for assistance

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.