Skip to content

Latest commit

 

History

History
83 lines (50 loc) · 1.84 KB

File metadata and controls

83 lines (50 loc) · 1.84 KB

GitHub MCP Server

A containerized version of "GitHub MCP Server"

Repository: modelcontextprotocol/servers

Description

An MCP server for GitHub. It allows you to interact with GitHub repositories using the Model Context Protocol (MCP).

Usage

The containers are built automatically and are available on the GitHub Container Registry.

  1. Pull the Docker image:
docker pull ghcr.io/metorial/mcp-container--modelcontextprotocol--servers--github
  1. Run the container:
docker run -i --rm \ 
-e GITHUB_PERSONAL_ACCESS_TOKEN=github-personal-access-token \
ghcr.io/metorial/mcp-container--modelcontextprotocol--servers--github  "cd ./src/github && node ./dist/index.js"
  • --rm removes the container after it exits, so you don't have to clean up manually.
  • -i allows you to interact with the container in your terminal.

Configuration

The container supports the following configuration options:

Environment Variables

  • GITHUB_PERSONAL_ACCESS_TOKEN

Usage with Claude

{
  "mcpServers": {
    "github": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/metorial/mcp-container--modelcontextprotocol--servers--github",
        "cd ./src/github && node ./dist/index.js"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "github-personal-access-token"
      }
    }
  }
}

License

Please refer to the license provided in the project repository for more information.

Contributing

Contributions are welcome! If you notice any issues or have suggestions for improvements, please open an issue or submit a pull request.

Containerized with ❤️ by Metorial