Skip to content

Instantly share code, notes, and snippets.

@gwpl
Last active May 19, 2025 21:58
Show Gist options
  • Save gwpl/081e30d70a782b31d8dd4a4cf793d36a to your computer and use it in GitHub Desktop.
Save gwpl/081e30d70a782b31d8dd4a4cf793d36a to your computer and use it in GitHub Desktop.
# Assuming working golang installation i.e.
# .bash: for example
# export GOPATH=~/go #or sth else ofc
# export PATH=$PATH:$GOPATH/bin
# install
git clone https://github.com/github/github-mcp-server.git
cd github-mcp-server
go install ./...
# set github token:
# https://github.com/settings/personal-access-tokens/new
# export GITHUB_PERSONAL_ACCESS_TOKEN
# adding to claude project under name "github"
# regarding providing value to GITHUB token variable, here is issue that it should get it fron envirnoment:
# https://github.com/anthropics/claude-code/issues/1180
claude mcp add -e "GITHUB_PERSONAL_ACCESS_TOKEN"="${GITHUB_PERSONAL_ACCESS_TOKEN}" -t stdio github github-mcp-server stdio
claude mcp list
claude mcp get github
# trying via mcptools https://github.com/f/mcptools
# (that you can install via `go install github.com/f/mcptools/cmd/mcptools@latest` ...)
# list tools
mcptools tools github-mcp-server stdio # will only work if GITHUB_PERSONAL_ACCESS_TOKEN is set
@gwpl
Copy link
Author

gwpl commented May 19, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment