home / mcp / github mcp server
Provides access to GitHub user repositories via HTTP and stdio MCP transports.
Configuration
View docs{
"mcpServers": {
"kh-mahmoud-streamable-mcp": {
"url": "http://localhost:3000/mcp"
}
}
}You can fetch GitHub repositories for any user through a dedicated MCP server that supports both HTTP access for remote clients and a local stdio workflow for MCP integrations. This dual transport design lets you query GitHub data programmatically from your applications or run the server locally during development and testing.
You can use the server with an MCP client to retrieve all public repositories for a specified GitHub username. In HTTP mode, send requests to the MCP endpoint to fetch data. In stdio mode, run the local MCP client workflow to request repository information directly from your code.
Prerequisites: Node.js v18 or higher, and npm or yarn.
1) Clone the project and navigate into the directory.
git clone https://github.com/kh-mahmoud/streamable-mcp.git
cd streamable-mcp2) Install dependencies.
npm install3) Build the project.
npm run build4) Start the HTTP server for remote access.
npm run serverThe server will listen on http://localhost:3000 by default (or on the port specified via the PORT environment variable).
5) Alternatively, run the local stdio mode for MCP client integration.
node build/index.js stdioFor development, you can run the server with hot-reload to test changes quickly.
npm run serverYou can inspect the MCP server to verify its capabilities and endpoints.
npm run inspectFetches all public repositories for a given GitHub username and returns the repository list with names.