Shaamam/github-mcp-server-bash
If you are the rightful owner of github-mcp-server-bash and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project provides a GitHub integration server compatible with the MCP (Model Context Protocol) specification, allowing clients to retrieve GitHub user statistics and profile information via standard tools.
tool_get_repo_count
Returns the number of public repositories for the user defined in GITHUB_USERNAME.
tool_get_commit_count
Returns the total commit count across all public repos.
tool_get_profile_info
Returns the GitHub profile information including name, bio, followers, etc.
github-mcp-server-bash
Github MCP Server for Bash
This project provides a GitHub integration server compatible with the MCP (Model Context Protocol) specification. It allows clients to retrieve GitHub user statistics and profile information via standard tools.
๐ ๏ธ Features
- ๐
tool_get_repo_count
โ Returns public repo count - ๐
tool_get_commit_count
โ Returns total commit count across public repos - ๐ค
tool_get_profile_info
โ Returns user profile info (bio, followers, etc.)
All tools use the GITHUB_USERNAME
and GITHUB_API_TOKEN
environment variables.
๐ Project Structure
.
โโโ githubserver.sh # Main server script
โโโ assets/
โ โโโ githubserver_config.json # MCP server config
โ โโโ githubserver_tools.json # Tool definitions
โโโ logs/
โ โโโ githubserver.log # Log output
โโโ mcpserver_core.sh # Core MCP logic (sourced by server)
โ๏ธ MCP Configuration (VS Code)
Here's a sample mcp.json
(used by the VS Code MCP extension or environment):
{
"mcp": {
"servers": {
"my-github-server": {
"type": "stdio",
"command": "/absolute/path/to/githubserver.sh",
"args": [],
"env": {
"GITHUB_API_TOKEN": "your_github_pat",
"GITHUB_USERNAME": "Shaamam"
}
}
}
}
}
๐ก๏ธ Note: Ensure your GitHub token (
GITHUB_API_TOKEN
) hasrepo
access for private repositories if needed, though only public repos are used by default.
๐ Running the Server
Make sure all scripts are executable:
chmod +x githubserver.sh
You can now launch the server via the MCP toolchain or your VS Code extension.
๐งช Available Tools
๐น tool_get_repo_count
Returns the number of public repositories for the user defined in GITHUB_USERNAME
.
๐น tool_get_commit_count
Returns the total commit count across all public repos.
๐น tool_get_profile_info
Returns the GitHub profile information including name, bio, followers, etc.
โ Requirements
- Bash
jq
curl
- A valid GitHub personal access token