drio
Open app

MCP GitHub Server

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP GitHub Server is a server designed to work with the GitHub API, providing a convenient interface for interacting with GitHub repositories.

To use MCP GitHub Server, clone the repository, install the dependencies, create a .env file with your GitHub token, and run the server in development or production mode.

  • Easy interaction with GitHub repositories through a RESTful API. - Ability to create, retrieve, and manage repositories, branches, commits, and files. - Supports various GitHub API endpoints for comprehensive repository management.
  1. Automating repository management tasks.
  2. Integrating GitHub functionalities into other applications.
  3. Building custom tools for GitHub users.

Add to your AI client

Use these steps to connect MCP GitHub 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": {
    "mcp-github-server-dev-leva1": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-github-server-dev-leva1"
      ]
    }
  }
}

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": {
    "mcp-github-server-dev-leva1": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-github-server-dev-leva1"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

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

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

How do I get a GitHub token?

You can generate a GitHub token from your GitHub account settings under "Developer settings" -> "Personal access tokens".

Is there a limit to the number of repositories I can create?

GitHub has its own limits on repository creation, which you can find in their documentation.

Can I use this server for private repositories?

Yes! You can manage both public and private repositories using your GitHub token.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3003,"uuid":"07c9d943-b500-414a-87eb-99e2258c75c2","name":"mcp-github-server","title":"MCP GitHub Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/189131178?v=4","created_at":"$D2025-03-16T13:45:51.636Z","updated_at":"$D2025-03-16T14:53:02.036Z","status":"created","author_name":"dev-leva1","author_avatar_url":"https://avatars.githubusercontent.com/u/189131178?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/dev-leva1/mcp-github-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"1\",\"license\":\"\",\"language\":\"HTML\",\"is_official\":false,\"latest_commit_time\":\"2025-03-16 15:53:50\"}","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"}]]}]