MCP.so
登录

GitHub MCP Server

@marvelouscypherman

关于 GitHub MCP Server

MCP server for using the GitHub API

基本信息

分类

版本控制

许可证

MIT license

运行时

node

传输方式

stdio

发布者

marvelouscypherman

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is GitHub MCP Server?

GitHub MCP Server is a Model Context Protocol (MCP) server that provides a standardized interface for AI models to interact with the GitHub API. It enables repository operations, file management, issue and pull request handling, code search, branch management, and commit history access.

How to use GitHub MCP Server?

Clone the repository, install dependencies with npm install, configure a GitHub Personal Access Token via config.json or the GITHUB_TOKEN environment variable, then build (npm run build) and start (npm start) the server (default port 3000). Use the endpoints POST /list-tools, POST /call-tool, GET /health, and GET /events to interact with the server.

Key features of GitHub MCP Server

  • Full GitHub API integration
  • Repository operations: create, fork, search
  • File operations: create, update, read
  • Issue and pull request management
  • Code search capabilities
  • Branch management and commit history access
  • Real-time updates via Server-Sent Events

Use cases of GitHub MCP Server

  • Automating repository creation and forking workflows
  • Managing issues and pull requests through an AI assistant
  • Searching code and accessing commit history across repositories
  • Building AI-powered tools that need to read, create, or update files on GitHub
  • Receiving real-time notifications for repository events (forks, branch creation, file updates, etc.)

FAQ from GitHub MCP Server

What is required to run GitHub MCP Server?

Node.js and npm are required. A GitHub Personal Access Token must be configured either in config.json or as the GITHUB_TOKEN environment variable.

How do I configure the GitHub token?

Copy config.example.json to config.json and add your token, or set the GITHUB_TOKEN environment variable.

What API endpoints does the server provide?

POST /list-tools lists available operations, POST /call-tool executes a GitHub operation, GET /health checks server status, and GET /events provides real-time updates via Server-Sent Events.

Can I change the server port?

Yes, set the PORT environment variable. The default port is 3000.

Does the server support real-time updates?

Yes, it supports Server-Sent Events (SSE) on the /events endpoint. Available events include repository_forked, branch_created, repository_created, file_updated, files_pushed, issue_created, and pull_request_created.

评论

版本控制 分类下的更多 MCP 服务器