drio
Open app

GitHub MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

GitHub MCP Server is an API-based tool that interacts with GitHub using the Modular Command Processor (MCP) framework, allowing users to fetch user details, repository information, and authenticated user data through GitHub's REST API.

To use the GitHub MCP Server, clone the repository, set up a Python virtual environment, install the required dependencies, configure your GitHub personal access token in the .env file, and run the server using the provided configuration.

  • Fetch GitHub user information by username. - Retrieve details of a GitHub repository. - Get authenticated user details using a GitHub personal access token. - Utilizes FastMCP for modular command processing.
  1. Automating GitHub user data retrieval for analytics.
  2. Integrating GitHub repository information into applications.
  3. Building tools that require authenticated access to GitHub data.

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

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

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

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

What programming language is used for GitHub MCP Server?

The project is built using Python.

Do I need a GitHub personal access token?

Yes, a personal access token is required for authenticated requests.

How do I set up the project?

Follow the setup instructions provided in the README, including cloning the repository and configuring environment variables.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3326,"uuid":"409fbb78-5d55-402b-9888-de828cf21fde","name":"GitHub-MCP-Server-Claude","title":"GitHub MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/121238698?v=4","created_at":"$D2025-03-18T20:37:06.761Z","updated_at":"$D2025-03-18T21:42:34.296Z","status":"created","author_name":"DivyanshKushwaha","author_avatar_url":"https://avatars.githubusercontent.com/u/121238698?v=4","tags":"github,mcp,api,python","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/DivyanshKushwaha/GitHub-MCP-Server-Claude","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-19 01:29:30\"}","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"}]]}]