ghcontext: an MCP server providing real-time GitHub repository context to LLMs

ghcontext: an MCP server providing real-time GitHub repository context to LLMs

ghcontext•bymarcomuellner

ghcontext is a TypeScript MCP server that gives MCP-enabled AI assistants live access to GitHub repository information, including README contents, API documentation, repository structure, and file contents, with intelligent caching.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Extracts API documentation from READMEs and dedicated documentation files in a repository.
  • •Provides a map of a codebase's organization and retrieves the latest README content directly from GitHub.
  • •Finds and extracts specific files or code snippets and discovers repositories matching specific criteria.
  • •Works with private repositories and uses a caching system to reduce API load while keeping information fresh.

BEST FOR

  • •AI assistants that need current API documentation for a library rather than outdated training knowledge.
  • •Helping LLMs understand a project's architecture, design principles, and API usage patterns.
  • •Assistants that must stay in sync with recent changes to an evolving codebase.

ABOUT GHCONTEXT

ghcontext: an MCP server providing real-time GitHub repository context to LLMs is cataloged as an MCP server attributed to marcomuellner. ghcontext is a TypeScript MCP server that gives MCP-enabled AI assistants live access to GitHub repository information, including README contents, API documentation, repository structure, and file contents, with intelligent caching. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for ghcontext: an MCP server providing real-time GitHub repository context to LLMs are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does ghcontext require a GitHub token?

Yes, ghcontext requires a GitHub token for authentication, and the README advises granting only the scopes needed, noting it does not need write access.

Can ghcontext access private repositories?

Yes, the README states that ghcontext provides real-time repository information also for private repositories.

Which models can use ghcontext?

It is described as compatible with any MCP-enabled models, including Claude and GPT.

Upstream README

View this exact version on GitHub

README.md · 1997f19ad60d · Fetched 2026-11-13 11:51:38 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

ghcontext: Supercharge Your LLMs with Real-time GitHub Context

License TypeScript Node.js MCP

"But my GitHub repo changed yesterday..." - Never worry about outdated information in your AI assistants again.

ghcontext (GitHub Context Provider) bridges the gap between GitHub and Large Language Models, giving AI assistants real-time access to repository information through the standardized Model Context Protocol (MCP).

ghcontext Architecture

🔥 Why ghcontext?

  • Accurate, Real-time Information: LLMs often have outdated knowledge about repositories. ghcontext provides the latest API docs, README contents, and codebase structure - Also for private repos
  • Deeper Understanding: Help LLMs grasp your project's architecture, design principles, and API usage patterns.
  • Seamless Integration: Compatible with any MCP-enabled models, including Claude, GPT, and others.
  • Highly Efficient: Intelligent caching reduces API calls while keeping information fresh.

✨ Key Features

  • API Documentation Extraction: Automatically identifies and extracts API documentation from READMEs and dedicated documentation files
  • Repository Structure Analysis: Provides a map of your codebase's organization
  • README Content Retrieval: Gets the latest documentation directly from GitHub
  • File Content Search: Find and extract specific files or code snippets
  • Repository Search: Discover repositories matching specific criteria

🚀 Quick Start

A note on tokens

ghcontext requires a GitHub token for authentication. You are responsible for managing your token securely, and you should give it only the scopes really necessary for your use case. For example, if you only need to read public repositories, you can create a token with the public_repo scope. ghcontext does not need write access to your repositories.

Installation

Method 1: Run without Installation using npx

# Run directly without installation (GitHub token is REQUIRED)
npx ghcontext --GITHUB_TOKEN your_github_token

# OR using pnpm
pnpm dlx ghcontext --GITHUB_TOKEN your_github_token

This is the preferred way to give it to the claude agent, as it doesn't require any installation and you can run it directly from the command line.

Method 2: Global Installation from npm

# Install globally using npm
npm install -g ghcontext

# OR using pnpm
pnpm add -g ghcontext

# Run ghcontext with your GitHub token (REQUIRED)
ghcontext --GITHUB_TOKEN your_github_token

Method 3: Manual Installation (Development)

# Clone the repository
git clone https://github.com/yourusername/ghcontext.git
cd ghcontext

# Install dependencies
pnpm install

# Start the server with GitHub token (REQUIRED)
pnpm start --GITHUB_TOKEN your_github_token

Usage with LLMs

Connect your MCP-compatible LLM to the ghcontext server endpoint:

http://localhost:3000/api/mcp

Your LLM will now have access to tools like:

  • get-repository-info: Get detailed information about a repository
  • get-repository-readme: Retrieve the current README content
  • get-repository-api-docs: Extract API documentation
  • search-repository-files: Find files in a repository
  • get-file-content: Retrieve specific file contents

🔍 Example Scenario

Ask your MCP-enabled AI assistant:

"What are the available methods in the axios library for handling request interceptors?"

Instead of getting outdated or generic information, your assistant can:

  1. Use get-repository-api-docs to fetch the latest axios API documentation
  2. Analyze the current documentation for interceptor methods
  3. Provide you with accurate, up-to-date information

🧰 Architecture

ghcontext follows a modular design:

┌─────────────────┐       ┌──────────────┐       ┌────────────────┐
│   MCP Server    │◄─────►│  GitHub API  │◄─────►│  GitHub.com    │
│  (TypeScript)   │       │    Client    │       │                │
└────────┬────────┘       └──────────────┘       └────────────────┘
         │
         │
┌────────▼────────┐       ┌──────────────┐
│ Context         │       │   Caching    │
│ Processors      │◄─────►│   System     │
└─────────────────┘       └──────────────┘
  • MCP Server: Handles the Model Context Protocol communication
  • GitHub API Client: Manages GitHub REST and GraphQL API interactions
  • Context Processors: Extract and organize relevant information
  • Caching System: Improves performance and reduces API load

🧠 Why It Matters

Traditional AI assistants struggle with:

  • Outdated knowledge of repositories
  • Incomplete understanding of project structure
  • Inability to see recent changes and updates

ghcontext solves these problems by giving LLMs a direct line to GitHub's latest information, making your AI assistants more accurate, more helpful, and more in sync with your evolving codebase.

🛠️ Development

# Build the project
pnpm run build

# Run tests
pnpm test

# Lint your code
pnpm run lint

# Format your code
pnpm run format

📦 Publishing to npm

If you're a maintainer of this package and need to publish a new version:

  1. Update the version in package.json:

    # For patch releases (bug fixes)
    npm version patch
    
    # For minor releases (new features, no breaking changes)
    npm version minor
    
    # For major releases (breaking changes)
    npm version major
    
  2. Publish to npm:

    # The prepublishOnly script will run linting, tests, and build automatically
    npm publish
    
  3. Push tags to GitHub:

    git push --follow-tags
    

📝 License

This project is MIT licensed - see the LICENSE file for details.


ghcontext: Because your AI assistant should understand your code as well as you do.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for ghcontext: an MCP server providing real-time GitHub repository context to LLMs from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/ghcontext)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools