Skip to main content

GitHub (local)

Two Official cards share the name GitHub. This page is the card whose description says it runs locally. Willow starts GitHub's image on each person's computer:

docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server

The API key is a GitHub personal access token. Willow passes it as GITHUB_PERSONAL_ACCESS_TOKEN. It is the GitHub card with the Official badge that runs locally. Willow also has a built-in GitHub connector. The other Official card is GitHub's hosted server; see GitHub.

This server is Local. Each person connects over STDIO. See Local MCP.

GitHub's image can also open a browser login. A personal access token in GITHUB_PERSONAL_ACCESS_TOKEN takes precedence over that login. This card uses the token.

Before you start​

On every computer that will use the server:

  • Docker installed and running. The image ghcr.io/github/github-mcp-server is public. If the pull fails, an expired login can be the cause. Run docker logout ghcr.io.
  • Node.js, so Willow's local client can start with npx.

Personal access token​

  1. In GitHub, create a personal access token. Grant only the access the agent needs. GitHub's guidance lists repo for repository operations, read:org for organization teams, and read:packages for GitHub package access. See Managing your personal access tokens.
  2. In Willow, go to MCP Servers → + Add MCP server. Open the GitHub card with the Official badge that runs locally, and click + Use.
  3. Under Authentication, keep Personal API keys so each person pastes their own token when they connect. Shared API key uses one token for every person. Either way, Willow sets GITHUB_PERSONAL_ACCESS_TOKEN.
  4. Assign groups and Publish.

GitHub Enterprise​

GitHub Enterprise Server has no remote MCP host. Use this local card and set the host. GitHub Enterprise Cloud with data residency (ghe.com) can use the same setting when you run this image.

The card does not include GITHUB_HOST. On the server's Setup tab, under MCP configuration, add it. Put -e and GITHUB_HOST in args before the image name, next to the existing -e GITHUB_PERSONAL_ACCESS_TOKEN, and set GITHUB_HOST in env. Leave {{apiKey}} on GITHUB_PERSONAL_ACCESS_TOKEN.

  • GitHub Enterprise Server: https:// plus the hostname. GitHub refuses a host that is not HTTPS. The exception is a loopback host such as http://localhost.
  • GitHub Enterprise Cloud with data residency: https://YOURSUBDOMAIN.ghe.com.

Each person​

  1. Confirm Docker is running on that computer.
  2. On the MCP Servers page, open this server and click Use. Copy the STDIO configuration into the AI client. The client runs the container locally.

Troubleshooting​

Docker cannot pull the image​

Cause: Docker is not running, or ghcr.io has an expired login. The image is public.

Solution: Start Docker. If the pull still fails, run docker logout ghcr.io and try again.

Additional Resources​