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.
curl -O https://raw.githubusercontent.com/SPerekrestova/GitHub_MCP_Server/main/CLAUDE.mdgit clone --depth 1 https://github.com/SPerekrestova/GitHub_MCP_ServerWrote 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.
[](https://agentmods.dev/instructions/sperekrestova/github_mcp_server/claude-md)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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:
-
MCP Tools (exposed via
gr.Interfacewithmcp_server=True):get_org_repos_tool- List repos with/docfolder detection (uses Search API first, falls back to listing all)get_repo_docs_tool- Get documentation files from repo's/docfolderget_file_content_tool- Fetch and decode file content (handles base64)search_documentation_tool- Search docs across org using GitHub Code Search API
-
Business Logic Functions (async, testable):
get_org_repos(),get_repo_docs(),get_file_content(),search_documentation()- Tool functions are async wrappers with error handling
-
Gradio Interface:
gr.TabbedInterfacecombining 4 tool interfaces- Each tool has its own
gr.Interfacefor 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
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.
- 2mo ago First seen · 72 lines · 676 tokens per session scan A f97472b8eaec
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.
GitHub_MCP_Server CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| GitHub_MCP_Server CLAUDE.mdSPerekrestova/GitHub_MCP_Server | Instructions file | 0 | 6mo ago | MIT | A | 676 | Claude Code |
| mcp-server-excel copilot-instructions.mdsbroenne/mcp-server-excel | Instructions file | 853 | 2d ago | MIT | A | 107 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |