GitHub MCP Server
GitHub MCP CLI with Ollama
A terminal-based project that uses the Model Context Protocol (MCP) and local LLMs (via Ollama) to query and summarize GitHub data.
Overview
This project is split into two components:
MCP Server (
server.py): Built withfastmcp, it provides tools to fetch GitHub repository details, recent issues, and recent commits.CLI Client (
client.py): An interactive terminal interface usingrichand LangChain that talks to a local Ollama model to interact with the MCP tools.
Related MCP server: GitHub MCP Server
Setup
Install dependencies:
pip install -r requirements.txtConfigure GitHub Access: For increased rate limits and access to private repositories, export your GitHub Personal Access Token (PAT) as an environment variable (or put it in a
.envfile):export GITHUB_TOKEN="your_personal_access_token_here"Start Ollama: Ensure Ollama is running locally with a tool-capable model (like
llama3.2):ollama run llama3.2Run the client:
python client.py
Development
Currently, both server.py and client.py are fully operational. The client uses MultiServerMCPClient and LangChain's React Agent to seamlessly connect to the tools and route your questions to Ollama.
Tools exposed by the MCP Server:
get_repo(owner, repo): Get basic details about a repository.list_issues(owner, repo, state, limit): Fetch recent issues.list_commits(owner, repo, limit): Fetch recent commits.
This server cannot be installed
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 Servers
- AlicenseBqualityAmaintenanceMCP server that exposes GitHub operations as tools for AI agents, enabling code search, issue management, and PR review.12MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides tools for interacting with the GitHub API, enabling AI assistants to query repositories, pull requests, issues, commits, users, and more.441ISC
- AlicenseBqualityCmaintenanceA comprehensive MCP server that exposes 73 GitHub API tools for managing repositories, pull requests, issues, actions, releases, search, and more, enabling natural language control of GitHub.73MIT
- AlicenseAqualityCmaintenanceA lightweight MCP server that enables fetching public GitHub user profiles, repository stats, recent events, and pull request insights through simple tool calls.21111MIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
A MCP server built for developers enabling Git based project management with project and personal…
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/dhirendra1729/git_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server