GitHub MCP Server
GitHub MCP 服务器
概述
GitHub MCP Server 是一个基于 API 的工具,它使用MCP(模块化命令处理器)框架与 GitHub 交互。它提供各种功能,包括使用 GitHub 的 REST API 获取用户详细信息、仓库信息和经过身份验证的用户数据。
该项目使用 Python 构建,并利用httpx进行异步 API 调用。它还使用dotenv来安全处理 GitHub 身份验证令牌。
Related MCP server: UIThub MCP Server
特征
通过用户名获取 GitHub 用户信息。
检索 GitHub 存储库的详细信息。
使用 GitHub 个人访问令牌获取经过身份验证的用户详细信息。
利用
FastMCP进行模块化命令处理。
项目结构
D:/MCP_Project/
|----.env
│----.gitignore
│----claude_desktop_config.json (Create this file in C:\Users\your_username\AppData\Roaming\Claude\)
│----main.py
│----pyproject.toml
│----README.md
│----requirements.txtmain.py:GitHub MCP Server 的核心逻辑。.env:存储环境变量(例如,GitHub Token)。claude_desktop_config.json:运行 MCP 服务器的配置。requirements.txt:列出所需的依赖项。explanation_video.mp4:解释该项目的视频。
设置说明
先决条件
Python >=3.10
GitHub 个人访问令牌(用于经过身份验证的请求)
conda或venv用于虚拟环境管理
设置和使用
克隆存储库
git clone https://github.com/DivyanshKushwaha/GitHub-MCP-Server-Claude.git cd GitHub-MCP-Server-Claude创建 Python 环境
python -m venv venv
source venv/bin/activate 安装依赖项
pip install -r requirements.txt设置环境变量(创建.env 文件)
GITHUB_TOKEN=your_personal_access_token设置 claude_desktop_config.json
{
"mcpServers": {
"MCP_Server": {
"command": "my_env/Scripts/uv",
"args": [
"run",
"D:/MCP_Project/main.py"
]
}
}
}命令键指定位于 conda 环境中的 uv 脚本的路径。该脚本用于运行服务器。
args 键为 uv 脚本提供了附加参数:
“run”:表示运行服务器的操作。
my_env :python 环境 'my_env'
“D:/MCP_Project/main.py”:指定 main.py 脚本的路径,其中包含 MCP 服务器的实现。
启动 Claude 桌面应用程序
打开 Claude 桌面应用程序。
它将使用 claude_desktop_config.json 文件中配置的 MCP 服务器来获取和处理数据。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that enables Claude and other compatible LLMs to interact with the GitHub API, supporting features like creating issues, retrieving repository information, listing issues, and searching repositories.4
- AlicenseNot gradedqualityDmaintenanceModel Context Protocol server that enables Claude to retrieve and analyze code from GitHub repositories through the uithub API.2521MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that provides comprehensive GitHub integration for Claude Desktop, allowing users to manage repositories, issues, and pull requests. It supports file operations, branch management, and repository searches through natural language commands.452
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that connects Claude AI directly to the GitHub API, enabling natural language queries for live repository data, issues, PRs, and contributions.1
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
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/DivyanshKushwaha/GitHub-MCP-Server-Claude'
If you have feedback or need assistance with the MCP directory API, please join our Discord server