Narad GitHub Agent

Narad GitHub Agent

Enables AI-powered GitHub interactions including repository analysis, code search, PR reviews, and more through the MCP protocol.

Category
Visit Server

README

Narad GitHub Agent ๐Ÿš€๐Ÿค–

A Premium CLI & MCP Server Powered by Gemini 2.0 Flash

The Narad GitHub Agent is a next-generation, dual-mode intelligent agent engineered for seamless high-level interactions with GitHub. It operates as an interactive CLI chat agent you can talk to directly, or as a Model Context Protocol (MCP) server that integrates with AI-powered IDEs and tools.

Powered by Gemini 2.0 Flash, it transforms complex repository tasks into simple conversational interactions โ€” with conversation memory, AI code reviews, and a daily digest of your GitHub activity.

Fully Dynamic: The agent uses whoever's GITHUB_TOKEN is in .env. Clone it, put your own token in, and it works 100% for your account โ€” no code changes needed.


โœจ Key Features

Feature Description
๐Ÿ’ฌ Interactive CLI Mode Chat with the agent directly in your terminal using natural language
๐ŸŒ MCP Server Mode Integrate with AI IDEs (VS Code + Antigravity, Claude Desktop) via MCP
๐Ÿง  Conversation Memory Every session is stored in a local SQLite DB โ€” Gemini remembers context
๐Ÿ”ฅ PR Code Reviewer Fetch a PR's diff and get an expert AI code review (bugs, security, rating)
๐ŸŒ… Daily Digest AI-written morning report of activity across all your repos
๐Ÿ‘ค Profile Overview View any GitHub user's bio, stats, and top repos with an AI Developer Summary
โšก Gemini 2.0 Flash Reasoning engine for repo health, code analysis, and GitHub Q&A
๐Ÿ” Security First .env is git-ignored. Your token is never pushed to GitHub
๐Ÿ“ฆ Clean Architecture Pydantic Settings, structured logging, modular tool design

๐Ÿ› ๏ธ Tech Stack

Technology Role
Gemini 2.0 Flash AI Reasoning & Analysis Engine
FastMCP Model Context Protocol Server
PyGitHub GitHub REST API Integration
SQLite (stdlib) Local DB for conversation memory, PR reviews & digests
Pydantic Settings Config Management & Validation
Rich Beautiful Terminal UI/CLI
Python 3.10+ Core Language
venv Isolated Dependency Management

๐Ÿ“ Project Structure

Narad-GitHub-Agent/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ main.py              # Dual entry point: CLI or MCP Server
โ”‚   โ””โ”€โ”€ narad_mcp/
โ”‚       โ”œโ”€โ”€ config.py        # Pydantic Settings & Config
โ”‚       โ”œโ”€โ”€ server.py        # FastMCP Server with all tools
โ”‚       โ”œโ”€โ”€ cli.py           # Rich Interactive CLI Agent
โ”‚       โ”œโ”€โ”€ database.py      # SQLite layer (memory, PR reviews, digests)
โ”‚       โ”œโ”€โ”€ tools/
โ”‚       โ”‚   โ””โ”€โ”€ github_tools.py  # All GitHub API interactions
โ”‚       โ””โ”€โ”€ agents/
โ”‚           โ””โ”€โ”€ gemini_agent.py  # Gemini 2.0 Flash Reasoning Engine
โ”œโ”€โ”€ tests/                   # Quality assurance suite
โ”œโ”€โ”€ narad_agent.db           # ๐Ÿ”’ Local SQLite DB (auto-created, git-ignored)
โ”œโ”€โ”€ .env                     # ๐Ÿ”’ Secrets (git-ignored, never pushed)
โ”œโ”€โ”€ .env.example             # Credential Template for setup
โ”œโ”€โ”€ .gitignore               # Strict security rules
โ””โ”€โ”€ requirements.txt         # Modern dependencies

๐Ÿš€ Quick Start

1. Prerequisites

