MCP ExplorerExplorer

Mcp Github Oauth

@Nikhil-Patil-RIon a year ago
3 MIT
FreeCommunity
AI Systems
MCP-Github-Oauth enables local server setup for GitHub OAuth integration.

Overview

What is Mcp Github Oauth

MCP-Github-Oauth is a server designed to facilitate OAuth authentication for GitHub, enabling secure access to GitHub resources through the Model Context Protocol (MCP).

Use cases

Use cases include integrating GitHub login in web applications, automating repository management tasks, and developing tools that require user authentication with GitHub.

How to use

To use MCP-Github-Oauth, set up your environment by installing ‘uv’ and configuring your project. Update the ‘claude_desktop_config.json’ file to register the tool and run the server using the specified command.

Key features

Key features include easy integration with GitHub OAuth, support for local development environments, and debugging capabilities via the MCP Inspector.

Where to use

MCP-Github-Oauth can be used in software development projects that require GitHub authentication, particularly in applications that need to access user repositories or perform actions on behalf of users.

Content

Development

Set up your environment

First, let’s install uv and set up our Python project and environment:

MacOS/Linux : curl -LsSf https://astral.sh/uv/install.sh | sh
Windows : powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Make sure to restart your terminal afterwards to ensure that the uv command gets picked up.

Now, let’s create and set up our project:

Running to local claude desktop app

  1. Make sure you need to update claude_desktop_config.json to register tool

you can find claude_desktop_config.json :

For Windows : code $env:AppData\Claude\claude_desktop_config.json
For Mac/Linux :code ~/Library/Application\ Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "Github-Oauth": {
      "command": "C:\\Users\\Hp\\.local\\bin\\uv",
      "args": [
        "--directory",
        "C:\\Users\\Hp\\Github-Oauth\\src\\github_oauth",
        "run",
        "server.py"
      ]
    }
  }
}

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging
experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory C:\Users\Hp\Github-Oauth run github-oauth

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers