MCP.so
登录

GitHub MCP Server

@Joseph19820124

关于 GitHub MCP Server

A GitHub MCP server demo with create repository functionality

基本信息

分类

版本控制

运行时

python

传输方式

stdio

发布者

Joseph19820124

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "joseph-github-mcp-server": {
      "command": "python",
      "args": [
        "main.py"
      ]
    }
  }
}

工具

未检测到工具

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

概览

What is GitHub MCP Server?

The GitHub MCP Server is a Model Context Protocol (MCP) server that provides GitHub repository creation functionality. It allows AI applications and other MCP clients to programmatically create new GitHub repositories with customizable settings using the standard MCP protocol over stdin/stdout.

How to use GitHub MCP Server?

Clone the repository, install Python dependencies via pip install -r requirements.txt, set the GITHUB_TOKEN environment variable with a token that has repo and user scopes, then run python main.py. The server listens for JSON‑RPC 2.0 requests (e.g., tools/call with tool name create_repository) over stdio. Test it by sending echo '{"method": "tools/list", "id": "1"}' | python main.py.

Key features of GitHub MCP Server

  • Create a new GitHub repository with a required name
  • Set an optional description and privacy setting
  • Communicate via MCP protocol over stdin/stdout
  • Returns full repository details on success
  • Requires Python 3.8 or higher

Use cases of GitHub MCP Server

  • Automate repository creation during CI/CD workflows
  • Let an AI assistant create a GitHub repo on your behalf
  • Integrate repository provisioning into MCP‑capable applications

FAQ from GitHub MCP Server

What GitHub permissions are required?

The personal access token needs repo (for repository access) and user (for user information) scopes.

How do I set the GitHub token?

Set the token as an environment variable: export GITHUB_TOKEN="your_github_personal_access_token".

What Python version is needed?

Python 3.8 or higher is required.

How is the server invoked?

The server runs as a subprocess communicating via JSON‑RPC 2.0 over stdio. MCP clients send tools/list and tools/call requests to discover and use the create_repository tool.

Is the repository private by default?

No, the private parameter defaults to false, making repositories public unless explicitly set to true.

评论

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