Build your own Github MCP server — n8n 工作流

复杂度 触发器15 个节点🏷️ Project Management👁 2,284 次查看作者:Jimleuk

概览

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

使用的节点

GitHubHTTP RequestCall n8n Workflow Tool

工作流预览

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

工作原理

  1. 1

    触发器

    工作流由 触发器 触发器启动。

  2. 2

    处理

    数据流经 15 个节点, connecting aggregate, executeworkflowtrigger, github。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (15)

GI

GitHub

github

#1
HT

HTTP Request

httpRequest

#2
CA

Call n8n Workflow Tool

n8n-nodes-langchain.toolWorkflow

#3

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 build-your-own-github-mcp-server 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

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

集成

aggregateexecuteworkflowtriggergithubhttprequestmcptriggersetswitchtoolworkflow

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点15
复杂度medium
触发器trigger
查看次数2,284

创建者

Jimleuk

Jimleuk

@jimleuk

标签

aggregateexecuteworkflowtriggergithubhttprequestmcptriggersetswitchtoolworkflow

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →