Basic information
About ghcontext: Supercharge Your LLMs with Real-time GitHub Context MCP Server
An MCP server providing real-time GitHub data to LLMs, enhancing their software development capabilities.
ghcontext: Supercharge Your LLMs with Real-time GitHub Context is a MCP server in the Version Control category listed in the AddMCP.net directory, published by MarcoMuellner. It exposes 8 tools, including search-repositories, get-repository-info, get-repository-readme, search-repository-files and more. Supported transport: stdio. Runtime: node. License: MIT. Source code is hosted on github.com. Related topics: ghcontext, github, llm-integration.
Setup
{
"mcpServers": {
"ghcontext": {
"command": "npx",
"args": [
"ghcontext",
"--GITHUB_TOKEN",
"your_github_token"
]
}
}
}
{
"mcpServers": {
"ghcontext": {
"command": "npx",
"args": [
"ghcontext",
"--GITHUB_TOKEN",
"your_github_token"
]
}
}
}
{
"servers": {
"ghcontext": {
"command": "npx",
"args": [
"ghcontext",
"--GITHUB_TOKEN",
"your_github_token"
]
}
}
}
ghcontext: Supercharge Your LLMs with Real-time GitHub Context MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"ghcontext": {
"command": "npx",
"args": [
"ghcontext",
"--GITHUB_TOKEN",
"your_github_token"
]
}
}
}
ghcontext: Supercharge Your LLMs with Real-time GitHub Context MCP Server tools
-
search-repositories
— Search for GitHub repositories by query
query:string*, limit:number -
get-repository-info
— Get detailed information about a specific GitHub repository
owner:string*, name:string* -
get-repository-readme
— Get the README content of a GitHub repository
owner:string*, name:string* -
search-repository-files
— Search for files in a GitHub repository
owner:string*, name:string*, path:string, query:string -
get-file-content
— Get the content of a specific file from a GitHub repository
owner:string*, name:string*, path:string* -
get-repository-structure
— Get the directory structure of a GitHub repository
owner:string*, name:string*, path:string, maxDepth:number -
get-repository-api-docs
— Extract API documentation from a GitHub repository README
owner:string*, name:string* -
search-repository-code
— Search for code within a GitHub repository
owner:string*, name:string*, query:string*
Overview
What is ghcontext: Supercharge Your LLMs with Real-time GitHub Context?
ghcontext is an MCP (Model Context Protocol) server that bridges GitHub and large language models, giving AI assistants real-time access to repository information – including private repos – via the standardized MCP protocol. It is designed for developers who want their LLMs to have accurate, up-to-date knowledge of codebases.
How to use ghcontext: Supercharge Your LLMs with Real-time GitHub Context?
Install and run via npx ghcontext --GITHUB_TOKEN your_github_token or globally with npm install -g ghcontext then ghcontext --GITHUB_TOKEN your_github_token. After starting, connect your MCP‑compatible LLM to http://localhost:3000/api/mcp. The server exposes tools such as get-repository-info, get-repository-readme, and get-repository-api-docs.
Key features of ghcontext: Supercharge Your LLMs with Real-time GitHub Context
- API documentation extraction from READMEs and doc files
- Repository structure analysis for a codebase map
- README content retrieval directly from GitHub
- File content search for specific files or snippets
- Repository search to discover matching repositories
- Intelligent caching to reduce API calls while keeping info fresh
Use cases of ghcontext: Supercharge Your LLMs with Real-time GitHub Context
- Providing LLMs with the latest API docs and READMEs for any repository
- Helping AI assistants understand private repository structure and design principles
- Keeping AI assistants informed about recent changes and updates in a codebase
- Assisting with code review by fetching current file contents and architecture
Frequently asked questions
1 Does ghcontext require authentication?
Yes. A GitHub token is mandatory; you are responsible for managing it securely and should grant only the scopes needed (e.g., public_repo for public repos only).
2 Can ghcontext access private repositories?
Yes, provided the GitHub token has the necessary scopes to read those private repos.
3 What tools does ghcontext expose?
It provides tools such as get-repository-info, get-repository-readme, get-repository-api-docs, search-repository-files, and get-file-content.
4 How does ghcontext integrate with LLMs?
It uses the standard MCP protocol, so any MCP‑enabled model (including Claude and GPT) can connect to its HTTP endpoint.
5 Does ghcontext cache GitHub API responses?
Yes, an intelligent caching system improves performance and reduces API load while keeping information fresh.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In