Prerequisites
This setup requires:
- Visual Studio Code installed
- GitHub Copilot subscription (Chat in IDE feature)
- n8n-MCP server deployed and accessible via HTTP
- AUTH_TOKEN for your n8n-MCP server
Installation
Create MCP Configuration
Create a file:
.vscode/mcp.json.vscode/mcp.json
The
inputs block ensures the token is requested interactively — no need to hardcode secrets.Replace https://n8n.your.production.url/mcp with your actual n8n-MCP server URL.Enable Thinking Models
GitHub Copilot does not provide access to “thinking models” for unpaid users. To improve results, choose one of these options:Option A: Sequential Thinking MCP Server (Recommended)Install the official Sequential Thinking MCP server referenced in the VS Code docs. This lightweight add-on enables step-by-step reasoning with any LLM.Option B: Enable Thinking Tool SettingNavigate to: VS Code Settings > GitHub > Copilot > Chat > Agent: Thinking Tool and enable it.
Using n8n-mcp in combination with a sequential thinking model generates more accurate outputs.
Add Project Instructions
Create a file:
.github/copilot-instructions.md with the following content:.github/copilot-instructions.md
To ensure the instructions are always included, enable this checkbox in your Copilot settings:VS Code Settings > GitHub > Copilot > Chat > Code Generation: Use Instruction Files
Verification
To verify your setup is working:Tips
- Use the
#n8n-mcpcontext in your prompts to explicitly reference the MCP server - Combine with
#sequentialthinkingfor better reasoning and planning - Always validate workflows before deployment
- Use the Agent mode for autonomous workflow building and file editing
Troubleshooting
MCP server not connecting
MCP server not connecting
- Verify your n8n-MCP server is running and accessible
- Check that the URL in
.vscode/mcp.jsonis correct - Ensure your AUTH_TOKEN is valid
- Restart VS Code to reload the MCP configuration
Tools not appearing
Tools not appearing
- Verify the MCP server is properly configured in settings
- Check GitHub Copilot subscription is active
- Ensure you’re using Copilot Chat (not just code completion)
Instructions not being followed
Instructions not being followed
- Verify the
.github/copilot-instructions.mdfile exists - Enable “Use Instruction Files” in Copilot settings
- Explicitly reference the instructions in your prompts