GitHub_MCP_Server: Instructions file for Claude Code

CLAUDE.md

GitHub_MCP_Server CLAUDE.md is an instructions file for Claude Code from SPerekrestova/GitHub_MCP_Server. It costs 676 tokens per session, scanned A, original, MIT.

Project instructions for a GitHub MCP server, an MCP service that lets an AI agent access GitHub documentation and files through the GitHub API.

In plain words
What is it for?
Listing repositories, finding documentation folders, reading files, and searching documentation across GitHub organizations.
Why use it?
They explain how to set up and run the server and what documentation searches and file-reading operations it provides.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is SPerekrestova/GitHub_MCP_Server's own configuration. It tells Claude Code how to work on GitHub_MCP_Server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything GitHub_MCP_Server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SPerekrestova/GitHub_MCP_Server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SPerekrestova/GitHub_MCP_Server/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/SPerekrestova/GitHub_MCP_Server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for GitHub_MCP_Server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sperekrestova/github_mcp_server/claude-md/github.svg)](https://agentmods.dev/instructions/sperekrestova/github_mcp_server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sperekrestova/github_mcp_server/claude-md"><img src="https://agentmods.dev/badge/instructions/sperekrestova/github_mcp_server/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for GitHub_MCP_Server CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sperekrestova/github_mcp_server/claude-md"><img src="https://agentmods.dev/badge/instructions/sperekrestova/github_mcp_server/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 676 This file is loaded in full into every session.
When invoked 676 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00676 $0.00676
Opus 5.5 $0.00270 $0.00270
Sonnet 5.5 $0.00135 $0.00135
Haiku 4.5 $0.00068 $0.00068

Measured 2mo ago against content hash f97472b8eaec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

GitHub_MCP_Server CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

GitHub MCP Server - A Model Context Protocol (MCP) server that provides GitHub API access for fetching and searching documentation in /doc folders across GitHub organizations. Built with Gradio for Hugging Face Spaces deployment.

Development Commands

# Setup
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env  # Add GITHUB_TOKEN

# Run locally (starts Gradio server with MCP support)
python main.py
# Server runs on http://localhost:7860
# MCP endpoint: http://localhost:7860/gradio_api/mcp/

Architecture

Single-file MCP server (main.py) using Gradio with MCP support:

  1. MCP Tools (exposed via gr.Interface with mcp_server=True):

    • get_org_repos_tool - List repos with /doc folder detection (uses Search API first, falls back to listing all)
    • get_repo_docs_tool - Get documentation files from repo's /doc folder
    • get_file_content_tool - Fetch and decode file content (handles base64)
    • search_documentation_tool - Search docs across org using GitHub Code Search API
  2. Business Logic Functions (async, testable):

    • get_org_repos(), get_repo_docs(), get_file_content(), search_documentation()
    • Tool functions are async wrappers with error handling
  3. Gradio Interface:

    • gr.TabbedInterface combining 4 tool interfaces
    • Each tool has its own gr.Interface for web UI access
    • MCP tools auto-exposed at /gradio_api/mcp/

Key Implementation Details

  • GitHub API strategy: Search API first for efficiency, fallback to paginated list + check each repo
  • Supported doc types: .md, .mmd, .mermaid, .svg, .yml, .yaml, .json
  • Content decoding: Base64 content from GitHub API is automatically decoded
  • Error handling: All tools return JSON with {"error": "..."} on failure
  • MCP Schema: Available at /gradio_api/mcp/schema

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 72 lines · 676 tokens per session scan A f97472b8eaec

Subscribe to this mod's changes

GitHub_MCP_Server CLAUDE.md is an instructions file published in the GitHub repository SPerekrestova/GitHub_MCP_Server (0 stars, last pushed 6mo ago), licensed MIT. It adds 676 tokens to every session, about $0.0027 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

GitHub_MCP_Server CLAUDE.md compared with instructions from other repositories

GitHub_MCP_Server CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
GitHub_MCP_Server CLAUDE.mdSPerekrestova/GitHub_MCP_ServerInstructions file06mo agoMITA676Claude Code
mcp-server-excel copilot-instructions.mdsbroenne/mcp-server-excelInstructions file8532d agoMITA107GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot