Skip to main content
Glama
anujsingla

github-mcp

by anujsingla

github-mcp

A small MCP server, built with FastMCP, that exposes read-only GitHub data as tools your AI assistant (Claude, etc.) can call.

It talks to the public GitHub REST API, so no token is required to get started — though setting one raises your rate limit.

Tools

Tool

Description

get_github_user

Public profile for a user: name, bio, followers, public repo count.

get_github_repo

Info about a repo: description, stars, forks, language, open issues.

list_user_repos

A user's public repos (most recently updated first).

search_github_repos

Search public repos by keyword, sorted by stars.

Related MCP server: GitHub MCP Server

Requirements

Installation

git clone https://github.com/anujsingla/github-mcp.git
cd github-mcp
poetry install

Configuration

No token is needed for basic use, but the public GitHub API allows only 60 requests/hour unauthenticated. Set a personal access token to raise the limit to 5,000/hour:

export GITHUB_TOKEN=ghp_your_token_here

Running

poetry run python -m github_mcp.server

Using with Claude Code

Register the server so Claude can call its tools:

claude mcp add github -- poetry run python -m github_mcp.server

Then ask things like "Look up the GitHub user octocat" or "Search GitHub for popular rust web frameworks."

Project structure

src/github_mcp/server.py   # FastMCP server and tool definitions
tests/                     # Tests

Related MCP Connectors

Related MCP Servers

  • F
    license
    B
    quality
    D
    maintenance
    An MCP server that enables Claude and other compatible LLMs to interact with the GitHub API, supporting features like creating issues, retrieving repository information, listing issues, and searching repositories.
    4
    -
  • F
    license
    B
    quality
    D
    maintenance
    An MCP server that allows Claude and other MCP-compatible LLMs to interact with the GitHub API, supporting features like creating issues, getting repository information, listing issues, and searching repositories.
    4
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Read-only GitHub MCP server that lets assistants search and read repositories, issues, pull requests, commits, and file contents, scoped to the user's personal access token.
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A minimal MCP server for GitHub that enables browsing repos, reading code, searching, and getting insights through natural language via Claude, Cursor, or any MCP client.
    7
    MIT