drio
Open app

GitHub MCP Server

Source

MCP server for using the GitHub API

Catalog onlyCatalog onlySTDIO

Overview

GitHub MCP Server is a Model Context Protocol (MCP) server implementation designed for seamless integration with the GitHub API, allowing AI models to interact with GitHub repositories, issues, pull requests, and more.

To use the GitHub MCP Server, clone the repository, install the dependencies, configure your GitHub Personal Access Token, build the server, and start it. The server will run on port 3000 by default.

  • Full GitHub API integration - Support for repository operations (create, fork, search) - File operations (create, update, read) - Issue and PR management - Code search capabilities - Branch management - Commit history access
  1. Automating repository management tasks.
  2. Integrating AI models for enhanced GitHub interactions.
  3. Real-time updates for GitHub events through Server-Sent Events.

Add to your AI client

Use these steps to connect GitHub MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "github-mcp-server-marvelouscypherman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-mcp-server-marvelouscypherman"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "github-mcp-server-marvelouscypherman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-mcp-server-marvelouscypherman"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "github-mcp-server-marvelouscypherman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-mcp-server-marvelouscypherman"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "github-mcp-server-marvelouscypherman": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-mcp-server-marvelouscypherman"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "github-mcp-server-marvelouscypherman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-mcp-server-marvelouscypherman"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "github-mcp-server-marvelouscypherman": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-mcp-server-marvelouscypherman"
      ]
    }
  }
}

FAQ

How do I configure my GitHub token?

You can configure your GitHub token either through a configuration file or as an environment variable.

What is the default port for the server?

The server runs on port 3000 by default, but you can change it by setting the `PORT` environment variable.

Is there an example client for real-time updates?

Yes, a complete example client implementation can be found in `examples/sse-client.html`.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2126,"uuid":"6d8fb781-7b42-460e-a7eb-8975ca9a1dc3","name":"github-mcp-server","title":"GitHub MCP Server","description":"MCP server for using the GitHub API","avatar_url":"https://avatars.githubusercontent.com/u/145275656?v=4","created_at":"2025-03-09T03:40:41.366Z","updated_at":"2025-03-12T10:19:32.655Z","status":"created","author_name":"marvelouscypherman","author_avatar_url":"https://avatars.githubusercontent.com/u/145275656?v=4","tags":"github,api,mcp-server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/marvelouscypherman/github-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-08 18:02:01\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]