Build your own Github MCP server — n8n Workflow

Medium complexity Trigger15 nodes🏷️ Project Management👁 2,284 viewsby Jimleuk

Overview

This n8n demonstrates how to build your own Github MCP server to personalise it to your organisation's repositories, issues and pull requests.

This n8n implementation, though not as fully featured as the official MCP server offered by Github, allows you to control precisely what access and/or functionality is granted to users which can make MCP use simpler and in some cases, more secure. The use-case in this template is to simply view and comment on issues within a specific repository but can b

Nodes used

GitHubHTTP RequestCall n8n Workflow Tool

Workflow Preview

1. Set up an MCP Server Trigger
Read more about the MCP Server Trigger
2. Build Simple Support Tools with Github Nod
Read more about the Github Node
Whilst it may be easier to just let the A
Always Authenticate Your Server!
Before going to production, it's always advised to enab
Try It Out!
This n8n demonstrates how to build your own Github MCP
This n8n implementation, though not a
tooltooltool
W
When Executed by Another…
O
Operation
G
Github MCP Server
Get Latest Issues
Add Issue Comment
S
Simplify Issues
A
Aggregate Results
Get Issue Comments
Get Comments
S
Simplify Comments
A
Aggregate Comments
Get Many Issues
Get Single Issue
Create Comment
G
Get Response
15 nodes13 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 15 nodes, connecting aggregate, executeworkflowtrigger, github.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (15)

GI

GitHub

github

#1
HT

HTTP Request

httpRequest

#2
CA

Call n8n Workflow Tool

n8n-nodes-langchain.toolWorkflow

#3

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded build-your-own-github-mcp-server file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Build your own Github MCP server", "nodes": [...], ...}

Integrations

aggregateexecuteworkflowtriggergithubhttprequestmcptriggersetswitchtoolworkflow

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes15
Complexitymedium
Triggertrigger
Views2,284

Created by

Jimleuk

Jimleuk

@jimleuk

Tags

aggregateexecuteworkflowtriggergithubhttprequestmcptriggersetswitchtoolworkflow

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →