Labsco
stefanbschneider logo

GitHub Knowledge Base MCP

from stefanbschneider

MCP server to connect to and use any public GitHub repo as knowledge base (markdown/notebook docs)

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

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_info
  • list_documents
  • read_document
  • list_documents_with_metadata
  • list_latest_documents
  • search_documents

knowledge_base_info includes:

  • document_file_count: total supported files
  • document_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:

Copy & paste โ€” that's it
{
	"tool": "list_latest_documents",
	"arguments": {
		"limit": 5,
		"extension_filter": ".md"
	}
}

Response shape:

Copy & paste โ€” that's it
[
	{
		"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