GitHub Mapper MCP Server
GitHub Mapper is a Model Context Protocol (MCP) server that provides tools for mapping and analyzing GitHub repositories. It allows users to set a GitHub Personal Access Token and retrieve detailed information about a specified repository, including its structure and summary statistics.
Features
- Set GitHub Personal Access Token for authentication
- Map and analyze GitHub repository structure
- Retrieve repository summary information (stars, forks, language, etc.)
- Provide a detailed repository file structure
Prerequisites
- Node.js (v18.0.0 or later recommended)
- npm (comes with Node.js)
- A GitHub Personal Access Token with appropriate permissions
Installation
Installing via Smithery
To install GitHub Mapper for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install github-mapper-mcp-server --client claude
Manual Installation
Clone the repository:
git clone https://github.com/your-username/github-mapper-mcp-server.git cd github-mapper-mcp-serverInstall dependencies:
npm installBuild the project:
npm run build
Usage
Start the server:
npm startThe server will run on stdio, allowing it to communicate with MCP clients.
Available Tools
1. set-github-token
Sets the GitHub Personal Access Token for authentication.
- Create your Personal Access Token here. Choose Tokens (classic). Scopes: repo
Example, in your IDE or Claude Desktop:
Please set-github-token to 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
2. map-github-repo
Maps a GitHub repository structure and provides summary information.
Example:
Please map-github-repo https://github.com/dazeb/MCP-Github-Mapper
Manual install in Cline or Roo-Cline MCP Client:
{
"mcpServers": {
"github-mapper": {
"command": "node",
"args": ["/home/user/Documents/Cline/MCP/github-mapper/build/index.js"]
}
}
}
Example Output
Repository Analysis Summary:
Name: Hello-World
Description: My first repository on GitHub!
Stars: 1234
Forks: 567
Primary Language: JavaScript
Created: 2023-01-01
Last Updated: 2023-06-15
Repository Structure:
{
"src": {
"components": {
"Header.js": null,
"Footer.js": null
},
"pages": {
"index.js": null,
"about.js": null
},
"styles": {
"global.css": null
}
},
"public": {
"images": {
"logo.png": null
},
"favicon.ico": null
},
"package.json": null,
"README.md": null
}
Images
Error Handling
- If the GitHub token is not set, you’ll receive an error message prompting you to use the
set-github-tokentool first. - Invalid GitHub URLs or repository paths will result in appropriate error messages.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
GitHub Mapper
Project Details
- dazeb/MCP-Github-Mapper
- Last Updated: 4/16/2025
Categories
Recomended MCP Servers
A Model Context Protocol (MCP) server that enables AI assistants to perform network scanning operations using NMAP
🤖 Automatically generate MCP tools from your Fastify API routes.
Model Context Protocol Server for NebulaGraph 3.x
I enhance the existing memory mcp server from the official mcp github, so big thanks and credits for...
A system monitoring tool that exposes system metrics via the Model Context Protocol (MCP). This tool allows LLMs...
This repository is for development of the Azure MCP Server, bringing the power of Azure to your agents.
A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like...
A minimal MCP Server based on the Anthropic's "think" tool research
react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts
A MCP Server that provides browser access through playwright with "stealth mode" enabled.





