GitHub MCP Server implemented in Go.
Create a GitHub Personal Access Token with the appropriate permissions and set it as the GITHUB_PERSONAL_ACCESS_TOKEN environment variable.
get_me
- Return information about the authenticated user
get_issue
- Get the contents of an issue within a repository.
- Inputs
owner
(string): Repository ownerrepo
(string): Repository nameissue_number
(number): Issue number to retrieve
- Returns: Github Issue object & details
go run cmd/server/main.go stdio
E.g:
Set the PAT token in the environment variable and run:
script/get-me
And you should see the output of the GitHub MCP server responding with the user information.
GitHub MCP Server running on stdio
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"content": [
{
"type": "text",
"text": "{\"login\":\"juruen\",\"id\" ... }
}
]
}
}