GithubStats_MCP
Provides tools to fetch public GitHub user profiles, repository activity, events, and pull request insights.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GithubStats_MCPget stats for user torvalds"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub MCP
A TypeScript-based Model Context Protocol (MCP) server for inspecting public GitHub data through tools that can be consumed by MCP-compatible clients such as Cursor or Claude Desktop.
What this project does
The server currently exposes two tools:
hello: returns a friendly greeting and serves as a simple protocol sanity check.github_user_stats: fetches a GitHub username’s public profile metadata, repository activity totals, recent public events, and pull request insights in one response.
The implementation uses the GitHub REST API to gather public profile information and formats the output into human-readable summaries.
Related MCP server: github-mcp
Features
Lightweight MCP server over stdio transport
Public GitHub profile and repository stats gathering
Pull request insights including:
total PR count
merged PR count
co-authored PR count
most targeted repository
Optional authentication via a GitHub token to reduce unauthenticated rate-limit issues
Test coverage for formatting and helper logic
Getting started
1. Install dependencies
git clone https://github.com/<your-username>/github_mcp.git
cd github_mcp
npm install2. Configure environment variables
Create a .env file in the project root if you want to use a GitHub token:
GITHUB_TOKEN=your_github_personal_access_tokenThis is optional, but recommended for smoother API usage.
3. Run the server
npm run devThe server runs over stdio, so stdout is reserved for MCP protocol traffic and logs are written to stderr.
Example tool calls
Hello
{
"name": "Mahesh"
}GitHub stats
{
"username": "Maheshkumarjena"
}Scripts
npm run devstarts the MCP server in development modenpm run buildcompiles the TypeScript projectnpm testruns the Vitest test suite
Project structure
src/index.tsbootstraps the MCP serversrc/tools.tsregisters the available MCP toolssrc/github.tswraps GitHub API requests and data aggregationsrc/schemas.tsdefines tool input validation with Zodsrc/types.tscontains shared TypeScript interfacessrc/utils.tsformats and transforms data for outputtests/contains unit tests for helper behavior
Development notes
The current implementation is intentionally small and focused on a solid foundation for GitHub data access. It is a good starting point for adding more GitHub endpoints and exposing additional MCP tools.
Contributing
Fork the repository
Create a feature branch
Extend the GitHub client in
src/github.tsor add new tools insrc/tools.tsRun
npm testandnpm run buildbefore opening a pull request
Available Tools
2 toolsgithub_user_statsB
Fetch public GitHub profile, activity stats, and pull request insights.
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | GitHub username |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It does not mention potential side effects, authentication requirements, rate limits, or the exact structure of returned data. The description only names the data categories, leaving the behavioral expectations largely unspecified.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no filler. It efficiently communicates the core purpose without wasting words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With only one parameter and no output schema, the description gives a high-level view of what is returned ('profile, activity stats, and pull request insights') but lacks specifics on the output format, error cases, or any limitations. It is adequate for a basic fetch tool but leaves gaps in completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already provides full coverage for the single parameter 'username' with its description. The tool description adds no extra meaning about the parameter beyond what the schema states. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states a specific verb ('Fetch') and a resource ('public GitHub profile, activity stats, and pull request insights'). This distinguishes the tool from its sibling 'hello', which appears unrelated. The purpose is immediately understandable.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, nor any prerequisites or exclusions. It simply states what the tool does without contextual usage instructions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
helloA
Return a friendly greeting for the provided name.
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name to greet | Mahesh |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description alone conveys the tool's behavior. 'Return a friendly greeting' fully discloses a pure, side-effect-free operation; there is no hidden state change, authentication, or rate limiting. Nothing more is needed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with zero filler words. Every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is extremely simple with one optional parameter and no output schema. The description adequately explains the action, and the missing return value format is a minor detail that the agent can infer. A 4 reflects the slight uncertainty about the exact greeting phrasing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% (the property already has a description, default, and type). The description only restates 'provided name' without adding extra meaning, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states the exact verb ('Return') and resource ('a friendly greeting'), with the input scope ('for the provided name'). It is entirely unambiguous and distinguishes itself from the unrelated sibling tool github_user_stats.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly implies usage: call this when you need a greeting for a given name. There are no alternatives or exclusions, but for such a simple tool the context is self-evident, earning a 4 rather than a 3.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
v0.1.0- First observed
github_user_stats - First observed
hello
TDQS
The two tools are entirely distinct: 'hello' provides a greeting, while 'github_user_stats' fetches GitHub data. There is no overlap or ambiguity between them.
The tool names lack a consistent pattern. 'hello' is a simple interjection, while 'github_user_stats' is a compound noun; neither follows a verb_noun convention, making the naming style inconsistent.
With only two tools, one of which is a generic greeting, the set feels thin for a GitHub stats server. However, it is not an extreme mismatch given the narrow domain.
The 'github_user_stats' tool covers the primary domain of fetching user profile, activity, and PR insights, but the inclusion of 'hello' adds no domain value, and there is no ability to query specific metrics or historical data, leaving minor gaps.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Create, deploy, and operate MCP servers directly from your GitHub repositories.
A MCP server built for developers enabling Git based project management with project and personal…
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseBqualityBmaintenanceMCP server that exposes GitHub operations as tools for AI agents, enabling code search, issue management, and PR review.12MIT
- FlicenseNot gradedqualityCmaintenanceA read-only MCP server that exposes GitHub user profiles, repository info, and search via tools for AI assistants like Claude.-
- FlicenseAqualityCmaintenanceMCP server for exploring GitHub public data. It provides tools to fetch user profiles, list top repositories, and calculate language usage statistics, which AI agents can invoke dynamically.3-
- AlicenseNot gradedqualityCmaintenanceA lightweight MCP server that exposes GitHub tools for searching repositories, listing issues, and reading file contents.467ISC
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Maheshkumarjena/GithubStats_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server