Darren Bennett/MCP-Github-Mapper
Built by Metorial, the integration platform for agentic AI.
Darren Bennett/MCP-Github-Mapper
Server Summary
Authenticate using GitHub Personal Access Token
Analyze GitHub repository structure
Retrieve repository summary information
Generate detailed file structures
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.
To install GitHub Mapper for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install github-mapper-mcp-server --client claude
Clone the repository:
git clone https://github.com/your-username/github-mapper-mcp-server.git
cd github-mapper-mcp-server
Install dependencies:
npm install
Build the project:
npm run build
Start the server:
npm start
The server will run on stdio, allowing it to communicate with MCP clients.
set-github-token
Sets the GitHub Personal Access Token for authentication.
Example, in your IDE or Claude Desktop:
Please set-github-token to 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
map-github-repo
Maps a GitHub repository structure and provides summary information.
Example:
Please map-github-repo https://github.com/dazeb/MCP-Github-Mapper
{
"mcpServers": {
"github-mapper": {
"command": "node",
"args": ["/home/user/Documents/Cline/MCP/github-mapper/build/index.js"]
}
}
}
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
}
The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentation can be found here.
OPENAI_API_KEY=your-key npx mcp-eval src/evals/evals.ts src/index.ts
set-github-token
tool first.Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.