GitHub Knowledge Base MCP
MCP server to connect to and use any public GitHub repo as knowledge base (markdown/notebook docs)
GitHub Knowledge Base MCP
A simple MCP server built with FastMCP that lets you connect to any public GitHub repo as knowledge base. It has a few simple tools to find and read markdown and Jupyter notebook documents.
Blog post: https://stefanbschneider.github.io/blog/posts/fastmcp/
Avialble toolset:
knowledge_base_infolist_documentsread_documentlist_documents_with_metadatalist_latest_documentssearch_documents
knowledge_base_info includes:
document_file_count: total supported filesdocument_type_counts: counts per extension (for example.md,.markdown,.ipynb)
list_documents_with_metadata is useful to retrieve latest blog posts by setting sort_by="last_modified_utc" and descending=true.
Example: retrieve latest blog posts
Request:
{
"tool": "list_latest_documents",
"arguments": {
"limit": 5,
"extension_filter": ".md"
}
}
Response shape:
[
{
"path": "blog/2026-04-10-launch-post.md",
"size_bytes": 3210,
"last_modified_utc": "2026-04-10T14:11:52Z"
}
]
Supported file types:
.md.markdown.ipynb
Setup
Installation
uv sync frozen
Configuration
Set KB_GITHUB_REPO to use a public GitHub repository as the knowledge base.
- supported formats:
owner/repohttps://github.com/owner/repo
- optional ref/branch/tag:
KB_GITHUB_BRANCH - if no ref is set, the repository default branch is used
Example:
export KB_GITHUB_REPO="microsoft/vscode"
export KB_GITHUB_BRANCH="main" # optional
python gh_kb_mcp_server.py
Notebook handling details:
- only markdown cells are indexed/read for
.ipynb - notebook outputs are ignored
- invalid notebooks return clear validation errors for direct reads
All tools run only against the configured GitHub repository.
Running the server
fastmcp run server.py
Configuring the MCP in VSCode
Via command palette, call "MCP: Add server..." or add/create mcp.json adding the following block to your "servers":
"GitHub Knowledge Base": {
"type": "stdio",
"command": "${workspaceFolder}/.venv/bin/fastmcp",
"args": [
"run",
"server.py",
],
"env": {
"KB_GITHUB_REPO": <public-github-repo> // eg: "stefanbschneider/blog" or "microsoft/vscode"
}
}
Related Servers
Microsoft Office (PowerPoint & Excel)
Automate Microsoft PowerPoint and Excel on Windows using AI-powered COM automation.
Sheet-Cello
A specialized Google Sheets integration server that allows the LLM to read, write, and manage spreadsheet data in real-time. This server supports cell-level manipulation, bulk range updates, and full worksheet retrieval, enabling the model to perform data analysis, logging, and automated reporting directly within Google Worksheets.If you have functions which take range value then first read the sheet and decide where user is asking to add data and define range by your own.Provides 46 tools for Gsheet
Tellers.AI - Prompt Based Video Editing
Give video editing skills to your agent
Breathe HR
Provides secure, read-write access to Breathe HR data for AI assistants.
Calculator
A simple calculator server for performing basic arithmetic operations.
Team Relay MCP
Read, search, and write Obsidian vault notes via Team Relay collaborative server. Supports shared folders and real-time sync.
Neural Memory
Persistent memory for AI agents — 55 MCP tools, spreading activation recall, neuroscience-inspired consolidation
FAKTURMAT MCP
MCP-enabled invoicing platform for invoice creation, PDF export, and billing operations.
Splitwise MCP Server
Manage Splitwise expenses with plain English via Claude AI — add expenses, check balances, and settle up without opening the app.
WordPress MCP
A Model Context Protocol (MCP) server that gives AI agents full control over WordPress sites. 46 tools for posts, pages, media, SEO, comments, redirects, blocks, patterns, TablePress, and more.