GitHub Repository Scanner MCP
A Cloudflare Worker that scans GitHub repositories and provides a structured view of the repository files, directories, and contents. Perfect for integrating with Smithery and other MCP tools.
Features
- 📁 Scans any public or private GitHub repository (with appropriate token)
- 🧠 Creates a structured tree view of repository files and directories
- 📝 Shows file contents for easy viewing
- 🚀 Caches repository data for 24 hours to improve performance
- 🔄 Provides both HTML and JSON output formats
- 🔒 Secure - users provide their own GitHub tokens
API Usage
Web Interface
Visit the deployed worker URL in your browser to access the web interface.
Programmatic Access
Make a GET request to the /scan endpoint with the following parameters:
/scan?url=REPO_URL&token=YOUR_GITHUB_TOKEN&format=json
Parameters:
url: GitHub repository URL (e.g., https://github.com/username/repo)token: Your GitHub personal access token withrepoorpublic_reposcopeformat: (optional) Response format, usejsonfor machine-readable output
Example:
/scan?url=https://github.com/username/repo&token=ghp_xxxx&format=json
Response Format
The JSON response includes:
{
"success": true,
"data": {
"name": "repository-name",
"owner": "owner-name",
"projectStructure": {
"files": ["root-level-file1", "root-level-file2"],
"directories": {
"dir1": {
"files": ["file-in-dir1"],
"directories": {}
}
}
},
"fileContents": {
"file-path": "file content",
"dir1/file-in-dir1": "content of file in dir1"
},
"timestamp": 1679000000000
},
"cached": false,
"timestamp": 1679000000000
}
Deployment
Cloudflare Workers
- Clone this repository
- Install dependencies with
npm install - Deploy with
npm run deploy
Docker
A Dockerfile is included for deployment on platforms that support Docker containers:
docker build -t github-repo-scanner .
docker run -p 8787:8787 github-repo-scanner
Smithery Integration
This worker is designed to be easily integrated with Smithery. When deploying on Smithery:
- Fork or clone this repository
- Deploy using the Smithery platform
- Users will need to provide their own GitHub tokens when using the tool
GitHub Token
A GitHub Personal Access Token with the following scopes is required:
reposcope for private repositoriespublic_reposcope for public repositories
Create a token at: https://github.com/settings/tokens
License
MIT
GitHub Repository Scanner
Project Details
- dylandaubenspeck/mcp-github-ocr
- Last Updated: 3/26/2025
Recomended MCP Servers
A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text)...
A Model Context Protocol server for accessing your file system.
MCP Server that orchestrates research with Claude and Perplexity/GPT/Gemini automatically
A Node.js implementation of a Git repository browser using the Model Context Protocol (MCP)
这个项目是一个基于 Cloudflare Workers 的 Docker 镜像代理工具。它能够中转对 Docker 官方镜像仓库的请求,解决一些访问限制和加速访问的问题。
An attempt at an MCP for searxng search specifically for Goose
The ultimate toolkit for working with APIs.
Model Context Protocol Servers
This is a TypeScript-based MCP server that provides database interaction capabilities through ArangoDB. It implements core database operations...
MCP server for interacting with Apache Iceberg catalog from Claude, enabling data lake discovery and metadata search through...
Your memories are in ChatGPT... But nowhere else. Universal Memory MCP makes your memories available to every single...





