🚀 Portfolio Project An AI agent that uses Model Context Protocol (MCP) to explore GitHub repositories using natural language.
The GitHub MCP Agent is an Agentic AI application that allows users to query GitHub repositories in plain English. Instead of scraping data or using static RAG pipelines, this project uses Model Context Protocol (MCP) to interact with GitHub as a structured, tool-based context source.
The agent dynamically reasons over repositories, issues, pull requests, and activity using live GitHub data.
Traditional approaches:
- ❌ Web scraping (fragile)
- ❌ Static RAG (outdated context)
This project uses MCP, which enables:
- ✅ Live tool-based access to GitHub
- ✅ Structured context (repos, issues, PRs)
- ✅ Clear separation between reasoning and data access
- ✅ Safer, auditable agent behavior
- 🔍 Query GitHub repositories using natural language
- 🐞 Explore issues and discussions
- 🔀 Analyze pull requests
- 📊 Inspect repository activity and health
- 🤖 Agent powered by OpenAI + MCP tools
- 🪟 Windows-compatible (no Docker required)
- Python 3.10+
- Streamlit – UI
- OpenAI API – LLM reasoning
- Agno Framework – Agent orchestration
- Model Context Protocol (MCP) – Tool-based context
- GitHub MCP Server – GitHub integration via
npx
git clone https://github.com/munzahmed07/github-mcp-agent.git
cd github-mcp-agentconda create -n ai_agent_env python=3.10 -y
conda activate ai_agent_envpip install -r requirements.txtDownload and install Node.js LTS from: 👉 https://nodejs.org
Verify:
node --version
npx --versionnpm install -g @modelcontextprotocol/server-githubThis app requires:
- OpenAI API Key
- GitHub Fine-grained Token (read-only access)
You can paste both directly into the Streamlit sidebar when the app runs.
streamlit run github_agent.pyOpen in browser:
http://localhost:8501
- "Summarize this repository"
- "Show open issues"
- "What pull requests need review?"
- "Explain the architecture"
- "Analyze recent repository activity"
github-mcp-agent/
├── github_agent.py
├── requirements.txt
└── README.md
MIT License