Skip to main content
Glama
luizHramoss

GitHub MCP Server

by luizHramoss

GitHub MCP Server

Custom MCP (Model Context Protocol) server, written in TypeScript, that connects GitHub to the GitHub REST API.

What it does

It exposes 6 tools that Claude can call:

Tool

Description

list_repos

Lists the authenticated user's repositories

get_repo

Details of a specific repository

list_issues

Lists a repository's issues

create_issue

Creates a new issue

get_file_content

Reads the contents of a file in the repository

search_code

Searches code on GitHub

Related MCP server: remote-mcp-oauth-github

1. Generate a GitHub Personal Access Token

  1. Go to GitHub β†’ Settings β†’ Developer settings β†’ Personal access tokens β†’ Fine-grained tokens

  2. Create a token with the minimum required permissions:

    • Contents: Read (for get_file_content)

    • Issues: Read and write (for list_issues/create_issue)

    • Metadata: Read (always required)

  3. Copy the generated token (it starts with github_pat_...)

Security tip: never commit the token to the repository. Use an environment variable.

2. Install and build

npm install
npm run build

This generates build/index.js, which is the server executable (it communicates via stdio, the standard MCP protocol).

3. Test locally (optional, without Claude)

export GITHUB_PERSONAL_ACCESS_TOKEN="seu_token_aqui"
npm start

If GitHub MCP server rodando via stdio. appears in stderr, it is working. To test the tools interactively, use the MCP Inspector:

npx @modelcontextprotocol/inspector node build/index.js

4. Connect to Claude Desktop

Edit the Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add:

{
  "mcpServers": {
    "github": {
      "command": "node",
      "args": ["/caminho/absoluto/para/github-mcp-server/build/index.js"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "seu_token_aqui"
      }
    }
  }
}

Restart Claude Desktop. The GitHub tools should appear in the conversation's tools icon (πŸ”¨).

5. Next steps (ideas to expand and boost your portfolio)

  • Add authoring tools: create_pull_request, merge_pull_request, create_branch

  • Add real (cursor-based) pagination instead of just per_page

  • Rate limiting and caching (GitHub limits authenticated requests to 5000 req/h)

  • Automated tests with Vitest/Jest

  • CI with GitHub Actions running lint + tests + build on every push

  • Publish as a npm package (npx github-mcp-server)

  • Dockerize the server (good hook to connect with your other DevOps projects)

Project structure

github-mcp-server/
β”œβ”€β”€ src/
β”‚   └── index.ts      # lΓ³gica do servidor e definiΓ§Γ£o das tools
β”œβ”€β”€ build/             # gerado pelo `npm run build`
β”œβ”€β”€ package.json
β”œβ”€β”€ tsconfig.json
└── README.md
Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Connects Claude Desktop to GitHub repositories, enabling users to perform git operations and GitHub API interactions through natural conversation.
    452
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables to interact with GitHub repositories directly from Claude, supporting actions like viewing repos, checking status, committing and pushing changes, and managing pull requests.

View all related MCP servers

Related MCP Connectors

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…

  • Connect Claude to Fathom meeting recordings, transcripts, and summaries

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/luizHramoss/github-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server