Ensure you have Python 3.10+ installed and your API keys ready.

2. Clone & Setup Environment

# Clone the repo
git clone https://github.com/Edge-Explorer/Narad-GitHub-Agent.git
cd Narad-GitHub-Agent

# Create and activate virtual environment
python -m venv venv
.\venv\Scripts\activate   # Windows

# Install dependencies
pip install -r requirements.txt

3. Configure Credentials

Create a .env file by copying the example:

copy .env.example .env

Then fill in your keys:

GITHUB_TOKEN="your_github_personal_access_token"
GEMINI_API_KEY="your_gemini_api_key"

Getting a GitHub Token: Go to GitHub Settings โ†’ Developer Settings โ†’ Personal Access Tokens and create a token with repo scope.

Getting a Gemini API Key: Visit Google AI Studio to generate your free Gemini API key.

4. Run the Agent

๐Ÿ’ฌ Interactive CLI Mode (Chat with the Agent)

python src/main.py --cli

๐ŸŒ MCP Server Mode (Connect to AI IDE)

python src/main.py

๐Ÿงฐ CLI Commands

You can type natural language or use the keywords below:

Command What it does
repos List your repositories (auto-detected from token)
repos <username> List any GitHub user's public repos
profile Your full GitHub profile: bio, stats, top repos
profile <username> Any user's full profile & top repos
commits <owner/repo> Recent commit history for a repo
branches <owner/repo> List all branches
prs <owner/repo> List open Pull Requests
review pr <owner/repo> <#> ๐Ÿ”ฅ AI Code Review of a specific PR
analyze <owner/repo> ๐Ÿง  AI repo health report + score out of 10
digest ๐ŸŒ… Generate today's Daily GitHub Digest
history View your current session's conversation history
ask <question> Ask Gemini any GitHub or coding question
exit Quit the agent

Natural Language Examples

show me my repos
give me commits from Edge-Explorer/Narad-GitHub-Agent
analyze my Narad project
what are the open PRs in Edge-Explorer/Narad-MCP-Server
review pr Edge-Explorer/my-project 3
give me today's digest
what is a pull request?

๐Ÿ—„๏ธ Local SQLite Database

The agent automatically creates narad_agent.db to persist data locally:

Table Stores
conversation_history All questions & answers per session (with session ID)
pr_reviews Full AI code reviews with repo, PR number & timestamp
daily_digests All generated daily digests, so you can compare over time

The database file is git-ignored and stays only on your machine.


๐Ÿ”’ Security & Best Practices

  • Your token is 100% dynamic: The agent reads GITHUB_TOKEN from .env at startup. If you change the token, it uses the new one automatically. No code changes needed.
  • Token never leaks: .env and *.db are strictly in .gitignore โ€” they will never be pushed to GitHub.
  • Anyone can clone this: A new user clones the repo, adds their own .env with their credentials, and the agent will work for their GitHub account โ€” not yours.
  • Least Privilege: Only the GitHub token scopes you need (repo is enough for all features).
  • Validated Config: Pydantic Settings validates all environment variables on startup โ€” it fails fast with a clear error if a key is missing.

๐Ÿงฐ MCP Tools (Server Mode)

When running as an MCP Server, these tools are exposed to your AI IDE:

Tool Description
list_repositories List repos for you or any GitHub user
get_commits Fetch recent commit history
analyze_repository AI-powered health & activity report
read_file Read any file from any branch
search_github_code Search code across all of GitHub
list_repo_branches List all branches
ask_gemini_github Ask Gemini any GitHub/dev question

๐Ÿค About

Narad GitHub Agent โ€” Re-engineered from the ground up with a focus on security, modularity, AI-first design, and genuine day-to-day developer utility.

Built as part of the Narad AI Ecosystem โ€” a family of modular, premium AI agents.


๐Ÿ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.


ยฉ 2026 Edge-Explorer ยท Narad AI Ecosystem

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured