Provides tools to fetch all public repositories for a given GitHub username, enabling programmatic retrieval of repository lists and basic information.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@HTTP MCP Servershow me the GitHub repositories for kh-mahmoud"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
HTTP MCP Server
A Model Context Protocol (MCP) server that provides GitHub repository information via both HTTP and stdio transports. This server enables AI assistants and other MCP clients to fetch GitHub repositories for any user.
π Features
GitHub Repository Fetcher: Retrieve all repositories for any GitHub username
Dual Transport Modes:
HTTP Mode: Run as a web server for remote access
stdio Mode: Run locally for MCP client integration
Type-Safe: Built with TypeScript and Zod for schema validation
Express Integration: Modern HTTP server with JSON support
π Prerequisites
Node.js (v18 or higher)
npm or yarn
π§ Installation
Clone the repository:
Install dependencies:
Build the project:
π― Usage
HTTP Mode (Web Server)
Start the server in HTTP mode:
The server will start on http://localhost:3000 (or the port specified in PORT environment variable).
API Endpoint:
POST
/mcp- MCP JSON-RPC endpoint
stdio Mode (Local MCP Client)
For local MCP client integration:
Development Mode
Run with hot-reload during development:
MCP Inspector
Inspect the MCP server:
π οΈ Available Tools
get_repos
Fetches all public repositories for a given GitHub username.
Parameters:
username(string): GitHub username to fetch repositories for
Returns:
List of all repositories with their names
π οΈ Technologies Used
Model Context Protocol SDK: MCP server implementation
Express: HTTP server framework
TypeScript: Type-safe JavaScript
Zod: Schema validation
tsx: TypeScript execution
π Scripts
npm run build: Compile TypeScript to JavaScriptnpm start: Start the HTTP servernpm run server: Start development server with hot-reloadnpm run inspect: Inspect MCP server with MCP Inspector
π MCP Client Integration
To use this server with an MCP client, configure it in your MCP client settings:
For stdio mode:
For HTTP mode:
π Resources
β If you find this project useful, please consider giving it a star!