Back to MCP directory
publicPublicdnsLocal runtime

github-mcp-server-config

GitHub MCP服务器的配置与安装文档

article

README

🚀 GitHub MCP 服务器配置说明

本仓库详细记录了 2025 年 3 月 18 日 GitHub MCP 服务器的设置与配置全过程,为后续相关操作提供参考。

🚀 快速开始

操作步骤

  1. 创建 MCP 服务器目录并安装 @modelcontextprotocol/server-github 包。
  2. 使用 GitHub 个人访问令牌对 MCP 服务器进行配置。
  3. 通过仓库搜索测试服务器功能。
  4. 创建此仓库以记录配置流程。

补充说明

更新 npm 版本时使用了以下命令:

# 全局安装最新版本的 npm
npm install -g npm@latest
# 全局安装 n 工具
npm install -g n
# 使用 n 工具切换到稳定版本
n stable

参考资料:关于 npm 更新的 Gemini 对话

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client