GitHub MCP Server
GitHub MCP 服务器
用于 GitHub 集成的模型上下文协议 (MCP) 服务器实现。该服务器提供通过 MCP 协议与 GitHub API 交互的工具。
特征
创建 GitHub 存储库
将内容推送到存储库
获取用户信息
正确的错误处理和 TypeScript 类型安全
自动安装脚本
Related MCP server: GitHub MCP Server Plus
先决条件
Node.js(v18 或更高版本)
npm(v8 或更高版本)
PowerShell(用于 Windows 安装)
具有 repo 范围的 GitHub 个人访问令牌
安装
视窗
克隆此存储库:
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git运行安装脚本:
.\install.ps1该脚本将:
创建必要的目录
安装依赖项
构建 TypeScript 代码
配置 MCP 设置
手动安装
创建 MCP 目录:
mkdir -p "$env:APPDATA\Roo-Code\MCP\github-mcp"将此存储库克隆到该目录中:
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git "$env:APPDATA\Roo-Code\MCP\github-mcp"安装依赖项:
cd "$env:APPDATA\Roo-Code\MCP\github-mcp"
npm install构建 TypeScript 代码:
npm run build将服务器配置添加到您的 MCP 设置文件中:
%APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
{
"mcpServers": {
"github": {
"command": "node",
"args": [
"%APPDATA%\Roo-Code\MCP\github-mcp\build\index.js"
],
"env": {
"GITHUB_TOKEN": "your-github-token-here"
},
"disabled": false,
"alwaysAllow": []
}
}
}可用工具
获取用户
获取 GitHub 用户信息。
{
"username": "octocat"
}创建仓库
创建一个新的 GitHub 存储库。
{
"repo_name": "my-new-repo",
"description": "A new repository",
"private": false
}推送到仓库
将内容推送到 GitHub 存储库。
{
"repo_name": "my-repo",
"file_path": "docs/README.md",
"content": "# My Project\nThis is a test file.",
"message": "Add README file"
}发展
克隆存储库
安装依赖项:
npm install修改
src/index.ts构建:
npm run build测试您的更改
贡献
分叉存储库
创建功能分支
提交你的更改
推送到分支
创建拉取请求
执照
麻省理工学院
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- -licenseNot gradedqualityAmaintenanceMCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.99,70489,748MIT
- AlicenseBqualityDmaintenanceMCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.18188MIT
- FlicenseNot gradedqualityDmaintenanceEnables managing GitHub repositories, files, and user information through MCP, with support for creating, updating, and deleting repository contents, as well as fetching user profiles.1
- AlicenseBqualityDmaintenanceMCP (Model Context Protocol) server for GitHub API integration. This server provides comprehensive tools for interacting with GitHub repositories, issues, pull requests, branches, and code search through a unified interface.157MIT
Related MCP Connectors
GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
GitHub Private MCP Pack — access private repos, org data via OAuth.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/oghenetejiriorukpegmail/github-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server